@extends('layouts.template')

@section('content')
    @include('components.notification')

    <div class="row justify-content-between">
        <div class="col-md-6">
            @include('components.button-add', ['btnText' => $btnText, 'btnLink' => $btnLink])
        </div>
        <div class="col-md-4">
            {{-- @include('components.search') --}}
        </div>
    </div>
    @include('cashier._table')
    </div>
@endsection
@push('custom-script')
    <script type="text/javascript">
        $(function() {
            var no = 1;
            var table = $('.myTable').DataTable({
                processing: true,
                serverSide: true,
                ajax: "{{ route('cashier.index') }}",
                columns: [{
                        data: 'DT_RowIndex',
                        name: 'DT_RowIndex',
                    },
                    {
                        data: 'name',
                        name: 'name'
                    },
                    {
                        data: 'email',
                        name: 'email'
                    },
                    {
                        data: 'cabang',
                        name: 'cabang'
                    },
                    {
                        data: 'level',
                        name: 'level'
                    },
                    {
                        data: 'action',
                        name: 'action',
                        orderable: false,
                        searchable: false
                    },
                ]
            });
        });
    </script>
@endpush
