FEATURE #2047: use laravel's authorization

This commit is contained in:
Michal Kváček
2017-08-02 13:33:26 +02:00
parent 67fb3c6945
commit a4c020daa0
60 changed files with 1357 additions and 50 deletions
+36
View File
@@ -0,0 +1,36 @@
@component('mail::message')
{{-- Intro Lines --}}
@foreach ($introLines as $line)
{!!$line!!}
@endforeach
{{-- Action Button --}}
@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
@endisset
{{-- Outro Lines --}}
@foreach ($outroLines as $line)
{!!$line!!}
@endforeach
{{-- Salutation --}}
@if (! empty($salutation))
{!!$salutation!!}
@endif
@endcomponent