@props(['company' => null, 'subject' => '', 'eyebrow' => null, 'title' => null, 'notice' => null, 'preheader' => null])
@php
/* Email layout in the proposal / PDF style: near-white sheet, logo top left, "// label" eyebrow in the
brand colour, medium sans heading, soft grey cards, charcoal pill buttons, and the company's name,
address and phone in the footer. Table-based with inline styles for email clients. */
$t = \App\Support\EmailTheme::for($company);
$logo = $company && ($company->emailFooter()['show_logo'] ?? true) ? $company->logoUrl() : null;
$lines = $company ? $company->addressLines() : [];
$site = $company?->website ? preg_replace('#^https?://#', '', rtrim($company->website, '/')) : null;
@endphp
{{ $subject }}
@if ($preheader){{ $preheader }}
@endif
@if ($notice)
@endif
{{-- Header: logo left, eyebrow right --}}
@if ($logo)
@else
{{ $company?->name ?? config('app.name') }}
@endif
|
@if ($eyebrow)
// {{ $eyebrow }} |
@endif
|
@if ($title)
| {{ $title }} |
@endif
|
{{ $slot }}
|
{{-- Footer: company name, full address, phone and website --}}
|
{{ $company?->name ?? config('app.name') }}
@foreach ($lines as $line){{ $line }} @endforeach
|
@if ($company?->phone)@endif
@if ($site)@endif
@if ($company?->abn) ABN {{ $company->abn }} @endif
|
|
|