@extends(branchMenu())
@section('content')
    <?php Fun::lang()?>
    <div class="page">
        <div class=container-fluid>
            <div class="top-content">
                <div class="row">
                    <div class="col-sm-12 col-xs-12">
                        <div class="title-add">
                            <div class="pull-left">
                                <h3>{{__('administrator.tailor_payable')}}</h3>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="wrapper-table">
                <table id="datatable" class="table table-striped table-hover ">
                    <thead>
                    <tr>
                        <th>#</th>
                        <th>{{__('administrator.type')}}</th>
                        <th>{{__('administrator.tailor')}} / {{__('administrator.packer')}}</th>
                        <th>{{__('administrator.contact')}}</th>
                        <th>{{__('administrator.payable_amount')}}</th>
                        <th>{{__('administrator.paid')}}</th>
                        <th>{{__('administrator.remain')}}</th>
                        <th>{{__('administrator.action')}}</th>
                    </tr>
                    </thead>
                    <tbody></tbody>
                </table>
            </div>
        </div>
    </div>
 @endsection
@section('script')
    <script type="text/javascript">
        let $table = $('#datatable');
        $(document).ready(function () {
            getTable();
        });
        function getTable() {
            $table.DataTable().destroy();
            $table.DataTable({
                ordering: false,
                serverSide: true,
                lengthMenu: tbLeng,
                ajax: "",
                columns:
                    [
                        {data: 'DT_RowIndex', searchable:false,'orderable':false},
                        {data: 'type', searchable:false},
                        {data: 'tailor_id', searchable:false},
                        {data: 'contact', searchable:false},
                        {data: 'payable_amount', searchable:false},
                        {data: 'paid', searchable:false},
                        {data: 'remain', searchable:false},
                        {data: 'action',searchable:false},
                    ],

            });

        }
    </script>
@stop



