@extends('layouts.app') @section("breadcrumb")
  • @lang('menu.reports')
  • @lang('fleet.booking_report')
  • @endsection @section('content')

    @lang('fleet.booking_report')

    {!! Form::open(['route' => 'reports.booking','method'=>'post','class'=>'form-inline']) !!}
    {!! Form::label('year', __('fleet.year1'), ['class' => 'form-label']) !!} {!! Form::select('year', $years, $year_select,['class'=>'form-control']); !!}
    {!! Form::label('month', __('fleet.month'), ['class' => 'form-label']) !!} {!! Form::selectMonth('month',$month_select,['class'=>'form-control']); !!}
    {!! Form::label('vehicle', __('fleet.vehicles'), ['class' => 'form-label']) !!}
    {!! Form::label('customer_id', __('fleet.selectCustomer'), ['class' => 'form-label']) !!}
    {!! Form::close() !!}

    @lang('fleet.booking_count') {{$bookings->count()}}

    @foreach($bookings as $row) @endforeach
    @lang('fleet.customer') @lang('fleet.vehicle') @lang('fleet.from_date') @lang('fleet.to_date') @lang('fleet.passengers') @lang('fleet.status')
    {{$row->customer->name}} @if($row->vehicle_id != null) {{$row->vehicle->make}} - {{$row->vehicle->model}} - {{$row->vehicle->license_plate}} @endif {{date('d/m/Y g:i A',strtotime($row->pickup))}} {{date('d/m/Y g:i A',strtotime($row->dropoff))}} {{$row->travellers}} @if($row->status===0)@lang('fleet.journey_not_ended') @else @lang('fleet.journey_ended') @endif
    @endsection @section("script") @endsection