@php $company = $invoice->company_snapshot ?? []; $logoUrl = $invoice->logoPath() ? route('woo.public.logo', $invoice->public_token) : null; @endphp
@if($logoUrl) @endif

{{ $company['company_name'] ?? 'Company' }}

@if(!empty($company['address_line1']))

{{ $company['address_line1'] }}

@endif @if(!empty($company['address_line2']))

{{ $company['address_line2'] }}

@endif @if(!empty($company['city']) || !empty($company['country']))

{{ trim(($company['city'] ?? '').', '.($company['country'] ?? ''), ', ') }}

@endif @if(!empty($company['email']))

{{ $company['email'] }}

@endif @if(!empty($company['phone']))

{{ $company['phone'] }}

@endif

Invoice

{{ $invoice->invoice_number }}

Issue date: {{ $invoice->issue_date->format('M j, Y') }}
@if($invoice->due_date)
Due date: {{ $invoice->due_date->format('M j, Y') }}
@endif

Bill to

{{ $invoice->client_name }}

@if($invoice->client_email)

{{ $invoice->client_email }}

@endif @if($invoice->client_address)

{{ $invoice->client_address }}

@endif
@include('invoices.templates._body', ['showPay' => $showPay ?? false])