@extends('layouts.app') @section('content')
@lang('fleet.booking_report')
{!! Form::open(['route' => 'reports.booking','method'=>'post','class'=>'form-inline']) !!}
{!! Form::label('year', __('fleet.year'), ['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.pickup_time') @lang('fleet.from_date') @lang('fleet.to_date') @lang('fleet.passengers') @lang('fleet.status')
{{$row->customer->name}} {{$row->vehicle->make}} - {{$row->vehicle->model}} - {{$row->vehicle->license_plate}} {{$row->pickup_time}} {{$row->from_date}} {{$row->to_date}} {{$row->travellers}} @if($row->status===0)@lang('fleet.journey_not_ended') @else @lang('fleet.journey_ended') @endif
@endsection @section("script") @endsection