@extends('canteen.layouts.container')

@section('content')
    <form>
        <div class="side-title">
            <div class="row">
                <div class="col-lg-6">
                    <h3>{{ $title }}</h3>
                </div>

            </div>
        </div>

        <!-- ------------ data table ------------- -->
        <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th scope="col">
                    <div class="custom-control custom-checkbox">
                        <input type="checkbox" class="custom-control-input" id="selectall" name="example1">
                        <label class="custom-control-label" for="selectall"> </label>
                    </div>
                </th>
                <th scope="col">{{ __('payment_logs.status') }}</th>
                <th scope="col">{{ __('payment_logs.price') }}</th>
                <th scope="col">{{ __('payment_logs.description') }}</th>
                <th scope="col" colspan="2">{{ __('dashboard.created_at') }}</th>
                <th scope="col">{{ __('dashboard.processes') }}</th>
            </tr>
            </thead>

            <tbody class="response">
            <tr class="search_filter_form">
                <th scope="row">
                    <!-- <input type="checkbox" class="checkAll" /> -->
                </th>
                <th scope="row">
                    <select type="text" name="type"  class="form-control" >
                        <option value="">{{ __('dashboard.select') }}</option>
                        @foreach($statuses as $row)
                            <option value="{{$row}}">{{ __('payment_logs.statuses.'.$row) }}</option>
                        @endforeach
                    </select>
                </th>
                <th scope="row">
                    <input type="text" name="price" value="{{ $request->price ?? '' }}" class="form-control" placeholder="">
                </th>
                <th scope="row">
                    <input type="text" name="description" value="{{ $request->description ?? '' }}" class="form-control" placeholder="">
                </th>
                <td>
                    <input type="text" placeholder="{{ __('dashboard.date_from') }}" name="date_from" value="{{ $request->date_from ?? '' }}" class="date_from form-control">
                </td>
                <td>
                    <input type="text" placeholder="{{ __('dashboard.date_to') }}" name="date_to" value="{{ $request->date_to ?? '' }}" class="date_to form-control">
                </td>


                <th scope="col">
                    <button type="button" class="butn butn_blue search">
                        <div class="cont">
                            <span> {{__('dashboard.select')}}  </span>
                        </div>
                        <img src="{{ asset('assets/admin/images/butn_shap.png') }} " alt="" class="shape">
                    </button>
                    <!--<button type="button" class="butn color small search"><span><i class="fas fa-search"></i></span></button>-->
                </th>            </tr>
            </tbody>


        </table>
        <!-- ------------ sidemenu links ------------- -->
    </form>
@endsection



<script>
    /**
     * Importat to handle ajax requests for filters, deletes, trash and any proccess done on the table's data
     */
    var dataTable={
        route: '{{ route("canteen.payment_logs.grid") }}'
    }
</script>
@section('inner_js')
    <script>
        /**
         * Set local storage articleGallery key to null
         * it means add new photo success
         */
        $(document).ready(function () {
            localStorage.setItem('articleGallery', 'null');
            localStorage.setItem('oldArticleStorage', 'null')
        })
    </script>
@endsection
