@php
    $companyName  = \App\Models\Setting::get('company_name', config('app.name'));
    $companyPhone = \App\Models\Setting::get('company_phone', '');
    $companyEmail = \App\Models\Setting::get('company_email', '');

    $contactParts = array_values(array_filter([
        $companyPhone ? __('notification.mail_footer_phone_label') . ' ' . $companyPhone : null,
        $companyEmail ?: null,
    ]));
@endphp
<x-mail::layout>
{{-- Header --}}
<x-slot:header>
<x-mail::header :url="route('portal.login')">
{{ $companyName }}
</x-mail::header>
</x-slot:header>

{{-- Body --}}
{!! $slot !!}

{{-- Subcopy --}}
@isset($subcopy)
<x-slot:subcopy>
<x-mail::subcopy>
{!! $subcopy !!}
</x-mail::subcopy>
</x-slot:subcopy>
@endisset

{{-- Footer --}}
<x-slot:footer>
<x-mail::footer>
© {{ date('Y') }} {{ $companyName }}. {{ __('notification.mail_footer_rights') }}
@if(!empty($contactParts))

{{ implode(' · ', $contactParts) }}
@endif
</x-mail::footer>
</x-slot:footer>
</x-mail::layout>
