@extends('layouts.app') @section('title', $invoice->number) @section('content') @php $hasBank = ! empty($bank['iban']); @endphp
← {{ __('My invoices') }}
{{ __('Number') }}
{{ $invoice->number }}
{{ __('Period') }}
{{ $invoice->period_start->format('Y-m-d') }} → {{ $invoice->period_end->format('Y-m-d') }}
{{ __('Issued') }}
{{ $invoice->issued_at?->format('Y-m-d') ?? '—' }}
{{ __('Status') }}
{{ ucfirst($invoice->status) }}
@foreach($invoice->lines as $line) @endforeach
{{ __('Description') }} {{ __('Unit') }} {{ __('Amount') }}
{{ $line->description }} {{ number_format((float)$line->unit_amount, 2) }} {{ number_format((float)$line->amount, 2) }}
{{ __('Subtotal') }}{{ number_format((float)$invoice->subtotal, 2) }} {{ $invoice->currency }}
{{ __('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->status === 'issued')
{{ __('How would you like to pay?') }}
@if($stripe) @endif @if($paypal) @endif @if($hasBank) {{ __('Bank transfer') }} ↓ @endif
@endif @if($hasBank)
{{ __('Bank-transfer details') }}
@if(! empty($bank['account_holder']))
{{ __('Holder') }}: {{ $bank['account_holder'] }}
@endif
{{ __('IBAN') }}: {{ $bank['iban'] }}
@if(! empty($bank['bic']))
BIC: {{ $bank['bic'] }}
@endif @if(! empty($bank['bank_name']))
{{ __('Bank') }}: {{ $bank['bank_name'] }}
@endif
{{ __('Reference') }}: {{ str_replace(':invoice_number', $invoice->number, $bank['reference_template'] ?? ':invoice_number') }}
@if(! empty($bank['notes']))

{{ $bank['notes'] }}

@endif
@endif
@endsection