2019-07-18 01:45:18 +02:00
|
|
|
|
@component('mail::message')
|
|
|
|
|
{{-- Greeting --}}
|
|
|
|
|
@if (! empty($greeting))
|
|
|
|
|
# {{ $greeting }}
|
|
|
|
|
@else
|
|
|
|
|
@if ($level === 'error')
|
2019-09-26 15:15:25 +02:00
|
|
|
|
# @lang('Whoops!')
|
2019-07-18 01:45:18 +02:00
|
|
|
|
@else
|
2019-09-26 15:15:25 +02:00
|
|
|
|
# @lang('Hello!')
|
2019-07-18 01:45:18 +02:00
|
|
|
|
@endif
|
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
{{-- Intro Lines --}}
|
|
|
|
|
@foreach ($introLines as $line)
|
|
|
|
|
{{ $line }}
|
|
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
|
|
{{-- Action Button --}}
|
|
|
|
|
@isset($actionText)
|
|
|
|
|
<?php
|
|
|
|
|
switch ($level) {
|
|
|
|
|
case 'success':
|
|
|
|
|
case 'error':
|
|
|
|
|
$color = $level;
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
$color = 'primary';
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
@component('mail::button', ['url' => $actionUrl, 'color' => $color])
|
|
|
|
|
{{ $actionText }}
|
|
|
|
|
@endcomponent
|
|
|
|
|
@endisset
|
|
|
|
|
|
|
|
|
|
{{-- Outro Lines --}}
|
|
|
|
|
@foreach ($outroLines as $line)
|
|
|
|
|
{{ $line }}
|
|
|
|
|
|
|
|
|
|
@endforeach
|
|
|
|
|
|
|
|
|
|
{{-- Salutation --}}
|
|
|
|
|
@if (! empty($salutation))
|
|
|
|
|
{{ $salutation }}
|
|
|
|
|
@else
|
2019-09-26 15:15:25 +02:00
|
|
|
|
@lang('Regards'),<br>{{ config('app.name') }}
|
2019-07-18 01:45:18 +02:00
|
|
|
|
@endif
|
|
|
|
|
|
|
|
|
|
{{-- Subcopy --}}
|
|
|
|
|
@isset($actionText)
|
|
|
|
|
@slot('subcopy')
|
2019-09-26 15:15:25 +02:00
|
|
|
|
@lang(
|
2019-07-18 01:45:18 +02:00
|
|
|
|
"If you’re having trouble clicking the \":actionText\" button, copy and paste the URL below\n".
|
|
|
|
|
'into your web browser: [:actionURL](:actionURL)',
|
|
|
|
|
[
|
|
|
|
|
'actionText' => $actionText,
|
|
|
|
|
'actionURL' => $actionUrl,
|
|
|
|
|
]
|
|
|
|
|
)
|
|
|
|
|
@endslot
|
|
|
|
|
@endisset
|
|
|
|
|
@endcomponent
|