84 lines
2.5 KiB
PHP
84 lines
2.5 KiB
PHP
<div class="container mw-100 containerOrderArchiveModule" >
|
|
@include('modules.orderArchive.advanceSearch')
|
|
<form class="OrderArchiveModuleForm" enctype="multipart/form-data">
|
|
@csrf
|
|
<div class="container-fluid" >
|
|
<table id="dataTableOrderArchive" class="dataTable display" style="width:100%">
|
|
<thead>
|
|
<tr>
|
|
|
|
<th>Szállító</th>
|
|
<th>Szállítási dátum</th>
|
|
@role(['root','developer','admin'])
|
|
<th>Profitcenter</th>
|
|
@endrole
|
|
<th>szállítási cím</th>
|
|
<th>Leadási időpont</th>
|
|
<th>Azonosító</th>
|
|
<th>Típus</th>
|
|
<th>Jóváhagyva</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<tr>
|
|
<th>Szállító</th>
|
|
<th>Szállítási dátum</th>
|
|
@role(['root','developer','admin'])
|
|
<th>Profitcenter</th>
|
|
@endrole
|
|
<th>szállítási cím</th>
|
|
<th>Leadási időpont</th>
|
|
<th>Azonosító</th>
|
|
<th>Típus</th>
|
|
<th>Jóváhagyva</th>
|
|
<th></th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
@php
|
|
$adminMode=false;
|
|
if(auth()->user()->hasRole(['root','developer','admin'])){
|
|
$adminMode=true;
|
|
}
|
|
|
|
@endphp
|
|
|
|
|
|
@role(['root', 'developer', 'admin'])
|
|
<script>
|
|
APP.IsUserAdmin = true;
|
|
</script>
|
|
@else
|
|
<script>
|
|
APP.IsUserAdmin = false;
|
|
</script>
|
|
@endrole
|
|
|
|
<script>
|
|
$(document).ready(function() {
|
|
if (typeof APP.OrderArchiveModule === "undefined") {
|
|
APP.OrderArchiveModule = new OrderArchiveModule();
|
|
}
|
|
APP.OrderArchiveModule.init({
|
|
URL: {
|
|
root: '{{url('')}}',
|
|
getDataTableContent: '{{route('orderArchive.getDataTableContent')}}',
|
|
index: '{{route('orderArchive.index')}}',
|
|
show: '{{route('orderArchive.show',"%id%")}}',
|
|
edit: '{{route('orderArchive.edit',"%id%")}}',
|
|
},
|
|
testMode: {{$testMode ? 'true' : 'false'}}
|
|
});
|
|
|
|
var orderColIndex = APP.IsUserAdmin ? 4 : 3;
|
|
APP.OrderArchiveModule.initViewList({
|
|
orderDirective: [[orderColIndex, "desc"]]
|
|
});
|
|
});
|
|
</script>
|
|
|