菜谱项目

email.blade.php 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. @component('mail::message')
  2. {{-- Greeting --}}
  3. @if (! empty($greeting))
  4. # {{ $greeting }}
  5. @else
  6. @if ($level == 'error')
  7. # Whoops!
  8. @else
  9. # 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. $color = 'green';
  22. break;
  23. case 'error':
  24. $color = 'red';
  25. break;
  26. default:
  27. $color = 'blue';
  28. }
  29. ?>
  30. @component('mail::button', ['url' => $actionUrl, 'color' => $color])
  31. {{ $actionText }}
  32. @endcomponent
  33. @endisset
  34. {{-- Outro Lines --}}
  35. @foreach ($outroLines as $line)
  36. {{ $line }}
  37. @endforeach
  38. {{-- Salutation --}}
  39. @if (! empty($salutation))
  40. {{ $salutation }}
  41. @else
  42. Regards,<br>{{ config('app.name') }}
  43. @endif
  44. {{-- Subcopy --}}
  45. @isset($actionText)
  46. @component('mail::subcopy')
  47. If you’re having trouble clicking the "{{ $actionText }}" button, copy and paste the URL below
  48. into your web browser: [{{ $actionUrl }}]({{ $actionUrl }})
  49. @endcomponent
  50. @endisset
  51. @endcomponent