@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 ?? '' }}
Address: {{ $serviceProvider->address ?? '' }}
Service Name: {{ $sofaService->name ?? 0 }}
Service Price per m²: {{ $sofaService->price ?? 0 }} QAR
Status: {{ $serviceProvider->is_active ?? false ? 'Active' : 'Inactive' }}
Wash Order Details:
Order ID Status Total
{{ $order->id ?? '' }} {{ $order->status ?? '' }} {{ $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