@foreach($templates as $key => $value)
@if(!empty($value['extra_tags']))
@lang('lang_v1.available_tags'):
{{implode(', ', $value['extra_tags'])}}
@endif
@if(!empty($value['help_text']))
{{$value['help_text']}}
@endif
{!! Form::label($key . '_subject',
__('lang_v1.email_subject').':') !!}
{!! Form::text('template_data[' . $key . '][subject]',
$value['subject'], ['class' => 'form-control'
, 'placeholder' => __('lang_v1.email_subject'), 'id' => $key . '_subject']); !!}
{!! Form::label($key . '_email_body',
__('lang_v1.email_body').':') !!}
{!! Form::textarea('template_data[' . $key . '][email_body]',
$value['email_body'], ['class' => 'form-control ckeditor'
, 'placeholder' => __('lang_v1.email_body'), 'id' => $key . '_email_body', 'rows' => 6]); !!}
{!! Form::label($key . '_sms_body',
__('lang_v1.sms_body').':') !!}
{!! Form::textarea('template_data[' . $key . '][sms_body]',
$value['sms_body'], ['class' => 'form-control'
, 'placeholder' => __('lang_v1.sms_body'), 'id' => $key . '_sms_body', 'rows' => 6]); !!}
@if($key == 'new_sale')
@endif
@endforeach