@php $tab_status = 'active'; $email_array = ['payment_success','invalid_payment','payment_reminder','terminate_service','event_reminder']; foreach($email_array as $err) { $$err = isset($$err) ? $$err : array(); } @endphp @foreach($language_listing as $key => $language)
{{App\Models\Language::trans('Mobile Apps Message Setting')}}

{!! Form::label('notification_template[message][payment_success_msg]['.$language.']', App\Models\Language::trans('Payment Success Message'), ['class'=>'control-label col-md-12']) !!}
{!! Form::text('notification_template[message][payment_success_msg]['.$language.'][title]', (isset($payment_success_msg[$language]->title) ? $payment_success_msg[$language]->title : null), ['class'=>'form-control','placeholder'=>'Title']) !!} {!!$errors->first('notification_template[message][payment_success_msg]['.$language.'][title]', '')!!}
{!! Form::textarea('notification_template[message][payment_success_msg]['.$language.'][content]', (isset($payment_success_msg[$language]->content) ? $payment_success_msg[$language]->content : null), ['id'=>'notification_template[message][payment_success_msg]['.$language.'][content]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control tinymce']) !!} {!!$errors->first('notification_template[message][payment_success_msg]['.$language.'][content]', '')!!}
{!! Form::label('notification_template[message][invalid_email_msg]['.$language.']', App\Models\Language::trans('Invalide Email Message'), ['class'=>'control-label col-md-12']) !!}
{!! Form::text('notification_template[message][invalid_email_msg]['.$language.']', (isset($invalid_email_msg[$language]->title) ? $invalid_email_msg[$language]->title : null), ['class'=>'form-control','placeholder'=>'Title']) !!} {!!$errors->first('notification_template[message][invalid_email_msg]['.$language.']', '')!!}
{!! Form::textarea('notification_template[message][invalid_email_msg]['.$language.'][content]', (isset($invalid_email_msg[$language]->content) ? $invalid_email_msg[$language]->content : null), ['id'=>'notification_template[message][invalid_email_msg]['.$language.'][content]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control tinymce']) !!} {!!$errors->first('notification_template[message][invalid_email_msg]['.$language.'][content]', '')!!}
{!! Form::label('notification_template[message][system_maintenance_msg]['.$language.']', App\Models\Language::trans('System Maintenance Message'), ['class'=>'control-label col-md-12']) !!}
{!! Form::text('notification_template[message][system_maintenance_msg]['.$language.'][title]', (isset($system_maintenance_msg[$language]->title) ? $system_maintenance_msg[$language]->title : null), ['class'=>'form-control','placeholder'=>'Title']) !!} {!!$errors->first('notification_template[message][system_maintenance_msg]['.$language.'][title]', '')!!}
{!! Form::textarea('notification_template[message][system_maintenance_msg]['.$language.'][content]', (isset($system_maintenance_msg[$language]->content) ? $system_maintenance_msg[$language]->content : null), ['id'=>'notification_template[message][system_maintenance_msg]['.$language.'][content]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control tinymce']) !!} {!!$errors->first('notification_template[message][system_maintenance_msg]['.$language.'][content]', '')!!}
{!! Form::label('notification_template[message][no_allow_payment_msg]['.$language.']', App\Models\Language::trans('Invalid Payment Message'), ['class'=>'control-label col-md-12']) !!}
{!! Form::text('notification_template[message][no_allow_payment_msg]['.$language.'][title]', (isset($no_allow_payment_msg[$language]->title) ? $no_allow_payment_msg[$language]->title : null), ['class'=>'form-control','placeholder'=>'Title']) !!} {!!$errors->first('notification_template[message][no_allow_payment_msg]['.$language.'][title]', '')!!}
{!! Form::textarea('notification_template[message][no_allow_payment_msg]['.$language.'][content]', (isset($no_allow_payment_msg[$language]->content) ? $no_allow_payment_msg[$language]->content : null), ['id'=>'notification_template[message][no_allow_payment_msg]['.$language.'][content]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control tinymce']) !!} {!!$errors->first('notification_template[message][no_allow_payment_msg]['.$language.'][content]', '')!!}
{!! Form::label('notification_template[message][no_access_right]['.$language.']', App\Models\Language::trans('No Access Right Message'), ['class'=>'control-label col-md-12']) !!}
{!! Form::text('notification_template[message][no_access_right]['.$language.'][title]', (isset($no_access_right[$language]->title) ? $no_access_right[$language]->title : null), ['class'=>'form-control','placeholder'=>'Title']) !!} {!!$errors->first('notification_template[message][no_access_right]['.$language.'][title]', '')!!}
{!! Form::textarea('notification_template[message][no_access_right]['.$language.'][content]', (isset($no_access_right[$language]->content) ? $no_access_right[$language]->content : null), ['id'=>'notification_template[message][no_access_right]['.$language.'][content]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control tinymce']) !!} {!!$errors->first('notification_template[message][no_access_right]['.$language.'][content]', '')!!}
{{App\Models\Language::trans('Email Notification Template')}}

