2021-06-05 09:26:32 +00:00
|
|
|
@extends('layouts.main')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<!-- CONTENT HEADER -->
|
|
|
|
<section class="content-header">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row mb-2">
|
|
|
|
<div class="col-sm-6">
|
2021-12-20 10:18:35 +00:00
|
|
|
<h1>{{ __('Store') }}</h1>
|
2021-06-05 09:26:32 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-6">
|
|
|
|
<ol class="breadcrumb float-sm-right">
|
2021-12-20 10:18:35 +00:00
|
|
|
<li class="breadcrumb-item"><a href="{{ route('home') }}">{{ __('Dashboard') }}</a></li>
|
2021-06-05 09:26:32 +00:00
|
|
|
<li class="breadcrumb-item"><a class="text-muted"
|
2021-12-20 10:18:35 +00:00
|
|
|
href="{{ route('admin.store.index') }}">{{ __('Store') }}</a></li>
|
2021-06-05 09:26:32 +00:00
|
|
|
</ol>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<!-- END CONTENT HEADER -->
|
|
|
|
|
|
|
|
<!-- MAIN CONTENT -->
|
|
|
|
<section class="content">
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
2021-12-20 17:50:18 +00:00
|
|
|
|
2021-06-05 09:26:32 +00:00
|
|
|
|
|
|
|
<div class="card">
|
|
|
|
|
|
|
|
<div class="card-header">
|
|
|
|
<div class="d-flex justify-content-between">
|
2021-12-20 10:18:35 +00:00
|
|
|
<h5 class="card-title"><i class="fas fa-sliders-h mr-2"></i>{{ __('Store') }}</h5>
|
|
|
|
<a href="{{ route('admin.store.create') }}" class="btn btn-sm btn-primary"><i
|
|
|
|
class="fas fa-plus mr-1"></i>{{ __('Create new') }}</a>
|
2021-06-05 09:26:32 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body table-responsive">
|
|
|
|
|
|
|
|
<table id="datatable" class="table table-striped">
|
|
|
|
<thead>
|
2021-12-20 10:18:35 +00:00
|
|
|
<tr>
|
|
|
|
<th>{{ __('Active') }}</th>
|
|
|
|
<th>{{ __('Type') }}</th>
|
|
|
|
<th>{{ __('Price') }}</th>
|
|
|
|
<th>{{ __('Display') }}</th>
|
|
|
|
<th>{{ __('Description') }}</th>
|
|
|
|
<th>{{ __('Created at') }}</th>
|
|
|
|
<th></th>
|
|
|
|
</tr>
|
2021-06-05 09:26:32 +00:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<!-- END CUSTOM CONTENT -->
|
|
|
|
|
|
|
|
</section>
|
|
|
|
<!-- END CONTENT -->
|
|
|
|
|
|
|
|
<script>
|
|
|
|
function submitResult() {
|
|
|
|
return confirm("Are you sure you wish to delete?") !== false;
|
|
|
|
}
|
|
|
|
|
2021-12-20 10:18:35 +00:00
|
|
|
document.addEventListener("DOMContentLoaded", function() {
|
2021-06-05 09:26:32 +00:00
|
|
|
$('#datatable').DataTable({
|
2021-12-13 21:39:40 +00:00
|
|
|
language: {
|
2023-02-05 17:20:55 +00:00
|
|
|
url: '//cdn.datatables.net/plug-ins/1.11.3/i18n/{{ $locale_datatables }}.json'
|
2021-12-13 21:39:40 +00:00
|
|
|
},
|
2021-06-05 09:26:32 +00:00
|
|
|
processing: true,
|
|
|
|
serverSide: true,
|
|
|
|
stateSave: true,
|
2021-12-20 10:18:35 +00:00
|
|
|
ajax: "{{ route('admin.store.datatable') }}",
|
|
|
|
order: [
|
|
|
|
[2, "desc"]
|
|
|
|
],
|
|
|
|
columns: [{
|
|
|
|
data: 'disabled'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
data: 'type'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
data: 'price'
|
|
|
|
},
|
|
|
|
{
|
2023-02-15 20:22:16 +00:00
|
|
|
data: 'display',
|
|
|
|
sortable: false
|
2021-12-20 10:18:35 +00:00
|
|
|
},
|
|
|
|
{
|
2023-02-15 20:22:16 +00:00
|
|
|
data: 'description',
|
|
|
|
sortable: false
|
2021-12-20 10:18:35 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
data: 'created_at'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
data: 'actions',
|
|
|
|
sortable: false
|
|
|
|
},
|
2021-06-05 09:26:32 +00:00
|
|
|
],
|
2021-12-20 10:18:35 +00:00
|
|
|
fnDrawCallback: function(oSettings) {
|
2021-06-05 09:26:32 +00:00
|
|
|
$('[data-toggle="popover"]').popover();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
@endsection
|