@extends('layouts.main') @section('page-title') {{__('Email Templates')}} @endsection @section("page-breadcrumb") {{__('Email Templates')}} @endsection @push('css') @endpush @section('content')
{{Form::model($emailTemplate, array('route' => array('email_template.update', $emailTemplate->id), 'method' => 'PUT')) }}
{{Form::label('name',__('Name'),['class'=>'col-form-label text-dark'])}} {{Form::text('name',null,array('class'=>'form-control font-style','disabled'=>'disabled'))}}
{{Form::label('from',__('From'),['class'=>'col-form-label text-dark'])}} {{Form::text('from',null,array('class'=>'form-control font-style','required'=>'required'))}}
{{Form::hidden('lang',$currEmailTempLang->lang,array('class'=>''))}}
{{ Form::close() }}
{{__('Variables')}}
@php $variables = json_decode($currEmailTempLang->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($currEmailTempLang, array('route' => array('store.email.language',$currEmailTempLang->parent_id), 'method' => 'PUT')) }}
{{Form::label('subject',__('Subject'),['class'=>'col-form-label text-dark'])}} {{Form::text('subject',null,array('class'=>'form-control font-style','required'=>'required'))}}
{{Form::label('content',__('Email Message'),['class'=>'col-form-label text-dark'])}} {{Form::textarea('content',$currEmailTempLang->content,array('class'=>'summernote','id'=>'content','required'=>'required'))}}
{{Form::hidden('lang',null)}}
{{ Form::close() }}
@endsection @push('scripts') @endpush