@extends('layouts.app') @section('content')
@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 --}}
Infokings Media Ltd
Video Production · Social Media · Writing Services
{{ $invoice->invoice_number }}
{{ ucfirst($invoice->status) }}
{{-- Print / actions --}}
@if ($invoice->status !== 'paid' && $invoice->amount !== null && (float) $invoice->amount > 0)
@csrf
@endif
@if ($invoice->status !== 'paid')
Coupon Code
@csrf
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 --}} @forelse ($invoice->services ?? [] as $service) @empty @endforelse @if ($invoice->word_count) @endif @if ($invoice->service_minutes) @endif
Service Details
{{ $service }}
No services listed
Word Count {{ number_format($invoice->word_count) }} words
Estimated Duration {{ $invoice->service_minutes }} minutes
{{-- 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 --}}
@endsection