refactored widgets
This commit is contained in:
@ -34,16 +34,16 @@
|
||||
<thead class="thead-light">
|
||||
<tr class="row table-head-line">
|
||||
<th class="col-xs-4 col-md-4 text-left">{{ trans('general.date') }}</th>
|
||||
<th class="col-xs-4 col-md-4 text-center">{{ trans_choice('general.categories', 1) }}</th>
|
||||
<th class="col-xs-4 col-md-4 text-left">{{ trans_choice('general.categories', 1) }}</th>
|
||||
<th class="col-xs-4 col-md-4 text-right">{{ trans('general.amount') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if ($latest_expenses->count())
|
||||
@foreach($latest_expenses as $item)
|
||||
@if ($transactions->count())
|
||||
@foreach($transactions as $item)
|
||||
<tr class="row border-top-1">
|
||||
<td class="col-xs-4 col-md-4 text-left">@date($item->paid_at)</td>
|
||||
<td class="col-xs-4 col-md-4 text-center">{{ $item->category ? $item->category->name : trans_choice('general.bills', 2) }}</td>
|
||||
<td class="col-xs-4 col-md-4 text-left">{{ $item->category->name }}</td>
|
||||
<td class="col-xs-4 col-md-4 text-right">@money($item->amount, $item->currency_code, true)</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
Reference in New Issue
Block a user