@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(per_hasModuleAccess('NotificationTemplate','Edit')) @endif

General information

{{(isset($data[0]['type'])?$data[0]['type']:'---')}}
{{(isset($section_arr[$data[0]['section']])?$section_arr[$data[0]['section']]:'---')}}
@php $status = (isset($data[0]['status']) && $data[0]['status'] == 1) ? "Active" : "Inactive"; $status_color = Config::get('constants.status_color.' . $status); $status_btn = \App\GlobalClass\Design::blade('status',$status,$status_color); echo $status_btn; @endphp
@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}}
@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++)
{!! (isset($notification_lang_arr[$language[$i]['lang_code']])?nl2br($notification_lang_arr[$language[$i]['lang_code']]['title']):"---") !!}
@endfor @endif
@if (!empty($language)) @php $cnt = count($language); @endphp @for ($i = 0; $i < $cnt; $i++)
{!! (isset($notification_lang_arr[$language[$i]['lang_code']])?nl2br($notification_lang_arr[$language[$i]['lang_code']]['content']):"---") !!}
@endfor @endif
@endsection @section('scripts') @endsection