{!! Form::label('notification_template[email][power_meter_payment_success_email]['.$language.']', App\Models\Language::trans('Payment Success Email'), ['class'=>'control-label col-md-12']) !!}
{!! Form::text('notification_template[email][power_meter_payment_success_email]['.$language.'][title]', (isset($payment_success[$language]->title) ? $payment_success[$language]->title : null), ['class'=>'form-control','placeholder'=>'Title']) !!} {!!$errors->first('notification_template[email][power_meter_payment_success_email]['.$language.'][title]', '')!!}
{!! Form::textarea('notification_template[email][power_meter_payment_success_email]['.$language.'][content]', (isset($payment_success[$language]->content) ? $payment_success[$language]->content : null), ['id'=>'notification_template[email][power_meter_payment_success_email]['.$language.'][content]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control tinymce']) !!} {!!$errors->first('notification_template[email][power_meter_payment_success_email]['.$language.'][content]', '')!!}
{!! Form::label('notification_template[email][power_meter_low_credit_reminder]['.$language.']', App\Models\Language::trans('Invalid Payment Email'), ['class'=>'control-label col-md-12']) !!}
{!! Form::text('notification_template[email][power_meter_low_credit_reminder]['.$language.'][title]', (isset($invalid_payment[$language]->title) ? $invalid_payment[$language]->title : null), ['class'=>'form-control','placeholder'=>'Title']) !!} {!!$errors->first('notification_template[email][power_meter_low_credit_reminder]['.$language.'][title]', '')!!}
{!! Form::textarea('notification_template[email][power_meter_low_credit_reminder]['.$language.'][content]', (isset($invalid_payment[$language]->content) ? $invalid_payment[$language]->content : null), ['id'=>'notification_template[email][power_meter_low_credit_reminder]['.$language.'][content]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control tinymce']) !!} {!!$errors->first('notification_template[email][power_meter_low_credit_reminder]['.$language.'][content]', '')!!}
{!! Form::label('notification_template[email][power_meter_payment_reminder_email]['.$language.']', App\Models\Language::trans('Payment Remainder Email'), ['class'=>'control-label col-md-12']) !!}
{!! Form::text('notification_template[email][power_meter_payment_reminder_email]['.$language.'][title]', (isset($payment_reminder[$language]->title) ? $payment_reminder[$language]->title : null), ['class'=>'form-control','placeholder'=>'Title']) !!} {!!$errors->first('notification_template[email][power_meter_payment_reminder_email]['.$language.'][title]', '')!!}
{!! Form::textarea('notification_template[email][power_meter_payment_reminder_email]['.$language.'][content]', (isset($payment_reminder[$language]->content) ? $payment_reminder[$language]->content : null), ['id'=>'notification_template[email][power_meter_payment_reminder_email]['.$language.'][content]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control tinymce']) !!} {!!$errors->first('notification_template[email][power_meter_payment_reminder_email]['.$language.'][content]', '')!!}
{!! Form::label('notification_template[email][power_meter_turn_off_meter_email]['.$language.']', App\Models\Language::trans('Terminate Service Email'), ['class'=>'control-label col-md-12']) !!}
{!! Form::text('notification_template[email][power_meter_turn_off_meter_email]['.$language.'][title]', (isset($terminate_service[$language]->title) ? $terminate_service[$language]->title : null), ['class'=>'form-control','placeholder'=>'Title']) !!} {!!$errors->first('notification_template[email][power_meter_turn_off_meter_email]['.$language.'][title]', '')!!}
{!! Form::textarea('notification_template[email][power_meter_turn_off_meter_email]['.$language.'][content]', (isset($terminate_service[$language]->content) ? $terminate_service[$language]->content : null), ['id'=>'notification_template[email][power_meter_turn_off_meter_email]['.$language.'][content]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control tinymce']) !!} {!!$errors->first('notification_template[email][power_meter_turn_off_meter_email]['.$language.'][content]', '')!!}
{!! Form::label('notification_template[email][power_meter_power_supply_restore_email]['.$language.']', App\Models\Language::trans('Event Reminder Email'), ['class'=>'control-label col-md-12']) !!}
{!! Form::text('notification_template[email][power_meter_power_supply_restore_email]['.$language.'][title]', (isset($event_reminder[$language]->title) ? $event_reminder[$language]->title : null), ['class'=>'form-control','placeholder'=>'Title']) !!} {!!$errors->first('notification_template[email][power_meter_power_supply_restore_email]['.$language.'][title]', '')!!}
{!! Form::textarea('notification_template[email][power_meter_power_supply_restore_email]['.$language.'][content]', (isset($event_reminder[$language]->content) ? $event_reminder[$language]->content : null), ['id'=>'notification_template[email][power_meter_power_supply_restore_email]['.$language.'][content]', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control tinymce']) !!} {!!$errors->first('notification_template[email][power_meter_power_supply_restore_email]['.$language.'][content]', '')!!}
@php $tab_status =''; @endphp @endforeach