Currencies widget added

This commit is contained in:
EnesSacid-Buker
2021-03-18 13:03:13 +03:00
parent 5b11d9f507
commit 9ecba460a4
5 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,24 @@
<div id="widget-{{ $class->model->id }}" class="{{ $class->model->settings->width }}">
<div class="card">
@include($class->views['header'], ['header_class' => 'border-bottom-0'])
<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('currencies.rate') }}</th>
</tr>
</thead>
<tbody class="thead-light">
@foreach($currencies as $item)
<tr class="row border-top-1 tr-py">
<td class="col-xs-6 col-md-6 text-left long-texts">{{ $item->name }}</td>
<td class="col-xs-6 col-md-6 text-right">{{ $item->rate }}</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>