home-erp

git clone git://archive.git.mtrnord.blog/MTRNord/home-erp.git
Log | Files | Refs | README

email.blade.php (1081B)


      1 <x-mail::message>
      2 {{-- Greeting --}}
      3 @if (! empty($greeting))
      4 # {{ $greeting }}
      5 @else
      6 @if ($level === 'error')
      7 # @lang('Whoops!')
      8 @else
      9 # @lang('Hello!')
     10 @endif
     11 @endif
     12 
     13 {{-- Intro Lines --}}
     14 @foreach ($introLines as $line)
     15 {{ $line }}
     16 
     17 @endforeach
     18 
     19 {{-- Action Button --}}
     20 @isset($actionText)
     21 <?php
     22     $color = match ($level) {
     23         'success', 'error' => $level,
     24         default => 'primary',
     25     };
     26 ?>
     27 <x-mail::button :url="$actionUrl" :color="$color">
     28 {{ $actionText }}
     29 </x-mail::button>
     30 @endisset
     31 
     32 {{-- Outro Lines --}}
     33 @foreach ($outroLines as $line)
     34 {{ $line }}
     35 
     36 @endforeach
     37 
     38 {{-- Salutation --}}
     39 @if (! empty($salutation))
     40 {{ $salutation }}
     41 @else
     42 @lang('Regards'),<br>
     43 {{ config('app.name') }}
     44 @endif
     45 
     46 {{-- Subcopy --}}
     47 @isset($actionText)
     48 <x-slot:subcopy>
     49 @lang(
     50     "If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\n".
     51     'into your web browser:',
     52     [
     53         'actionText' => $actionText,
     54     ]
     55 ) <span class="break-all">[{{ $displayableActionUrl }}]({{ $actionUrl }})</span>
     56 </x-slot:subcopy>
     57 @endisset
     58 </x-mail::message>