Initialer Laravel Commit für BetiX
This commit is contained in:
37
resources/views/emails/notification.blade.php
Normal file
37
resources/views/emails/notification.blade.php
Normal file
@@ -0,0 +1,37 @@
|
||||
@extends('emails.layout')
|
||||
|
||||
@section('content')
|
||||
<div class="title">{!! e($icon ?? '🔔') !!} {{ $title ?? 'Notification' }}</div>
|
||||
|
||||
@if(!empty($message))
|
||||
<div class="text">{!! nl2br(e($message)) !!}</div>
|
||||
@endif
|
||||
|
||||
@if(!empty($bullets) && is_array($bullets))
|
||||
<ul class="text" style="padding-left:18px; margin-top: -10px;">
|
||||
@foreach($bullets as $b)
|
||||
<li style="margin:6px 0;">{!! e($b) !!}</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
||||
@isset($code)
|
||||
<div class="text" style="text-align:center;">
|
||||
<div style="display:inline-block; padding:12px 18px; border:1px dashed #333; border-radius:10px; background:#0d0d0d; color:#fff; font-weight:800; letter-spacing:3px; font-size:18px;">{{ $code }}</div>
|
||||
</div>
|
||||
@endisset
|
||||
|
||||
@if(!empty($cta) && is_array($cta) && !empty($cta['url']))
|
||||
<div style="text-align: center; margin: 25px 0 5px;">
|
||||
<a href="{{ $cta['url'] }}" class="btn">{{ $cta['label'] ?? 'Open' }}</a>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if(!empty($meta) && is_array($meta))
|
||||
<div class="text" style="font-size:12px; color:#666;">
|
||||
@foreach($meta as $k => $v)
|
||||
<div><strong>{{ ucfirst(str_replace('_',' ',$k)) }}:</strong> {{ is_scalar($v) ? $v : json_encode($v) }}</div>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
@endsection
|
||||
Reference in New Issue
Block a user