Lae/resources/views/vendor/notifications/email.blade.php

59 lines
1.1 KiB
PHP
Raw Permalink Normal View History

2022-12-30 13:05:23 +00:00
@component('mail::message')
2023-02-01 18:58:44 +00:00
{{-- Greeting --}}
@if (! empty($greeting))
# {{ $greeting }}
@else
@if ($level === 'error')
# @lang('Whoops!')
@else
# @lang('Hello!')
@endif
@endif
2022-12-30 13:05:23 +00:00
2023-02-01 18:58:44 +00:00
{{-- Intro Lines --}}
@foreach ($introLines as $line)
{{ $line }}
2022-12-30 13:05:23 +00:00
2023-02-01 18:58:44 +00:00
@endforeach
2022-12-30 13:05:23 +00:00
2023-02-01 18:58:44 +00:00
{{-- Action Button --}}
@isset($actionText)
<?php
$color = match ($level) {
'success', 'error' => $level,
default => 'primary',
};
?>
@component('mail::button', ['url' => $actionUrl, 'color' => $color])
{{ $actionText }}
@endcomponent
@endisset
2022-12-30 13:05:23 +00:00
2023-02-01 18:58:44 +00:00
{{-- Outro Lines --}}
@foreach ($outroLines as $line)
{{ $line }}
2022-12-30 13:05:23 +00:00
2023-02-01 18:58:44 +00:00
@endforeach
2022-12-30 13:05:23 +00:00
2023-02-01 18:58:44 +00:00
{{-- Salutation --}}
@if (! empty($salutation))
{{ $salutation }}
@else
@lang('Regards'),<br>
{{ config('app.name') }}
@endif
2022-12-30 13:05:23 +00:00
2023-02-01 18:58:44 +00:00
{{-- Subcopy --}}
@isset($actionText)
@slot('subcopy')
@lang(
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\n".
'into your web browser:',
[
'actionText' => $actionText,
]
) <span class="break-all">[{{ $displayableActionUrl }}]({{ $actionUrl }})</span>
@endslot
@endisset
2022-12-30 13:05:23 +00:00
@endcomponent