@extends('layouts.main') @section('page-title') {{ __('Notification Templates') }} @endsection @section('page-breadcrumb') {{ __('Notification Templates') }} @endsection @section('page-action')
@endsection @section('content')
{{ __('Variables') }}
@php $variables = json_decode($currTempLang->variables); @endphp @if (!empty($variables) > 0) @foreach ($variables as $key => $var)

{{ __($key) }} : {{ '{' . $var . '}' }}

@endforeach @endif
@foreach ($languages as $key => $lang) {{ Str::ucfirst($lang) }} @endforeach
{{ Form::model($currTempLang, ['route' => ['store.notification.language', $currTempLang->parent_id], 'method' => 'POST']) }}
{{ Form::label('name', __('Name'), ['class' => 'col-form-label text-dark']) }} {{ Form::text('name', $notification->action, ['class' => 'form-control font-style', 'disabled' => 'disabled']) }}
{{ Form::label('content', __('Notification Message'), ['class' => 'col-form-label text-dark']) }} {{ Form::textarea('content', $currTempLang->content, ['class' => 'form-control font-style', 'required' => 'required']) }}
{{ Form::hidden('lang', null) }} {{ Form::hidden('module', $notification->module) }} {{ Form::hidden('variables', $currTempLang->variables) }}
{{ Form::close() }}
@endsection