@extends('layouts.pdf')
@php
// Dummy data for preview if actual data is not available
if (!isset($booking)) {
$booking = (object) [
'booking_number' => 'BK-2025-001',
'booking_date_time' => now(),
];
}
if (!isset($customer)) {
$customer = (object) [
'name' => 'John Doe',
'phone' => '+91 9876543210',
'address' => '123, Main Street, City Name, State - 400001',
];
}
if (!isset($vehicle)) {
$vehicle = (object) [
'vehicle_number' => 'MH-12-AB-1234',
'modal' => 'Honda City 2023',
'color' => 'White',
];
}
if (!isset($services)) {
$services = [
(object) ['name' => 'Premium Car Wash', 'price' => 500],
(object) ['name' => 'Interior Cleaning', 'price' => 300],
(object) ['name' => 'Exterior Polishing', 'price' => 800],
(object) ['name' => 'Engine Cleaning', 'price' => 400],
];
}
if (!isset($payment)) {
$payment = (object) [
'payment_date' => now(),
'method' => 'cash',
];
}
@endphp
@section('styles')
@endsection
@section('content')
| Booking No |
: |
{{ $booking->booking_number }}
|
| Booking Date |
: |
{{ \Carbon\Carbon::parse($booking->booking_date_time)->format('d-m-Y h:i A') }}
|
@if ($company->pdf_title_show_in_pdf == 1)
@endif
| Customer Name |
{{ $customer->name }} |
Vehicle No |
{{ $vehicle->vehicle_number }} |
| Phone |
{{ $customer->phone }} |
Vehicle Model |
{{ $vehicle->modal }} |
| Address |
{{ $customer->address }} |
Color |
{{ $vehicle->color }} |
| # |
Service Name |
Price (₹) |
@php $total = 0; @endphp
@foreach ($services as $index => $service)
@php $total += $service->price; @endphp
| {{ $index + 1 }} |
{{ $service->name }} |
{{ number_format($service->price, 2) }} |
@endforeach
| Grand Total |
₹ {{ number_format($total, 2) }} |
Total (In Words):
{{ \Modules\CarWashing\Classes\Common::convert($total) }} Only
@if (!empty($payment))
| Payment Details |
| Payment Date |
{{ \Carbon\Carbon::parse($payment->payment_date)->format('d-m-Y h:i A') }}
|
Payment Mode |
{{ strtoupper($payment->method) }} |
| Payment Status |
PAID
|
@endif
For {{ $company->name }}
Authorized Signatory
@endsection