@isset($company)

{{ $company->name ?? 'Company Name' }}

{{ $company->tagline ?? 'Your professional business partner' }}

@else

INVOICE

@endisset

Invoice No: {{ $record->invoice_number }}

Issue Date: {{ $record->issue_date->format('Y-m-d') }}

Due Date: {{ $record->due_date->format('Y-m-d') }}

From:

@isset($company)

{{ $company->name }}

{{ $company->address_line_1 ?? '' }}

@if ($company->address_line_2)

{{ $company->address_line_2 }}

@endif

{{ $company->city ?? '' }}@if ($company->city && $company->postal_code), @endif{{ $company->postal_code ?? '' }}

Email: {{ $company->email ?? 'N/A' }}

Phone: {{ $company->phone ?? 'N/A' }}

@if ($company->tax_id)

Tax ID: {{ $company->tax_id }}

@endif @else

[ERROR] Company Details Missing

@endisset

Billed To:

{{ $record->client->name }}

Email: {{ $record->client->email }}

{{ $record->client->address ?? 'N/A' }}

@foreach ($record->items as $item) @endforeach
Description Quantity Unit Price Total
{{ $item->description }} {{ $item->quantity }} ${{ number_format($item->amount, 2) }} ${{ number_format($item->quantity * $item->amount, 2) }}
INVOICE TOTAL: ${{ number_format($record->total, 2) }}
@if ($record->notes)

Notes:

{{ $record->notes }}

@endif