You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

71 lines
3.2 KiB

<x-app-layout>
<x-slot name="header">
<h2 class="font-semibold text-xl text-gray-800 leading-tight">
@lang('lang.currency_management')
</h2>
</x-slot>
<div class="py-12">
<div class="max-w-7xl mx-auto sm:px-6 lg:px-8">
<div class="bg-white overflow-hidden shadow-sm sm:rounded-lg">
<div class="p-6 bg-white border-b border-gray-200">
<div class="row">
<div class="col-md-5">
<h3 class="modal-title">{{ $result->total() }} @lang('lang.currency')</h3>
</div>
<div class="col-md-7 page-action text-right">
@can('add_system')
<a href="{{ route('currency.create') }}" class="btn btn-primary"> <i class="glyphicon glyphicon-plus-sign"></i> @lang('lang.create')</a>
@endcan
</div>
</div>
<div class="result-set">
<table class="table table-bordered table-striped table-hover" id="data-table">
<thead>
<tr>
<th>ID</th>
<th>@lang('lang.name')</th>
<th>@lang('lang.symbol')</th>
<th>@lang('lang.decimal')</th>
<th>@lang('lang.description')</th>
<th>@lang('lang.created_at')</th>
@can('edit_system', 'delete_system')
<th class="text-center">@lang('lang.action')</th>
@endcan
</tr>
</thead>
<tbody>
@foreach($result as $item)
<tr>
<td>{{ $item->id }}</td>
<td>{{ $item->name }}</td>
<td>{{ $item->symbol }}</td>
<td>{{ $item->decimal_length }}</td>
<td>{{ $item->description }}</td>
<td>{{ $item->created_at->format('d/m/Y') }}</td>
@can('edit_system', 'delete_system')
<td class="text-center">
@include('shared._actions', [
'entity' => 'currency',
'id' => $item->id
])
</td>
@endcan
</tr>
@endforeach
</tbody>
</table>
<div class="text-center">
{{ $result->links() }}
</div>
</div>
</div>
</div>
</div>
</div>
</x-app-layout>