fix: remove onafterprint()

This commit is contained in:
Yoga Pangestu 2025-01-03 15:56:29 +07:00
parent 04676604c6
commit 3fe95fcda0

View File

@ -16,7 +16,7 @@
<div class="card"> <div class="card">
<div class="card-body"> <div class="card-body">
<div class="table-responsive"> <div class="table-responsive">
<table class="display" id="datatable"> <table class="display" id="datatable" data-ajax="{{ url(url()->current()) }}">
<thead> <thead>
<tr> <tr>
<th>No</th> <th>No</th>
@ -36,7 +36,7 @@
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@foreach ($transactions as $transaction) {{-- @foreach ($transactions as $transaction)
<tr> <tr>
<td>{{ $loop->iteration }}</td> <td>{{ $loop->iteration }}</td>
<td>{{ $transaction->cashier->biography->full_name ?? '-deleted-' }}</td> <td>{{ $transaction->cashier->biography->full_name ?? '-deleted-' }}</td>
@ -111,7 +111,7 @@
</td> </td>
@endif @endif
</tr> </tr>
@endforeach @endforeach --}}
</tbody> </tbody>
</table> </table>
</div> </div>
@ -196,8 +196,12 @@
</div> </div>
@endsection @endsection
@section('afterScripts') @section('afterScripts')
<script>
let userRole = {!! auth()->user()->role_id !!};
</script>
<script src="{{ asset('assets/admin/js/datatable/jquery.dataTables.min.js?ver=1.0.0') }}"></script> <script src="{{ asset('assets/admin/js/datatable/jquery.dataTables.min.js?ver=1.0.0') }}"></script>
<script src="{{ asset('assets/admin/js/datatable/client-side.js?ver=1.0.0') }}"></script> <script src="{{ asset('assets/admin/js/datatable/custom-table/transaction.js?ver=1.1.0') }}"></script>
<script src="{{ asset('assets/admin/js/datatable/server-side.js?ver=1.0.0') }}"></script>
<script src="{{ asset('assets/js/interactions/confirmation.js?ver=1.0.0') }}"></script> <script src="{{ asset('assets/js/interactions/confirmation.js?ver=1.0.0') }}"></script>
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script> <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<script src="{{ asset('assets/admin/js/custom/transaction.js?ver=1.0.0') }}"></script> <script src="{{ asset('assets/admin/js/custom/transaction.js?ver=1.0.0') }}"></script>