@if($logoUri) @else

{{ $branding['name'] ?? config('app.name') }}

@endif
{{ $branding['name'] ?? config('app.name') }}
{{ $branding['address'] ?? '' }}

{{ __('Invoice') }} {{ $invoice->number }}

{{ __('Issued') }}: {{ $invoice->issued_at?->format('Y-m-d') ?? 'โ€”' }}
{{ __('Period') }}: {{ $invoice->period_start->format('Y-m-d') }} โ†’ {{ $invoice->period_end->format('Y-m-d') }}
{{ strtoupper($invoice->status) }}

{{ __('Bill to') }}

{{ $invoice->tenant?->name }}
@if(!empty($invoice->snapshot['tenant']['vat'])) {{ __('VAT') }}: {{ $invoice->snapshot['tenant']['vat'] }} @endif
@foreach($invoice->lines as $line) @endforeach
{{ __('Description') }} {{ __('Qty') }} {{ __('Unit') }} {{ __('Amount') }}
{{ $line->description }} {{ $line->quantity }} {{ number_format((float)$line->unit_amount, 2) }} {{ number_format((float)$line->amount, 2) }}
@if((float)$invoice->discount > 0) @endif
{{ __('Subtotal') }}{{ number_format((float)$invoice->subtotal, 2) }} {{ $invoice->currency }}
{{ __('Free allowance') }}-{{ number_format((float)$invoice->discount, 2) }}
{{ __('VAT') }} ({{ rtrim(rtrim(number_format((float)$invoice->vat_rate,2),'0'),'.') }}%){{ number_format((float)$invoice->vat_amount, 2) }}
{{ __('Total') }}{{ number_format((float)$invoice->total, 2) }} {{ $invoice->currency }}
@if($invoice->reverse_charge)

{{ __('VAT reverse-charged โ€” Article 21 ยง2 of Belgian VAT Code (intra-EU B2B).') }}

@endif @php $payGateways = app(\App\Services\Payments\PaymentGatewayService::class); $payStripeOn = $payGateways->isEnabled(\App\Models\Transaction::GATEWAY_STRIPE); $payPaypalOn = $payGateways->isEnabled(\App\Models\Transaction::GATEWAY_PAYPAL); $payable = $invoice->status === 'issued' && (float) $invoice->total > 0; $stripeUrl = $payable && $payStripeOn ? route('invoices.pay', ['invoice' => $invoice, 'gateway' => 'stripe']) : null; $paypalUrl = $payable && $payPaypalOn ? route('invoices.pay', ['invoice' => $invoice, 'gateway' => 'paypal']) : null; @endphp @if($stripeUrl || $paypalUrl)

{{ __('Pay online') }}

@if($stripeUrl) @endif @if($paypalUrl) @endif
Stripe {{ $stripeUrl }}
PayPal {{ $paypalUrl }}
@endif @if($invoice->notes)

{{ __('Notes') }}

{{ $invoice->notes }}
@endif