This commit is contained in:
denisdulici
2018-11-29 12:51:01 +03:00
parent d066938972
commit e000f55e65
6 changed files with 16 additions and 18 deletions

View File

@@ -46,6 +46,7 @@
</thead>
<tbody>
@foreach($revenues as $item)
@php $is_transfer = ($item->category && ($item->category->id == $transfer_cat_id)); @endphp
<tr>
@if ($item->reconciled)
<td>{{ Date::parse($item->paid_at)->format($date_format) }}</td>
@@ -55,9 +56,9 @@
<td class="text-right amount-space">@money($item->amount, $item->currency_code, true)</td>
<td class="hidden-xs">{{ !empty($item->customer->name) ? $item->customer->name : trans('general.na') }}</td>
<td class="hidden-xs">{{ $item->category ? $item->category->name : trans('general.na') }}</td>
<td class="hidden-xs">{{ $item->account->name }}</td>
<td class="hidden-xs">{{ $item->account ? $item->account->name : trans('general.na') }}</td>
<td class="text-center">
@if ($item->category->id != $transfer_cat_id)
@if (!$is_transfer)
<div class="btn-group">
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" data-toggle-position="left" aria-expanded="false">
<i class="fa fa-ellipsis-h"></i>