@extends('layouts.account') @section('title', $invoice->number) @section('heading', __('Invoice :number', ['number' => $invoice->number])) @section('subheading', $invoice->issued_at->format('j F Y')) @section('account')

{{ __('From') }}

{{ config('payments.invoice.issuer') }}

@if (config('payments.invoice.tax_number'))

{{ __('PAN/VAT') }} {{ config('payments.invoice.tax_number') }}

@endif
{{-- Copied at issue, never joined for: this is a record of what was true on the day, not of what is true now. --}}

{{ __('Billed to') }}

{{ $invoice->billed_to }}

@if ($invoice->billing_address)

{{ $invoice->billing_address }}

@endif @if ($invoice->tax_number)

{{ __('PAN/VAT') }} {{ $invoice->tax_number }}

@endif
@foreach ($invoice->lines as $line) @endforeach @if ($invoice->tax > 0) @endif
{{ __('Description') }} {{ __('Amount') }}
{{ $line['description'] }} {{ $invoice->currency }} {{ number_format($line['amount'] / 100, 2) }}
{{ __('Subtotal') }} {{ $invoice->currency }} {{ number_format($invoice->subtotal / 100, 2) }}
{{ __('Tax') }} {{ $invoice->currency }} {{ number_format($invoice->tax / 100, 2) }}
{{ __('Total') }} {{ $invoice->formattedTotal() }}
@if ($invoice->payment?->paid_at)

{{ __('Paid :date by :method, reference :reference.', [ 'date' => $invoice->payment->paid_at->format('j F Y'), 'method' => str_replace('_', ' ', $invoice->payment->gateway), 'reference' => $invoice->payment->reference, ]) }}

@endif
@endsection