Blame view

resources/views/vendor/notifications/email.blade.php 1.11 KB
b7c7a5f6   Alexey Boroda   first commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
  @component('mail::message')
  {{-- Greeting --}}
  @if (! empty($greeting))
  # {{ $greeting }}
  @else
  @if ($level == 'error')
  # {{ trans('notifications.whoops') }}
  @else
  # {{ trans('notifications.hello') }}
  @endif
  @endif
  
  {{-- 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 }}
  @else
  {!! trans('notifications.salutation', ['company_name' => setting('general.company_name', config('app.name'))]) !!}
  @endif
  
  <!-- Subcopy -->
  @isset($actionText)
  @component('mail::subcopy')
  {!! trans('notifications.subcopy', ['text' => $actionText, 'url' => $actionUrl]) !!}
  @endcomponent
  @endisset
  @endcomponent