@extends('layouts.admin') @section('styles') @endsection @section('content') @php $section_arr = Config::get('constants.notification_template_section'); $member_notification_template_constant_arr = Config::get('constants.member_notification_template_constant'); @endphp

{{$mode}} Notification Template{{isset($data[0]['type'])?' - '.$data[0]['type']:''}}

@if(isset($mode) && $mode == "Update")
@if (per_hasModuleAccess('NotificationTemplate', 'View')) @endif
@endif

General information

@if(isset($mode) && $mode == 'Update') @php $created_at = (isset($data[0]['created_at']))? date_getFormattedDateTime($data[0]['created_at']): '---'; @endphp @php $updated_at = (isset($data[0]['updated_at']))? date_getFormattedDateTime($data[0]['updated_at']): '---'; @endphp
{{$created_at}}
{{$updated_at}}
@endif
@if(isset($data[0]['type']) && !empty($data[0]['type']) && key_exists($data[0]['type'],$member_notification_template_constant_arr))

Notification Information

This is the Notification format. Use variables instead of writing details. The variables should enclosed by '##' symbol. Here are the list of variables that you can use.

@foreach($member_notification_template_constant_arr[$data[0]['type']] as $noti_key=>$noti_val)
arrow_right{{$noti_key}} will be written as
{{$noti_val}}
@endforeach
@endif

Language

@if(!empty($language)) @php $cnt = count($language); @endphp @for($i = 0; $i < $cnt; $i++) @php $direction = ($language[$i]['direction'] == "2")?"rtl":"ltr"; @endphp
@endfor @endif
@endsection @section('scripts') @endsection