@extends('layout')
@section('title', 'بروکر لین دین رپورٹس')
@section('page_title', 'بروکر لین دین رپورٹس')
{{-- @section('page_sub_title', '') --}}
@section('content')
    <div class="row">
        <div class="col-md-3"></div>
        <div class="col-md-6">
            <div class="panel panel-card">
                <div class="panel-body">
                    <div class="row">
                        <div class="col-md-6">
                            <div class="input-group">
                                <span class="input-group-addon">تاریخ ابتدا</span>
                                <input type="date" id="starting_date" name="starting_date" value="2022-05-01"
                                       class="form-control">
                            </div>
                            <span class="text-danger error" id="starting_date_error"></span>
                        </div>
                        <div class="col-md-6">
                            <div class="input-group">
                                <span class="input-group-addon">تاریخ انتہا</span>
                                <input type="date" id="ending_date" name="ending_date" class="form-control"
                                       value="{{ date('Y-m-d') }}">
                            </div>
                            <span class="text-danger error" id="ending_date_error"></span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="col-md-3"></div>
    </div>
    <div class="row mt-2">

        <div class="col-md-4">
            <div class="panel panel-card">
                <div class="panel-body">
                    <div class="row">
                        <div class="col-md-12">
                            <label for="">گاڑی:</label>
                            <select name="vehicle" id="broker_vehicle" class="form-control">
                                <option value="">----Select Vehicle----</option>
                                <option value="all">تمام</option>
                                @forelse($vehicles as $vehicle)
                                    <option value="{{ $vehicle->id }}" data-table="vehicle">{{ $vehicle->vehicle_no }}
                                    </option>
                                @empty
                                @endforelse
                            </select>
                            <span class="text-danger error" id="broker_vehicle_error"></span>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-md-12">
                            <label for="">بروکر:</label>
                            <select name="pump" id="broker" class="form-control">
                                <option value="">----Select Broker----</option>
                                <option value="all">تمام</option>
                                @forelse($brokers as $broker)
                                    <option value="{{ $broker->id }}" data-table="pump">{{ $broker->name }}
                                    </option>
                                @empty
                                @endforelse
                            </select>
                            <span class="text-danger error" id="broker_error"></span>
                        </div>
                    </div>
                    <div class="row" style="margin-top: 10px;">
                        <div class="col-md-6">
                            <button onclick="broker_pending_slip()" class="btn btn-success "> Broker Freight
                                Report
                            </button>
                        </div>
                    </div>

                    {{-- <div class="row">
                         <div class="col-md-12">
                             <label for="">سے (شہر):</label>
                             <select name="from_city" id="from_city" class="form-control select-form">
                                 <option value="">-------------------Select From City-------------------
                                 </option>
                                 @forelse ($cities as $citie)
                                     <option value="{{ $citie->id }}"> {{ $citie->name }} </option>
                                 @empty
                                 @endforelse
                             </select>
                             <span class="text-danger error" id="from_city_error"></span>
                         </div>
                         <div class="col-md-12">
                             <label for="">کو (شہر):</label>
                             <select name="to_city" id="to_city" class="form-control">
                                 <option value="">-------------------Select To City-------------------
                                 </option>
                                 @forelse ($cities as $citie)
                                     <option value="{{ $citie->id }}"> {{ $citie->name }} </option>
                                 @empty
                                 @endforelse
                             </select>
                             <span class="text-danger error" id="to_city_error"></span>
                         </div>
                     </div>
                     <div class="row mt-3">
                         <div class="col-md-12">
                             <button onclick="city_wise_report()" class="btn btn-primary">City Wise Trip Report</button>
                         </div>
                     </div>--}}
                </div>
            </div>
        </div>


    </div>
@endsection
@section('javascript')
    @include('reports.js')
@endsection
