akaunting/resources/views/widgets/account_balance.blade.php

25 lines
1.1 KiB
PHP
Raw Normal View History

2020-01-03 18:38:53 +03:00
<div id="widget-{{ $model->id }}" class="{{ $model->settings->width }}">
2019-11-16 10:21:14 +03:00
<div class="card">
@include('partials.widgets.standard_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-6 col-md-6 text-left">{{ trans('general.name') }}</th>
<th class="col-xs-6 col-md-6 text-right">{{ trans('general.balance') }}</th>
</tr>
</thead>
<tbody class="thead-light">
@foreach($accounts as $item)
<tr class="row border-top-1">
<td class="col-xs-6 col-md-6 text-left">{{ $item->name }}</td>
<td class="col-xs-6 col-md-6 text-right">@money($item->balance, $item->currency_code, true)</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>