@extends('backend.layouts.app') @section('title', __('Notifications Template')) @section('styles') @endsection @section('content') @php $allTemplatesQuery = request()->except('page', 'user_type'); $userTemplatesQuery = array_merge(request()->except('page', 'user_type'), ['user_type' => \App\Enums\UserType::USER->value]); $adminTemplatesQuery = array_merge(request()->except('page', 'user_type'), ['user_type' => \App\Enums\UserType::ADMIN->value]); $selectedUserType = request('user_type', ''); @endphp
{{ __('Track template coverage, review active channels, and quickly manage delivery configuration from one place.') }}
| {{ __('Template') }} | {{ __('Channels') }} | {{ __('Variables') }} | {{ __('Updated') }} | @can('notification-template-manage'){{ __('Action') }} | @endcan||||
|---|---|---|---|---|---|---|---|---|
|
{{ $template->name }}
{{ $template->user_type->label() }}
{{ $template->action_type->label() }}
{{ $template->info }}
|
@foreach($template->channels as $channel)
{{ $channel->channel->label() }}
{{ $channel->is_active ? __('Active') : __('Inactive') }}
{{ __('Active') }}: {{ $template->active_channels_count }} / {{ __('Inactive') }}: {{ $template->inactive_channels_count }}
|
{{ $count }}
{{ __('Available placeholders') }}
@foreach($first as $variable)
{{ '{'.$variable.'}' }}
@endforeach
@if($second->isNotEmpty())
@foreach($second as $variable)
{{ '{'.$variable.'}' }}
@endforeach
@endif
|
{{ $template->updated_at?->diffForHumans() ?? __('N/A') }}
{{ __('Last synced template configuration') }}
|
@can('notification-template-manage')
|
@endcan
||||
| @else |
@endcan
|
|||||||