2020-01-16 00:42:20 +03:00
|
|
|
<div id="widget-{{ $class->model->id }}" class="{{ $class->model->settings->width }}">
|
2019-11-16 10:21:14 +03:00
|
|
|
<div class="card">
|
2020-01-16 00:42:20 +03:00
|
|
|
@include($class->views['header'], ['header_class' => 'border-bottom-0'])
|
2019-11-16 10:21:14 +03:00
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table align-items-center table-flush">
|
|
|
|
<thead class="thead-light">
|
|
|
|
<tr class="row table-head-line">
|
|
|
|
<th class="col-xs-4 col-md-4 text-left">{{ trans('general.date') }}</th>
|
2019-12-29 03:01:19 +03:00
|
|
|
<th class="col-xs-4 col-md-4 text-left">{{ trans_choice('general.categories', 1) }}</th>
|
2019-11-16 10:21:14 +03:00
|
|
|
<th class="col-xs-4 col-md-4 text-right">{{ trans('general.amount') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
2020-03-16 14:37:34 +03:00
|
|
|
|
2019-11-16 10:21:14 +03:00
|
|
|
<tbody>
|
2019-12-29 03:01:19 +03:00
|
|
|
@if ($transactions->count())
|
|
|
|
@foreach($transactions as $item)
|
2020-02-09 16:06:06 +03:00
|
|
|
<tr class="row border-top-1 tr-py">
|
2019-11-16 10:21:14 +03:00
|
|
|
<td class="col-xs-4 col-md-4 text-left">@date($item->paid_at)</td>
|
2020-06-03 18:05:16 +03:00
|
|
|
<td class="col-xs-4 col-md-4 text-left long-texts">{{ $item->category->name }}</td>
|
2019-11-16 10:21:14 +03:00
|
|
|
<td class="col-xs-4 col-md-4 text-right">@money($item->amount, $item->currency_code, true)</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
@else
|
|
|
|
<tr class="border-top-1">
|
|
|
|
<td colspan="3">
|
2020-02-09 16:06:06 +03:00
|
|
|
<div class="text-muted nr-py" id="datatable-basic_info" role="status" aria-live="polite">
|
2019-11-16 10:21:14 +03:00
|
|
|
{{ trans('general.no_records') }}
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
@endif
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|