close #608 Fixed: Empty category broken list pages

This commit is contained in:
Cüneyt Şentürk
2018-11-08 23:59:56 +03:00
parent 8ce45705cc
commit fd457483a6
5 changed files with 7 additions and 7 deletions

View File

@@ -37,7 +37,7 @@
<tr>
<td><a href="{{ url('customers/payments/' . $item->id) }}">{{ Date::parse($item->paid_at)->format($date_format) }}</a></td>
<td>@money($item->amount, $item->currency_code, true)</td>
<td>{{ $item->category->name }}</td>
<td>{{ $item->category ? $item->category->name : trans('general.na') }}</td>
<td>{{ $payment_methods[$item->payment_method] }}</td>
</tr>
@endforeach