@extends('user.layouts.app') @section('title','Invoice Preview') @section('page-title') Invoice {{ $invoice->invoice_number }} @endsection @section('page-subtitle') {{ $invoice->conference?->name }} @endsection @push('styles') @endpush @section('content') @php $lineItems = $invoice->lineItems(); $currency = $invoice->currencySymbol(); @endphp
@if($settingsService->logoUrl()) @endif
{{ $branding['organization_name'] }}
@if($branding['organization_tagline'])

{{ $branding['organization_tagline'] }}

@endif @if($branding['support_email'] || $branding['support_phone'])

@if($branding['support_email']){{ $branding['support_email'] }}@endif @if($branding['support_email'] && $branding['support_phone']) · @endif @if($branding['support_phone']){{ $branding['support_phone'] }}@endif

@endif

INVOICE

{{ $invoice->invoice_number }}

{{ ucfirst($invoice->status) }}
Bill To
{{ $invoice->user?->name }}
{{ $invoice->user?->email }}
@if($invoice->user?->phone){{ $invoice->user->phone }}@endif
Invoice Date
{{ $invoice->issued_at?->format('M d, Y') ?? '—' }}
Conference
{{ $invoice->conference?->name }}
@if($invoice->payment?->registration?->registration_number)
Registration No.
{{ $invoice->payment->registration->registration_number }}
@endif
@foreach($lineItems as $item) @endforeach
Description Amount
{{ $item['description'] }} {{ $currency }}{{ number_format($item['amount'], 2) }}
Total {{ $currency }}{{ number_format($invoice->total_amount, 2) }}
Amount Paid {{ $currency }}{{ number_format($invoice->amount_paid, 2) }}
Balance Due {{ $currency }}{{ number_format($invoice->balance, 2) }}
@if($invoice->payment)
@if($invoice->payment->payment_gateway)

Payment Method: {{ ucfirst($invoice->payment->payment_gateway) }}

@endif @if($invoice->payment->payment_reference)

Transaction Reference: {{ $invoice->payment->payment_reference }}

@endif
@if($invoice->receipt_number)

Receipt #: {{ $invoice->receipt_number }}

@endif @if($invoice->payment->paid_at)

Paid On: {{ $invoice->payment->paid_at->format('M d, Y H:i') }}

@endif
@elseif($invoice->receipt_number)

Receipt #: {{ $invoice->receipt_number }}

@endif
Back
@endsection