@extends('back_office.layouts.app') @section('content')
Date: {{ $invoice->created_at->formatLocalized('%A %d %B %Y') }}
@if ($invoice->transaction_code) Invoice #{{ $invoice->transaction_code }} @endif Download Invoice

@if ($invoice->user)
Customer Details:
@endif
@if ($invoice->user) CUSTOMER CODE: {{ $invoice->user->reference_code }}
CUSTOMER NAME: {{ $invoice->user->name }}
CUSTOMER Phone: {{ $invoice->user->phone }}
CUSTOMER Email: {{ $invoice->user->email }}
@endif
Service Provider:
Name: {{ $serviceProvider->title ?? '' }}
Description: {{ $serviceProvider->description ?? '' }}
Price per m²: {{ $serviceProvider->price ?? 0 }} QAR
Status: {{ $serviceProvider->is_active ?? false ? 'Active' : 'Inactive' }}
Address: {{ $serviceProvider->address ?? '' }}
Wash Order Details:
Order ID Size Qty Status Amount Total
{{ $order->id ?? '' }} {{ number_format($order->carpet_width ?? 0, 1) }} x {{ number_format($order->carpet_height ?? 0, 1) }} m² {{ $order->qty ?? 0 }} {{ $order->status ?? '' }} {{ $order->price_per_sq_meter ?? 0 }} QAR {{ $order->total_price ?? 0 }} QAR
Payment Details:
{{-- --}} {{-- --}}
Payment ID Transaction code AMOUNT Payment MethodCoupon DiscountPayment STATUS
{{ $invoice->id }} {{ $invoice->transaction_code ?: '---' }} {{ $invoice->amount }} QAR {{ $invoice->paymentType->payment_type ?? '' }} {{ @$invoice->coupon ? $invoice->coupon->code : '---' }} {{ @$invoice->discount ?: '---' }}{{ $invoice->status }}
@endsection