@php $order = $getRecord(); $order->load(['user', 'branch', 'car', 'address', 'washService', 'coupon', 'orderAddons.addon', 'subscription.package', 'rating.branch', 'rating.washService', 'rating.washer']); @endphp

Order Invoice

Order #{{ $order->order_number }}

Order Information

Status

{{ $order->status->label() }}

Scheduled At

{{ $order->scheduled_at->format('d/m/Y H:i') }}

Duration

{{ $order->duration_minutes }} minutes

Payment Method

{{ ucfirst(str_replace('_', ' ', $order->payment_method)) }}

Customer & Vehicle

Customer Name

{{ $order->user->name }}

Phone Number

{{ $order->user->phone_number }}

Vehicle

{{ $order->car->full_name }}

License Plate

{{ $order->car->license_plate }}

@if($order->address)

Location

Address Name

{{ $order->address->name }}

Address Details

{{ $order->address->address_details }}

@if($order->address->lat && $order->address->lng)
View on Google Maps
@endif
@endif

Service Details

Wash Service

{{ $order->washService->name }}

@if($order->washService->description)

Description

{!! nl2br(e($order->washService->description)) !!}

@endif @if($order->orderAddons->isNotEmpty())

Addons

    @foreach($order->orderAddons as $orderAddon)
  • {{ $orderAddon->addon->name }} - {{ number_format($orderAddon->price_at_purchase, 2) }} EGP
  • @endforeach
@endif

Financial Breakdown

@if($order->discount_amount > 0) @if($order->coupon) @endif @endif @if($order->subscription) @endif
Wash Service Price: {{ number_format($order->wash_service_price, 2) }} EGP @if($order->original_wash_service_price && $order->original_wash_service_price > 0) (Original: {{ number_format($order->original_wash_service_price, 2) }} EGP) @endif
Addons Total: {{ number_format($order->addons_total_price, 2) }} EGP
Discount: - {{ number_format($order->discount_amount, 2) }} EGP
Coupon: {{ $order->coupon->code }}
Subscription: {{ $order->subscription->package->title ?? 'N/A' }} (Remaining: {{ $order->subscription->remaining_washes }} washes)
Final Total: {{ number_format($order->final_total_price, 2) }} EGP
@if($order->subscription)

Subscription Information

Package

{{ $order->subscription->package->title ?? 'N/A' }}

Total Washes

{{ $order->subscription->total_washes }}

Used Washes

{{ $order->subscription->total_washes - $order->subscription->remaining_washes }}

Remaining Washes

{{ $order->subscription->remaining_washes }}

Expiry Date

{{ $order->subscription->expiry_date->format('d/m/Y') }}

@endif @if($order->rating)

Rating Information

Worker Rating

{{ $order->rating->worker_rate }}/5 ⭐

Quality Rating

{{ $order->rating->quality_rate }}/5 ⭐

Time Rating

{{ $order->rating->time_rate }}/5 ⭐

Average Rating

{{ number_format($order->rating->average_rating, 1) }}/5 ⭐

@if($order->rating->notes)

Notes

{!! nl2br(e($order->rating->notes)) !!}

@endif

Branch: {{ $order->rating->branch->name ?? 'N/A' }}

Wash Service: {{ $order->rating->washService->name ?? 'N/A' }}

@if($order->rating->washer)

Washer: {{ $order->rating->washer->name }}

@endif
@endif @if($order->notes)

Notes

{!! nl2br(e($order->notes)) !!}

@endif

Order created on {{ $order->created_at->format('d/m/Y H:i') }}

@if($order->completed_at)

Completed on {{ $order->completed_at->format('d/m/Y H:i') }}

@endif