[WIP] Refactor project
This commit is contained in:
57
resources/views/vendor/boilerplate/notifications/email.blade.php
vendored
Normal file
57
resources/views/vendor/boilerplate/notifications/email.blade.php
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
@component('boilerplate::notifications.message')
|
||||
{{-- Greeting --}}
|
||||
@if (! empty($greeting))
|
||||
# {{ $greeting }}
|
||||
@else
|
||||
@if ($level == 'error')
|
||||
# Whoops!
|
||||
@else
|
||||
# {{ __('boilerplate::notifications.hello') }}
|
||||
@endif
|
||||
@endif
|
||||
|
||||
{{-- Intro Lines --}}
|
||||
@foreach ($introLines as $line)
|
||||
{{ $line }}
|
||||
|
||||
@endforeach
|
||||
|
||||
{{-- Action Button --}}
|
||||
@if (isset($actionText))
|
||||
<?php
|
||||
switch ($level) {
|
||||
case 'success':
|
||||
$color = 'green';
|
||||
break;
|
||||
case 'error':
|
||||
$color = 'red';
|
||||
break;
|
||||
default:
|
||||
$color = 'blue';
|
||||
}
|
||||
?>
|
||||
@component('mail::button', ['url' => $actionUrl, 'color' => $color])
|
||||
{{ $actionText }}
|
||||
@endcomponent
|
||||
@endif
|
||||
|
||||
{{-- Outro Lines --}}
|
||||
@foreach ($outroLines as $line)
|
||||
{{ $line }}
|
||||
|
||||
@endforeach
|
||||
|
||||
<!-- Salutation -->
|
||||
@if (! empty($salutation))
|
||||
{!! $salutation !!}
|
||||
@else
|
||||
{!! __('boilerplate::notifications.salutation', ['name' => config('app.name') ]) !!}
|
||||
@endif
|
||||
|
||||
<!-- Subcopy -->
|
||||
@if (isset($actionText))
|
||||
@component('mail::subcopy')
|
||||
{{ __('boilerplate::notifications.subcopy', ['actionText' => $actionText, 'actionUrl' => $actionUrl]) }}
|
||||
@endcomponent
|
||||
@endif
|
||||
@endcomponent
|
||||
27
resources/views/vendor/boilerplate/notifications/message.blade.php
vendored
Normal file
27
resources/views/vendor/boilerplate/notifications/message.blade.php
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
@component('mail::layout')
|
||||
{{-- Header --}}
|
||||
@slot('header')
|
||||
@component('mail::header', ['url' => config('app.url')])
|
||||
{{ config('app.name') }}
|
||||
@endcomponent
|
||||
@endslot
|
||||
|
||||
{{-- Body --}}
|
||||
{{ $slot }}
|
||||
|
||||
{{-- Subcopy --}}
|
||||
@if (isset($subcopy))
|
||||
@slot('subcopy')
|
||||
@component('mail::subcopy')
|
||||
{{ $subcopy }}
|
||||
@endcomponent
|
||||
@endslot
|
||||
@endif
|
||||
|
||||
{{-- Footer --}}
|
||||
@slot('footer')
|
||||
@component('mail::footer')
|
||||
{!! __('boilerplate::notifications.copyright', ['date' => date('Y'), 'name' => config('app.name')]) !!}
|
||||
@endcomponent
|
||||
@endslot
|
||||
@endcomponent
|
||||
Reference in New Issue
Block a user