@extends('back_office.layouts.app') @section('content')
Invoice Information
Date: {{ $invoice->created_at->formatLocalized('%A %d %B %Y') }}
@if ($invoice->transaction_code) Invoice # {{ $invoice->transaction_code }} @endif
Payment Status
{{ ucfirst($invoice->status) }}
@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 ?? '' }}
Address: {{ $serviceProvider->address ?? '' }}
Service Name: {{ $sofaService->name ?? 'Sofa Washing Service' }}
Sofa Wash Order Details:
@if ($order->orderItems && $order->orderItems->count() > 0) @endif @if ($order->orderItems && $order->orderItems->count() > 0) @foreach ($order->orderItems as $item) @if ($loop->first) @endif @if ($loop->first) @endif @endforeach @else @endif
Order ID StatusService TypeQuantity Unit Price Total
{{ $order->id ?? '' }} {{ ucfirst($order->status) ?? '' }}{{ $item->sofaServiceType->type_name ?? 'N/A' }} {{ $item->quantity }} {{ number_format($item->unit_price, 2) }} QAR {{ number_format($item->subtotal, 2) }} QAR
{{ $order->id ?? '' }} {{ $order->qty ?? 0 }} {{ ucfirst($order->status) ?? '' }} {{ number_format($order->price_per_sq_meter ?? 0, 2) }} QAR {{ number_format($order->total_price ?? 0, 2) }} QAR
Total Amount: {{ number_format($order->total_price ?? 0, 2) }} QAR
Payment Details:
Payment ID Transaction Code Amount Payment Method Payment Status Payment Date
{{ $invoice->id }} {{ $invoice->transaction_code ?: '---' }} {{ number_format($invoice->amount, 2) }} QAR {{ $invoice->paymentType->payment_type ?? '' }} {{ ucfirst($invoice->status) }} {{ $invoice->created_at->format('d M Y H:i') }}
@if ($order->special_instructions)
Special Instructions:
{{ $order->special_instructions }}
@endif {{--
Terms & Conditions:
  • Payment is due upon completion of service
  • Cancellation policy: 24-hour notice required
  • For any queries regarding this invoice, please contact our customer support
Thank You for Your Business!
--}}
@endsection