email.blade.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. @component('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. switch ($level) {
  20. case 'success':
  21. case 'error':
  22. $color = $level;
  23. break;
  24. default:
  25. $color = 'primary';
  26. }
  27. ?>
  28. @component('mail::button', ['url' => $actionUrl, 'color' => $color])
  29. {{ $actionText }}
  30. @endcomponent
  31. @endisset
  32. {{-- Outro Lines --}}
  33. @foreach ($outroLines as $line)
  34. {{ $line }}
  35. @endforeach
  36. {{-- Salutation --}}
  37. @if (! empty($salutation))
  38. {{ $salutation }}
  39. @else
  40. @lang('Regards'),<br>
  41. {{ config('app.name') }}
  42. @endif
  43. {{-- Subcopy --}}
  44. @isset($actionText)
  45. @slot('subcopy')
  46. @lang(
  47. "mail.resetPassword.subcopy",
  48. [
  49. 'actionText' => $actionText,
  50. ]
  51. ) <span class="break-all">[{{ $displayableActionUrl }}]({{ $actionUrl }})</span>
  52. @endslot
  53. @endisset
  54. @endcomponent