From 68607051acf0d9cb67df61cf3270d91ebced1545 Mon Sep 17 00:00:00 2001 From: sausin Date: Tue, 10 Dec 2019 11:38:54 +0530 Subject: [PATCH] Update index.blade.php --- resources/views/banking/transactions/index.blade.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/resources/views/banking/transactions/index.blade.php b/resources/views/banking/transactions/index.blade.php index e685caf89..7218078c9 100644 --- a/resources/views/banking/transactions/index.blade.php +++ b/resources/views/banking/transactions/index.blade.php @@ -46,14 +46,20 @@ {{ trans_choice('general.' . Str::plural($item->type), 1) }} {{ $item->category->name }} {{ $item->description }} - @if(is_null(data_get($item, 'bill.id'))) - @money($item->amount, $item->currency_code, true) - @else + @if(!is_null(data_get($item, 'bill.id'))) @money($item->amount, $item->currency_code, true) + @elseif(!is_null(data_get($item, 'invoice.id'))) + + + @money($item->amount, $item->currency_code, true) + + + @else + @money($item->amount, $item->currency_code, true) @endif @endforeach