first upload all files
This commit is contained in:
46
Modules/Order/Resources/views/admin/orders/index.blade.php
Normal file
46
Modules/Order/Resources/views/admin/orders/index.blade.php
Normal file
@@ -0,0 +1,46 @@
|
||||
@extends('admin::layout')
|
||||
|
||||
@component('admin::components.page.header')
|
||||
@slot('title', trans('order::orders.orders'))
|
||||
|
||||
<li class="active">{{ trans('order::orders.orders') }}</li>
|
||||
@endcomponent
|
||||
|
||||
@section('content')
|
||||
<div class="box box-primary">
|
||||
<div class="box-body index-table" id="orders-table">
|
||||
@component('admin::components.table')
|
||||
@slot('thead')
|
||||
<tr>
|
||||
<th>{{ trans('admin::admin.table.id') }}</th>
|
||||
<th>{{ trans('order::orders.table.customer_name') }}</th>
|
||||
<th>{{ trans('order::orders.table.customer_email') }}</th>
|
||||
<th>{{ trans('admin::admin.table.status') }}</th>
|
||||
<th>{{ trans('order::orders.table.total') }}</th>
|
||||
<th data-sort>{{ trans('admin::admin.table.created') }}</th>
|
||||
</tr>
|
||||
@endslot
|
||||
@endcomponent
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@push('scripts')
|
||||
<script>
|
||||
DataTable.setRoutes('#orders-table .table', {
|
||||
index: '{{ "admin.orders.index" }}',
|
||||
show: '{{ "admin.orders.show" }}',
|
||||
});
|
||||
|
||||
new DataTable('#orders-table .table', {
|
||||
columns: [
|
||||
{ data: 'id', width: '5%' },
|
||||
{ data: 'customer_name', orderable: false, searchable: false },
|
||||
{ data: 'customer_email' },
|
||||
{ data: 'status' },
|
||||
{ data: 'total' },
|
||||
{ data: 'created', name: 'created_at' },
|
||||
],
|
||||
});
|
||||
</script>
|
||||
@endpush
|
||||
Reference in New Issue
Block a user