Estimate #{{ $estimate->estimate_number }}

@if($estimate->jobCard) Job Card #{{ $estimate->jobCard->job_card_number }} • {{ $estimate->created_at->format('M j, Y') }} @else Standalone Estimate • {{ $estimate->created_at->format('M j, Y') }} @endif

{{ ucfirst($estimate->status) }} Customer: {{ ucfirst($estimate->customer_approval_status) }} @if($estimate->validity_period_days) Valid until {{ $estimate->valid_until->format('M j, Y') }} @endif
@if($estimate->status === 'draft') @endif
Edit Estimate @if($estimate->status === 'approved') Create Work Order @endif
@if($estimate->jobCard) View Job Card @else Back to Estimates @endif

Customer & Vehicle Details

@if($estimate->customer_id) {{-- Standalone estimate --}}

{{ $estimate->customer->name }}

{{ $estimate->customer->phone }}

{{ $estimate->customer->email }}

@elseif($estimate->jobCard?->customer) {{-- Job card-based estimate --}}

{{ $estimate->jobCard->customer->name }}

{{ $estimate->jobCard->customer->phone }}

{{ $estimate->jobCard->customer->email }}

@else

Unknown Customer

No contact information

@endif
@if($estimate->vehicle_id) {{-- Standalone estimate --}}

{{ $estimate->vehicle->year }} {{ $estimate->vehicle->make }} {{ $estimate->vehicle->model }}

{{ $estimate->vehicle->license_plate }}

VIN: {{ $estimate->vehicle->vin }}

@elseif($estimate->jobCard?->vehicle) {{-- Job card-based estimate --}}

{{ $estimate->jobCard->vehicle->year }} {{ $estimate->jobCard->vehicle->make }} {{ $estimate->jobCard->vehicle->model }}

{{ $estimate->jobCard->vehicle->license_plate }}

VIN: {{ $estimate->jobCard->vehicle->vin }}

@else

Unknown Vehicle

No vehicle information

@endif

Service Items & Parts {{ $estimate->lineItems->count() }} items

@foreach($estimate->lineItems as $item) @endforeach
Description Qty Unit Price Total
{{ ucfirst($item->type) }}

{{ $item->description }}

@if($showItemDetails && $item->labor_hours)

Labor: {{ $item->labor_hours }}h @ ${{ number_format($item->labor_rate, 2) }}/hr

@endif @if($showItemDetails && $item->part_number)

Part #: {{ $item->part_number }}

@endif
{{ $item->quantity }} ${{ number_format($item->unit_price, 2) }} ${{ number_format($item->total_amount, 2) }}
@if($estimate->terms_and_conditions)

Terms & Conditions

{{ $estimate->terms_and_conditions }}

@endif

Financial Summary

Labor Cost ${{ number_format($estimate->labor_cost, 2) }}
Parts Cost ${{ number_format($estimate->parts_cost, 2) }}
@if($estimate->miscellaneous_cost > 0)
Miscellaneous ${{ number_format($estimate->miscellaneous_cost, 2) }}
@endif
Subtotal ${{ number_format($estimate->subtotal, 2) }}
@if($estimate->discount_amount > 0)
Discount -${{ number_format($estimate->discount_amount, 2) }}
@endif
Tax ({{ $estimate->tax_rate }}%) ${{ number_format($estimate->tax_amount, 2) }}
Total ${{ number_format($estimate->total_amount, 2) }}

Status Timeline

Created

{{ $estimate->created_at->format('M j, Y g:i A') }}

@if($estimate->sent_at)

Sent to Customer

{{ $estimate->sent_at->format('M j, Y g:i A') }}

@endif @if($estimate->customer_viewed_at)

Viewed by Customer

{{ $estimate->customer_viewed_at->format('M j, Y g:i A') }}

@endif @if($estimate->customer_responded_at)

Customer {{ ucfirst($estimate->customer_approval_status) }}

{{ $estimate->customer_responded_at->format('M j, Y g:i A') }}

@endif

Related Documents

@if($estimate->diagnosis)

Diagnosis Report

View diagnostic findings

@endif