@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="vehicle" class="form-control">
                                <option value="">----Select Vehicle----</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="vehicle_error"></span>
                        </div>
                    </div>
                    <div class="row" style="margin-top: 10px;">
                     {{--   <div class="col-md-6">
                            <button onclick="vehicle_wise_pump_pending_slip()" class="btn btn-success pull-right"> Pump Pending Slip Report
                            </button>
                        </div>--}}
                       {{-- <div class="col-md-4">
                            <button class="btn btn-success" onclick="vehicle_p_l_summary()">Profit/Loss
                                Summary
                            </button>
                        </div>--}}
                        <div class="col-md-6">
                            <button class="btn btn-success" onclick="vehicle_porfit_report()">Profit Ledger
                            </button>

                        </div>
                        <div class="col-md-6">
                            <button class="btn btn-success pull-right" onclick="trip_expense_report()">Trip Expense
                                Report
                            </button>
                        </div>
                    </div>
                    <div class="row " style="margin-top: 10px;">
                        {{--<div class="col-md-6">
                            <button class="btn btn-success mt-3" onclick="vehicle_wise_trip_report()">Trip Report
                            </button>

                        </div>--}}

                    </div>

                </div>
            </div>
         
        </div>

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