60 lines
No EOL
2.6 KiB
PHP
60 lines
No EOL
2.6 KiB
PHP
@extends('layouts.layout-2')
|
|
|
|
@section('content')
|
|
<h4 class="font-weight-bold py-2 mb-2">
|
|
{{ __('navigation.my_orders') }} / {{ __('navigation.overview') }}
|
|
</h4>
|
|
|
|
<div class="card">
|
|
<div class="card-datatable table-responsive">
|
|
<table class="datatable-users table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>#</th>
|
|
<th>{{__('tables.date')}}</th>
|
|
<th>{{__('tables.amount')}}</th>
|
|
<th>{{__('tables.payment')}}</th>
|
|
<th>{{__('tables.status')}}</th>
|
|
<th>{{__('tables.shipping')}}</th>
|
|
<th>{{__('tables.art')}}</th>
|
|
<th>{{__('tables.invoice')}}</th>
|
|
<th>{{__('tables.firstname')}}</th>
|
|
<th>{{__('tables.lastname')}}</th>
|
|
<th>{{__('tables.email')}}</th>
|
|
<th>{{__('tables.rf_no')}}</th>
|
|
</tr>
|
|
</thead>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$( document ).ready(function() {
|
|
$('.datatable-users').dataTable({
|
|
"processing": true,
|
|
"serverSide": true,
|
|
"ajax": '{!! route('user_orders_datatable') !!}',
|
|
"order": [[0, "desc" ]],
|
|
"columns": [
|
|
{ data: 'id', searchable: false },
|
|
{ data: 'created_at', name: 'shopping_orders.created_at' },
|
|
{ data: 'total_shipping', name: 'total_shipping' },
|
|
{ data: 'payment', name: 'payment', orderable: false },
|
|
{ data: 'txaction', name: 'txaction' },
|
|
{ data: 'shipped', name: 'shipped' },
|
|
{ data: 'payment_for', name: 'payment_for' },
|
|
{ data: 'invoice', name: 'invoice', orderable: false },
|
|
{ data: 'shopping_user.shipping_firstname', name: 'shopping_user.shipping_firstname', orderable: false },
|
|
{ data: 'shopping_user.shipping_lastname', name: 'shopping_user.shipping_lastname', orderable: false },
|
|
{ data: 'shopping_user.shipping_email', name: 'shopping_user.shipping_email', orderable: false },
|
|
{ data: 'reference', name: 'reference' },
|
|
],
|
|
"bLengthChange": false,
|
|
"iDisplayLength": 100,
|
|
"language": {
|
|
"url": "/js/datatables-{{ \App::getLocale() }}.json"
|
|
}
|
|
});
|
|
|
|
});
|
|
</script>
|
|
@endsection |