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

64 lines
1.2 KiB
PHP
Raw Normal View History

2018-06-20 05:06:27 +00:00
@component('mail::message')
{{-- Greeting --}}
@if (! empty($greeting))
# {{ $greeting }}
@else
2020-03-13 07:22:26 +00:00
@if ($level === 'error')
2018-06-20 05:06:27 +00:00
# @lang('Whoops!')
@else
# @lang('Hello!')
@endif
@endif
{{-- Intro Lines --}}
@foreach ($introLines as $line)
{{ $line }}
@endforeach
{{-- Action Button --}}
@isset($actionText)
<?php
switch ($level) {
case 'success':
case 'error':
2020-03-13 07:22:26 +00:00
$color = $level;
2018-06-20 05:06:27 +00:00
break;
default:
2020-03-13 07:22:26 +00:00
$color = 'primary';
2018-06-20 05:06:27 +00:00
}
?>
@component('mail::button', ['url' => $actionUrl, 'color' => $color])
{{ $actionText }}
@endcomponent
@endisset
{{-- Outro Lines --}}
@foreach ($outroLines as $line)
{{ $line }}
@endforeach
{{-- Salutation --}}
@if (! empty($salutation))
{{ $salutation }}
@else
2020-03-13 07:22:26 +00:00
@lang('Regards'),<br>
{{ config('app.name') }}
2018-06-20 05:06:27 +00:00
@endif
{{-- Subcopy --}}
@isset($actionText)
2020-03-13 07:22:26 +00:00
@slot('subcopy')
2018-06-20 05:06:27 +00:00
@lang(
"If youre having trouble clicking the \":actionText\" button, copy and paste the URL below\n".
2020-03-16 07:40:34 +00:00
'into your web browser: [:displayableActionUrl](:actionURL)',
2018-06-20 05:06:27 +00:00
[
'actionText' => $actionText,
2020-03-13 07:22:26 +00:00
'actionURL' => $actionUrl,
2020-03-16 07:40:34 +00:00
'displayableActionUrl' => $displayableActionUrl,
2018-06-20 05:06:27 +00:00
]
)
2020-03-13 07:22:26 +00:00
@endslot
2018-06-20 05:06:27 +00:00
@endisset
2020-03-16 07:40:34 +00:00
@endcomponent