@php($partyLabel = $invoice->company ? 'Company' : 'Customer')
SSM Travels
Travel Booking & Transportation Services
G-4, Green House Apartment, McDonalds Rd,
Bharathiyar Salai, Cantonment, Tiruchirappalli,
Tamil Nadu 620001
+91 99943 67799
Invoice & {{ $partyLabel }} Details
{{ $partyLabel }} name
{{ $invoice->company?->name ?? $invoice->customer?->name }}
{{ $invoice->company?->billing_address ?? $invoice->customer?->address }}
Contact
{{ $invoice->company?->mobile ?? $invoice->customer?->mobile }}
{{ $invoice->company?->preferred_invoice_email ?? $invoice->company?->email ?? $invoice->customer?->email }}
Invoice number
{{ $invoice->invoice_number }}
Invoice date
{{ $invoice->invoice_date->format('d M Y') }}
{{ $invoice->quotation ? 'Quotation Details' : 'Completed Trips' }}
@if($invoice->quotation) @else @foreach($invoice->trips as $trip)@endforeach @endif @if($paymentSummary['previously_received'] > 0)@endif
#{{ $invoice->quotation ? 'Quotation / Route' : 'Booking / Route' }}VehicleAmount (INR)
1{{ $invoice->quotation->quotation_number }}
{{ $invoice->quotation->pickup_location }} to {{ $invoice->quotation->drop_location }}
{{ $invoice->quotation->vehicle?->name ?? $invoice->quotation->vehicle_type }}{{ number_format((float) $invoice->subtotal, 2) }}
{{ $loop->iteration }}{{ $trip->booking->booking_number }}
{{ $trip->booking->pickup_location }} to {{ $trip->booking->drop_location }}
{{ $trip->booking->vehicle?->registration_number ?? '-' }}{{ number_format((float) $trip->pivot->amount, 2) }}
Subtotal{{ number_format((float) $invoice->subtotal, 2) }}
Previously received{{ number_format($paymentSummary['previously_received'], 2) }}
Received with this invoice{{ number_format($paymentSummary['received_now'], 2) }}
Total received{{ number_format($paymentSummary['total_received'], 2) }}
Balance dueINR {{ number_format($paymentSummary['balance_due'], 2) }}
@if($invoice->notes)
Notes

{{ $invoice->notes }}

@endif