@if($invoice->status === 'paid') @endif
{{ app(\App\Settings\GeneralSettings::class)->shop_name ?? 'Car Repairs Shop' }}
{{ app(\App\Settings\GeneralSettings::class)->shop_address ?? 'Shop Address' }}
{{ app(\App\Settings\GeneralSettings::class)->shop_phone ?? 'Phone Number' }}
{{ app(\App\Settings\GeneralSettings::class)->shop_email ?? 'Email Address' }}
INVOICE
#{{ $invoice->invoice_number }}
Date: {{ $invoice->invoice_date->format('M j, Y') }}
Due: {{ $invoice->due_date->format('M j, Y') }}
@if($invoice->isPaid())
Paid: {{ $invoice->paid_at->format('M j, Y') }}
@endif
{{ ucfirst($invoice->status) }}
Bill To
Name: {{ $invoice->customer->name }}
Email: {{ $invoice->customer->email }}
Phone: {{ $invoice->customer->phone }}
@if($invoice->customer->address)
Address: {{ $invoice->customer->address }}
@endif @if($invoice->customer->city)
City: {{ $invoice->customer->city }}, {{ $invoice->customer->state ?? '' }} {{ $invoice->customer->zip_code ?? '' }}
@endif
@php $vehicle = $invoice->serviceOrder?->vehicle ?? $invoice->jobCard?->vehicle; @endphp @if($vehicle)
Vehicle Information
Vehicle: {{ $vehicle->year }} {{ $vehicle->make }} {{ $vehicle->model }}
License: {{ $vehicle->license_plate }}
@if($vehicle->vin)
VIN: {{ $vehicle->vin }}
@endif @if($vehicle->mileage)
Mileage: {{ number_format($vehicle->mileage) }} miles
@endif
@endif @if($invoice->serviceOrder || $invoice->jobCard || $invoice->estimate)
Service Information
@if($invoice->serviceOrder)
Service Order: #{{ $invoice->serviceOrder->order_number }}
@endif @if($invoice->jobCard)
Job Card: #{{ $invoice->jobCard->job_number }}
@endif @if($invoice->estimate)
Estimate: #{{ $invoice->estimate->estimate_number }}
@endif
@endif
Services & Parts
@if($invoice->lineItems->count() > 0) @foreach($invoice->lineItems as $item) @endforeach
Type Description Qty Unit Price Total
{{ ucfirst($item->type) }} {{ $item->description }} @if($item->part)
Part #: {{ $item->part->part_number }} @endif @if($item->part_number)
Part #: {{ $item->part_number }} @endif @if($item->technical_notes)
{{ $item->technical_notes }} @endif
{{ $item->quantity }} ${{ number_format($item->unit_price, 2) }} ${{ number_format($item->total_amount, 2) }}
@else
No line items available
@endif
@if($invoice->discount_amount > 0) @endif
Subtotal: ${{ number_format($invoice->subtotal, 2) }}
Discount: -${{ number_format($invoice->discount_amount, 2) }}
Tax ({{ $invoice->tax_rate }}%): ${{ number_format($invoice->tax_amount, 2) }}
Total: ${{ number_format($invoice->total_amount, 2) }}
@if($invoice->isPaid())
Payment Information

Payment Date: {{ $invoice->paid_at->format('M j, Y g:i A') }}

@if($invoice->payment_method)

Payment Method: {{ ucfirst(str_replace('_', ' ', $invoice->payment_method)) }}

@endif @if($invoice->payment_reference)

Reference: {{ $invoice->payment_reference }}

@endif @if($invoice->payment_notes)

Notes: {{ $invoice->payment_notes }}

@endif
@else
Payment Information

Payment is due by {{ $invoice->due_date->format('M j, Y') }}.

Please include invoice number {{ $invoice->invoice_number }} with your payment.

Payment Methods: Cash, Credit Card, Check, Bank Transfer

@endif @if($invoice->notes)
Notes
{{ $invoice->notes }}
@endif @if($invoice->terms_and_conditions)
Terms & Conditions
{{ $invoice->terms_and_conditions }}
@endif