@if(!empty($company['logo']))
{{ $company['name'] }}
@else
{{ $company['name'] }}
@endif
@if(!empty($company['logo']))
{{ $company['name'] }}
@endif @if($company['phone'])
Phone: {{ $company['phone'] }}
@endif @if($company['email'])
Email: {{ $company['email'] }}
@endif @if($company['address'])
{{ $company['address'] }}
@endif
Invoice
#{{ $invoice->invoice_number }}
@php $statusClass = match($invoice->status) { 'paid' => 'paid', 'pending', 'unpaid' => 'pending', 'overdue' => 'overdue', 'cancelled' => 'cancelled', 'refunded' => 'refunded', 'partially_paid' => 'partially_paid', default => 'draft', }; @endphp
{{ ucfirst(str_replace('_', ' ', $invoice->status)) }}
@if($invoice->user)
{{ $invoice->user->first_name }} {{ $invoice->user->last_name }}
@if($invoice->user->company)
{{ $invoice->user->company }}
@endif @if($invoice->user->email)
{{ $invoice->user->email }}
@endif @if($invoice->user->phone)
{{ $invoice->user->phone }}
@endif @else
N/A
@endif
Invoice Date: {{ $invoice->created_at->format('M d, Y') }}
Due Date: {{ $invoice->due_date?->format('M d, Y') ?? 'N/A' }}
Type: {{ ucfirst($invoice->type ?? 'N/A') }}
Currency: {{ $invoice->currency_code }}
@if($invoice->paid_at)
Paid On: {{ $invoice->paid_at->format('M d, Y') }}
@endif
@forelse($invoice->items as $item) @empty @endforelse
Description Period Qty Unit Price Discount Total
{{ $item->description }} {{ $item->formatted_period ?? '-' }} {{ $item->quantity }} {{ number_format($item->unit_price, 2) }} {{ number_format($item->discount, 2) }} {{ number_format($item->total, 2) }}
No items
@if($invoice->discount_amount > 0) @endif @if($invoice->tax_amount > 0) @endif @if($invoice->transaction_fee > 0) @endif @if($invoice->amount_paid > 0) @endif
Subtotal {{ number_format($invoice->subtotal, 2) }}
Discount -{{ number_format($invoice->discount_amount, 2) }}
Tax {{ number_format($invoice->tax_amount, 2) }}
Transaction Fee {{ number_format($invoice->transaction_fee, 2) }}
Total {{ $invoice->currency_code }} {{ number_format($invoice->total, 2) }}
Amount Paid {{ number_format($invoice->amount_paid, 2) }}
Balance Due {{ $invoice->currency_code }} {{ number_format($invoice->balance_due, 2) }}
@if($invoice->notes)

{{ $invoice->notes }}

@endif