@if($errors->any())
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif

Edit Template

{{ $eventKey }}  /  {{ $channel }}  — {{ $setting->label }}

← Back to Templates
{{-- Template Form --}}
@csrf @if(in_array($channel, ['email', 'push']))
@php $subjectPlaceholder = $channel === 'email' ? 'e.g. Your assignment {{assignment_title}} is due' : 'e.g. New Assignment'; @endphp
@endif
@if($channel === 'email') @else @php $bodyPlaceholder = $channel === 'sms' ? 'SMS text (max 160 chars). Use {{variable_name}} for dynamic content.' : 'Notification message body. Use {{variable_name}} for dynamic content.'; @endphp @endif
@if($channel !== 'sms')
@if($channel === 'email')
@endif
@endif
Cancel
{{-- Variables Reference --}}

📌 Available Variables

Click to copy. Use @{{ variable }} syntax in your template.

{{-- Template-specific variables from the seeded template --}} @if($template->available_variables && count($template->available_variables))

This Template

@foreach($template->available_variables as $var) @php // Use pure PHP so Blade doesn't crash on the curly braces $placeholder = '{{ ' . $var . ' }}'; @endphp @endforeach

@endif

Common Variables

@foreach([ 'student_name' => 'Student full name', 'teacher_name' => 'Teacher full name', 'parent_name' => 'Parent full name', 'user_name' => 'User full name', 'class_name' => 'Class name', 'subject_name' => 'Subject name', 'session_title' => 'Session title', 'session_time' => 'Session start time', 'session_date' => 'Session date', 'assignment_title' => 'Assignment title', 'due_date' => 'Due date', 'invoice_number' => 'Invoice number', 'invoice_amount' => 'Invoice amount', 'payment_date' => 'Payment date', 'payment_amount' => 'Payment amount', 'goal_title' => 'Goal title', 'community_name' => 'Community name', 'app_name' => 'Application name', 'login_url' => 'Login URL', ] as $var => $desc) @php // We MUST do the same fix on the second loop too! $placeholder = '{{ ' . $var . ' }}'; @endphp @endforeach

💡 Tips

  • Variables are replaced at send time
  • Unknown variables are left as-is
  • SMS: keep under 160 chars
  • Email: HTML is supported if toggled
  • Click any variable to insert it
{{-- Preview panel --}}

Channel

@if($channel === 'web') 🌐 Web Notification @elseif($channel === 'email') 📧 Email @elseif($channel === 'sms') 📱 SMS @else 🔔 Push Notification @endif

Event: {{ $eventKey }}