From 1f105b456fd1abf4a54b28173b14e9892627eb6d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 3 Feb 2016 22:33:29 +0200 Subject: [PATCH] Fixed dashboard fomatting when using multiple currencies --- resources/views/dashboard.blade.php | 81 ++++++++++++++++------------- 1 file changed, 45 insertions(+), 36 deletions(-) diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php index 56f9690610ec..d36c8334cc2a 100644 --- a/resources/views/dashboard.blade.php +++ b/resources/views/dashboard.blade.php @@ -7,18 +7,21 @@
- -
- {{ trans('texts.total_revenue') }} -
-
- @if (count($paidToDate)) - @foreach ($paidToDate as $item) - {{ Utils::formatMoney($item->value, $item->currency_id) }}
- @endforeach - @else - {{ Utils::formatMoney(0) }} - @endif + +
+
+ {{ trans('texts.total_revenue') }} +
+
+ @if (count($paidToDate)) + @foreach ($paidToDate as $item) + {{ Utils::formatMoney($item->value, $item->currency_id) }}
+ @endforeach + @else + {{ Utils::formatMoney(0) }} + @endif +
@@ -26,18 +29,21 @@
- -
- {{ trans('texts.average_invoice') }} -
-
- @if (count($averageInvoice)) - @foreach ($averageInvoice as $item) - {{ Utils::formatMoney($item->invoice_avg, $item->currency_id) }}
- @endforeach - @else - {{ Utils::formatMoney(0) }} - @endif + +
+
+ {{ trans('texts.average_invoice') }} +
+
+ @if (count($averageInvoice)) + @foreach ($averageInvoice as $item) + {{ Utils::formatMoney($item->invoice_avg, $item->currency_id) }}
+ @endforeach + @else + {{ Utils::formatMoney(0) }} + @endif +
@@ -45,18 +51,21 @@
- -
- {{ trans('texts.outstanding') }} -
-
- @if (count($balances)) - @foreach ($balances as $item) - {{ Utils::formatMoney($item->value, $item->currency_id) }}
- @endforeach - @else - {{ Utils::formatMoney(0) }} - @endif + +
+
+ {{ trans('texts.outstanding') }} +
+
+ @if (count($balances)) + @foreach ($balances as $item) + {{ Utils::formatMoney($item->value, $item->currency_id) }}
+ @endforeach + @else + {{ Utils::formatMoney(0) }} + @endif +