@extends('layouts.app') @section('title', 'Notification Template Detail') @section('content')

{{ $notificationTemplate->name }}

Detail notification template

Informasi Template

Nama {{ $notificationTemplate->name }}
Tipe {{ strtoupper($notificationTemplate->type) }}
@if($notificationTemplate->subject)
Subject {{ $notificationTemplate->subject }}
@endif
Status @if($notificationTemplate->is_active) Aktif @else Nonaktif @endif

Body Template

{{ $notificationTemplate->body }}
@if($notificationTemplate->variables)

Variables

@foreach($notificationTemplate->variables as $var) {{{{ $var }}}} @endforeach
@endif

Preview

@php $previewVars = []; foreach($notificationTemplate->variables ?? [] as $var) { $previewVars[$var] = '[' . $var . ']'; } $preview = $notificationTemplate->render($previewVars); @endphp @if($notificationTemplate->subject)

{{ $preview['subject'] }}

@endif

{{ $preview['body'] }}

Metadata

Created

{{ $notificationTemplate->created_at->format('d/m/Y H:i') }}

Updated

{{ $notificationTemplate->updated_at->format('d/m/Y H:i') }}

Actions

Edit Template
@csrf @method('DELETE')
@endsection