Blame view

resources/views/vendor/notifications/email.blade.php 1.06 KB
995960380   Андрей Ларионов   Исправления офисо...
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
58
59
  <x-mail::message>
  {{-- Greeting --}}
  @if (! empty($greeting))
  # {{ $greeting }}
  @else
  @if ($level === 'error')
  # @lang('Whoops!')
  @else
  # @lang('Hello!')
  @endif
  @endif
  
  {{-- Intro Lines --}}
  @foreach ($introLines as $line)
  {{ $line }}
  
  @endforeach
  
  {{-- Action Button --}}
  @isset($actionText)
  <?php
      $color = match ($level) {
          'success', 'error' => $level,
          default => 'primary',
      };
  ?>
  <x-mail::button :url="$actionUrl" :color="$color">
  {{ $actionText }}
  </x-mail::button>
  @endisset
  
  {{-- Outro Lines --}}
  @foreach ($outroLines as $line)
  {{ $line }}
  
  @endforeach
  
  {{-- Salutation --}}
  @if (! empty($salutation))
  {{ $salutation }}
  @else
  @lang('Regards'),<br>
  {{ config('app.name') }}
  @endif
  
  {{-- Subcopy --}}
  @isset($actionText)
  <x-slot:subcopy>
  @lang(
      "If you're having trouble clicking the \":actionText\" button, copy and paste the URL below
  ".
      'into your web browser:',
      [
          'actionText' => $actionText,
      ]
  ) <span class="break-all">[{{ $displayableActionUrl }}]({{ $actionUrl }})</span>
  </x-slot:subcopy>
  @endisset
  </x-mail::message>