email.blade.php 1.1 KB

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