first upload all files
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
@extends('admin::layout')
|
||||
|
||||
@component('admin::components.page.header')
|
||||
@slot('title', trans('admin::resource.edit', ['resource' => trans('currency::currency_rates.currency_rate')]))
|
||||
@slot('subtitle', $currencyRate->currency)
|
||||
|
||||
<li><a href="{{ route('admin.currency_rates.index') }}">{{ trans('currency::currency_rates.currency_rates') }}</a></li>
|
||||
<li class="active">{{ trans('admin::resource.edit', ['resource' => trans('currency::currency_rates.currency_rate')]) }}</li>
|
||||
@endcomponent
|
||||
|
||||
@section('content')
|
||||
<form method="POST" action="{{ route('admin.currency_rates.update', $currencyRate) }}" class="form-horizontal" id="currency-rate-edit-form" novalidate>
|
||||
{{ csrf_field() }}
|
||||
{{ method_field('put') }}
|
||||
|
||||
{!! $tabs->render(compact('currencyRate')) !!}
|
||||
</form>
|
||||
@endsection
|
||||
|
||||
@push('shortcuts')
|
||||
<dl class="dl-horizontal">
|
||||
<dt><code>b</code></dt>
|
||||
<dd>{{ trans('admin::admin.shortcuts.back_to_index', ['name' => trans('currency::currency_rates.currency_rate')]) }}</dd>
|
||||
</dl>
|
||||
@endpush
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
keypressAction([
|
||||
{ key: 'b', route: "{{ route('admin.currency_rates.index') }}" }
|
||||
]);
|
||||
</script>
|
||||
@endpush
|
||||
@@ -0,0 +1,50 @@
|
||||
@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
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
DataTable.setRoutes('#currency-rates-table .table', {
|
||||
index: 'admin.currency_rates.index',
|
||||
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
|
||||
@@ -0,0 +1,5 @@
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
{{ Form::number('rate', trans('currency::attributes.rate'), $errors, $currencyRate, ['required' => true]) }}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user