{{ 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' }}
ESTIMATE
#{{ $estimate->estimate_number }}
Date: {{ $estimate->created_at->format('M j, Y') }}
@if($estimate->validity_period_days)
Valid Until: {{ $estimate->valid_until->format('M j, Y') }}
@endif
{{ ucfirst($estimate->status) }}
Customer Information
@php $customer = $estimate->customer ?? $estimate->jobCard?->customer; @endphp @if($customer)
Name: {{ $customer->name }}
Email: {{ $customer->email }}
Phone: {{ $customer->phone }}
@else
No customer information available
@endif
@php $vehicle = $estimate->vehicle ?? $estimate->jobCard?->vehicle; @endphp @if($vehicle)
Vehicle: {{ $vehicle->year }} {{ $vehicle->make }} {{ $vehicle->model }}
License: {{ $vehicle->license_plate }}
@if($vehicle->vin)
VIN: {{ $vehicle->vin }}
@endif @else
No vehicle specified
@endif
@if($estimate->jobCard)
Job Information
Job Card: #{{ $estimate->jobCard->job_number }}
@if($estimate->diagnosis)
Diagnosis: {{ Str::limit($estimate->diagnosis->findings, 100) }}
@endif
@endif
Services & Parts
@if($estimate->lineItems->count() > 0) @foreach($estimate->lineItems as $item) @endforeach
Type Description Qty Unit Price Total
{{ ucfirst($item->type) }} {{ $item->description }} @if($item->part)
Part #: {{ $item->part->part_number }} @endif
{{ $item->quantity }} ${{ number_format($item->unit_price, 2) }} ${{ number_format($item->total_amount, 2) }}
@else
No line items available
@endif
@if($estimate->discount_amount > 0) @endif
Subtotal: ${{ number_format($estimate->subtotal, 2) }}
Discount: -${{ number_format($estimate->discount_amount, 2) }}
Tax ({{ $estimate->tax_rate }}%): ${{ number_format($estimate->tax_amount, 2) }}
Total: ${{ number_format($estimate->total_amount, 2) }}
@if($estimate->notes)
Notes
{{ $estimate->notes }}
@endif @if($estimate->terms_and_conditions)
Terms & Conditions
{{ $estimate->terms_and_conditions }}
@endif