FleetCart/Modules/Currency/Resources/views/admin/currency_rates/index.blade.php

57 lines
1.9 KiB
PHP
Raw Normal View History

2023-06-11 12:14:03 +00:00
@extends('admin::layout')
@component('admin::components.page.header')
@slot('title', trans('currency::currency_rates.currency_rates'))
<li class="active">{{ trans('currency::currency_rates.currency_rates') }}</li>
@endcomponent
@section('content')
<div class="row">
<div class="btn-group pull-right">
<button id="refresh-rates" class="btn btn-primary btn-actions" data-loading>
{{ trans('currency::currency_rates.refresh_rates') }}
</button>
</div>
</div>
<div class="box box-primary">
<div class="box-body index-table" id="currency-rates-table">
@component('admin::components.table')
@slot('thead')
<tr>
<th>{{ trans('currency::currency_rates.table.currency') }}</th>
<th data-sort="asc">{{ trans('currency::currency_rates.table.code') }}</th>
<th>{{ trans('currency::currency_rates.table.rate') }}</th>
<th>{{ trans('currency::currency_rates.table.last_updated') }}</th>
</tr>
@endslot
@endcomponent
</div>
</div>
@endsection
2023-12-03 14:07:47 +00:00
@push('globals')
@vite([
'Modules/Currency/Resources/assets/admin/js/main.js',
])
@endpush
2023-06-11 12:14:03 +00:00
@push('scripts')
2023-12-03 14:07:47 +00:00
<script type="module">
2023-06-11 12:14:03 +00:00
DataTable.setRoutes('#currency-rates-table .table', {
2023-12-03 14:07:47 +00:00
table: 'admin.currency_rates.table',
2023-06-11 12:14:03 +00:00
edit: 'admin.currency_rates.edit',
});
new DataTable('#currency-rates-table .table', {
columns: [
{ data: 'currency_name', orderable: false, searchable: false },
{ data: 'currency' },
{ data: 'rate', searchable: false },
{ data: 'updated_at', searchable: false },
],
});
</script>
@endpush