@extends('admin.layouts.app') @section('title', 'Invoice Details') @section('content')
| Invoice Number: | {{ $invoice->invoice_number }} |
| Invoice Date: | {{ $invoice->formatted_invoice_date }} |
| Due Date: | {{ $invoice->due_date ? $invoice->due_date->format('M d, Y') : 'N/A' }} |
| Status: | {{ ucfirst($invoice->status) }} |
| Payment Status: | @php $paymentColors = ['unpaid' => 'danger', 'partial' => 'warning', 'paid' => 'success', 'overdue' => 'dark']; @endphp {{ ucfirst($invoice->payment_status) }} |
{{ $invoice->invoice_note }}
@endifNo customers
@endforelseNo agents
@endforelseNo inspectors
@endforelse| Service | Quantity | Unit Price | Total |
|---|---|---|---|
| {{ $service->service_name ?? 'Unknown Service' }} | {{ $quantity }} | ${{ number_format($unitPrice, 2) }} | ${{ number_format($total, 2) }} |
| {{ $discount->title }} (Discount) | 1 | -${{ number_format($discount->amount, 2) }} | -${{ number_format($discount->amount, 2) }} |
| {{ $fee->title }} (Additional Fee) | 1 | ${{ number_format($fee->amount, 2) }} | ${{ number_format($fee->amount, 2) }} |
| Subtotal: | ${{ number_format($invoice->subtotal_amount ?? 0, 2) }} | ||
| Tax: | ${{ number_format($invoice->tax_amount, 2) }} | ||
| Coupon Discount ({{ $invoice->coupon_code }}): | -${{ number_format($invoice->coupon_discount, 2) }} | ||
| Total: | {{ $invoice->formatted_total }} | ||
| Date | Amount | Method | Reference | Status | Recorded By |
|---|---|---|---|---|---|
| {{ $payment->formatted_payment_date }} | {{ $payment->formatted_amount }} | {{ $payment->payment_method_display }} | {{ $payment->reference_number ?: '-' }} | {{ $payment->status_display }} | {{ $payment->recordedBy->first_name ?? 'Unknown' }} {{ $payment->recordedBy->last_name ?? '' }} |
| Total Paid: | ${{ number_format($invoice->paid_amount, 2) }} | ||||
| Balance Due: | {{ $invoice->formatted_balance }} | ||||
No payments recorded yet.
@endif