@extends('layouts.admin') @section('title','Reports') @section('header-title','Reports') @section('content')
@foreach([['Bookings',$summary['bookings'],'blue'],['Completed',$summary['completed'],'emerald'],['Cancelled',$summary['cancelled'],'red'],['Quotations',$summary['quotations'],'violet'],['Uninvoiced',$summary['uninvoiced'],'amber'],['Invoice revenue','₹'.number_format((float)$summary['revenue'],2),'indigo']] as [$label,$value,$tone])

{{ $label }}

{{ $value }}

@endforeach

Monthly invoices

{{ $from->format('d M Y') }} to {{ $to->format('d M Y') }}

@forelse($invoices as $invoice)@empty@endforelse
S.NoInvoiceQuotationPartyVehicle detailsDateReceivedBalanceStatusActions
{{ $loop->iteration }}{{ $invoice->invoice_number }}{{ $invoice->quotation?->quotation_number ?? '-' }}{{ $invoice->company?->name ?? $invoice->customer?->name }}@if($vehicle = $invoice->quotation?->vehicle)

{{ $vehicle->registration_number }}

{{ $vehicle->name }}

View vehicle@elseNot assigned@endif
{{ $invoice->invoice_date->format('d M Y') }}₹{{ number_format((float) $invoice->paid_amount, 2) }}₹{{ number_format((float) $invoice->total_amount, 2) }}{{ $invoice->payment_status ?? 'pending' }}
No invoices were created in this date range.

Vehicle booking summary

Bookings assigned during the selected report period.

{{ $vehicles->count() }} vehicles
@forelse($vehicles as $vehicle)@empty@endforelse
S.NoVehicleTypeStatusBookings acceptedActions
{{ $loop->iteration }}

{{ $vehicle->registration_number }}

{{ $vehicle->name }}

{{ $vehicle->vehicle_type }}{{ str($vehicle->status)->replace('_', ' ') }}{{ $vehicle->bookings_count }}
No vehicles available.
@endsection