Update index.blade.php

This commit is contained in:
sausin
2019-12-10 11:38:54 +05:30
committed by GitHub
parent 0ea1e9474e
commit 68607051ac

View File

@ -46,14 +46,20 @@
<td class="col-xs-4 col-sm-3 col-md-2">{{ trans_choice('general.' . Str::plural($item->type), 1) }}</td>
<td class="col-sm-2 col-md-2 hidden-sm">{{ $item->category->name }}</td>
<td class="col-md-2 hidden-md">{{ $item->description }}</td>
@if(is_null(data_get($item, 'bill.id')))
<td class="col-xs-4 col-sm-2 col-md-2 text-right">@money($item->amount, $item->currency_code, true)</td>
@else
@if(!is_null(data_get($item, 'bill.id')))
<td class="col-xs-4 col-sm-2 col-md-2 text-right">
<a href="{{ route('bills.show', $item->bill->id) }}">
@money($item->amount, $item->currency_code, true)
</a>
</td>
@elseif(!is_null(data_get($item, 'invoice.id')))
<td class="col-xs-4 col-sm-2 col-md-2 text-right">
<a href="{{ route('invoices.show', $item->invoice->id) }}">
@money($item->amount, $item->currency_code, true)
</a>
</td>
@else
<td class="col-xs-4 col-sm-2 col-md-2 text-right">@money($item->amount, $item->currency_code, true)</td>
@endif
</tr>
@endforeach