{{--
App\Mail\InvoiceMail — sent via NotificationService event 'invoice.issued'. PDF attached.
Vars: $branding, $invoice, $currency, $bank, $paymentNote, $enquiries,
$agencyName, $legalName, $abn, $dueDate
--}}
@extends('emails.layouts.tenant')
@section('title', 'Invoice ' . $invoice->invoice_number)
@section('preheader')
Invoice {{ $invoice->invoice_number }} for {{ $currency }}{{ number_format($invoice->total_amount, 2) }}@if ($dueDate), due {{ $dueDate }}@endif.
@endsection
@section('content')
Dear {{ $invoice->facility ? ucwords($invoice->facility->name) : 'customer' }},
Please find attached invoice {{ $invoice->invoice_number }} from {{ $agencyName }} for the period
{{ $invoice->period_start?->format('j M Y') }} – {{ $invoice->period_end?->format('j M Y') }}.
{{ $invoice->invoice_number }}
{{ $currency }}{{ number_format($invoice->total_amount, 2) }}
@if ($dueDate)
{{ $dueDate }}
@endif
@if ($invoice->po_number)
{{ $invoice->po_number }}
@endif
@if ($bank)
Payment details
@foreach ($bank as $label => $value)
{{ $value }}
@endforeach
@endif
{{ $paymentNote ?? 'Please use ' . $invoice->invoice_number . ' as your payment reference.' }}
@if ($enquiries)
Questions about this invoice? Contact us at {{ implode(' or ', $enquiries) }}, or reply to this email.
@endif
Kind regards,
{{ $agencyName }}
@if ($legalName || $abn)
{{ $legalName && $legalName !== $agencyName ? $legalName . ' T/A ' . $agencyName : $agencyName }}@if ($abn) · ABN {{ $abn }}@endif
@endif
@endsection