@if (request('payment') === 'success')
Payment successful. Thank you for your payment.
@elseif (request('payment') === 'cancelled')
Payment was cancelled. You can try again when ready.
@endif
@if (session('error'))
{{ session('error') }}
@endif
@if (session('success'))
{{ session('success') }}
@endif
{{-- Success message on first load --}}
Thank you, {{ $invoice->name }}! Your quote has been received. Here is your invoice summary.
{{-- Header --}}
{{-- Print / actions --}}
@if ($invoice->status !== 'paid' && $invoice->amount !== null && (float) $invoice->amount > 0)
@endif
@if ($invoice->status !== 'paid')
Coupon Code
Applying a valid coupon updates this invoice amount to the coupon amount set by admin.
@endif
{{-- Bill-to & dates --}}
- Billed To
-
{{ $invoice->name }}
{{ $invoice->business_name }}
{{ $invoice->email }}
@if ($invoice->phone){{ $invoice->phone }}@endif
- Invoice Date
- {{ $invoice->created_at->format('M d, Y') }}
- Due Date
- {{ $invoice->due_date?->format('M d, Y') ?? '—' }}
{{-- Services table --}}
| Service |
Details |
@forelse ($invoice->services ?? [] as $service)
| {{ $service }} |
— |
@empty
| No services listed |
@endforelse
@if ($invoice->word_count)
| Word Count |
{{ number_format($invoice->word_count) }} words |
@endif
@if ($invoice->service_minutes)
| Estimated Duration |
{{ $invoice->service_minutes }} minutes |
@endif
{{-- Totals --}}
@if ($invoice->amount !== null)
Subtotal
${{ number_format((float) $invoice->amount, 2) }}
@if ($invoice->coupon_code)
Applied Coupon
{{ $invoice->coupon_code }}
@endif
GST (5%)
${{ number_format((float) $invoice->amount * 0.05, 2) }}
Total (CAD)
${{ number_format((float) $invoice->amount * 1.05, 2) }}
@else
Amount to be confirmed — we'll follow up within 24 hours.
@endif
{{-- Notes / extra details --}}
@if ($invoice->notes)
Notes
{{ $invoice->notes }}
@endif
{{-- Footer --}}