{{ $type->name }}

@if (isset($type->description) && $type->description)

{{ $type->description }}

@endif {!! Form::open([ 'data-toggle' => 'validator', 'class' => 'settings-form well', 'enctype' => 'multipart/form-data' ]) !!}
{!! Form::label('data[EmailTemplate][description]', t('Template Name')) !!} {!! Form::text( 'data[EmailTemplate][description]', (isset($data->EmailTemplate->description) ? $data->EmailTemplate->description : null), [ 'data-error' => t('This field is description'), 'class' => 'form-control input', 'required' ] ) !!}
@if (isset($errors->EmailTemplate->description)) {{ $errors->EmailTemplate->description[0] }} @endif
{!! Form::label('data[EmailTemplate][language]', t('Language')) !!} {!! Form::text( 'data[EmailTemplate][language]', (isset($data->EmailTemplate->language) ? $data->EmailTemplate->language : null), [ 'data-error' => t('This field is language 2 letters'), 'class' => 'form-control input', 'placeholder' => 'en' ] ) !!}
@if (isset($errors->EmailTemplate->language)) {{ $errors->EmailTemplate->language[0] }} @endif
{!! Form::token() !!} {!! Form::hidden( 'data[EmailTemplate][type]', (isset($data->EmailTemplate->type) ? $data->EmailTemplate->type : $type->type) ) !!}
{!! Form::hidden('data[EmailTemplate][active]', 0) !!} {!! Form::checkbox( 'data[EmailTemplate][active]', 1, ( !isset($data->EmailTemplate->active) || (isset($data->EmailTemplate->active) && $data->EmailTemplate->active) ? true : false ) ) !!} {!! Form::label( 'data[EmailTemplate][active]', t('Active') ) !!}
{!! Form::hidden('data[EmailTemplate][default_template]', 0) !!} {!! Form::checkbox( 'data[EmailTemplate][default_template]', 1, ( (isset($data->EmailTemplate->default_template) && $data->EmailTemplate->default_template) ? true : false ) ) !!} {!! Form::label( 'data[EmailTemplate][default_template]', t('Default Template for the type') ) !!}
{!! Form::label('data[EmailTemplate][subject]', t('Subject')) !!} {!! Form::text( 'data[EmailTemplate][subject]', (isset($data->EmailTemplate->subject) ? $data->EmailTemplate->subject : null), [ 'data-error' => t('This field is required'), 'class' => 'form-control input', 'required' ] ) !!}
@if (isset($errors->EmailTemplate->subject)) {{ $errors->EmailTemplate->subject[0] }} @endif
{!! Form::label('data[EmailTemplate][message]', t('Email Body')) !!} {!! Form::textarea( 'data[EmailTemplate][message]', (isset($data->EmailTemplate->message) ? html($data->EmailTemplate->message) : null), [ 'data-error' => t('This field is required'), 'class' => 'form-control input-cusive wysiwyg', 'required' ] ) !!}
@if (isset($errors->EmailTemplate->message)) {{ $errors->EmailTemplate->message[0] }} @endif

You could use [user.name] or [user.first_name] or [user.last_name] as a placeholder for the user's name

{!! Form::label('data[EmailTemplate][subject]', t('Sms message')) !!} {!! Form::text( 'data[EmailTemplate][sms]', (isset($data->EmailTemplate->sms) ? $data->EmailTemplate->sms : null), [ 'class' => 'form-control input', ] ) !!}
{!! Form::hidden('data[EmailTemplate][options][text_only]', 0) !!} {{-- {!! Form::checkbox( 'data[EmailTemplate][options][text_only]', 1, ( isset($data->EmailTemplate->options->text_only) && $data->EmailTemplate->options->text_only ? true : false ) ) !!} {!! Form::label( 'data[EmailTemplate][options][text_only]', t('Text only email') ) !!} --}}
@if(isset($options) ? $options : null) @foreach ($options as $key => $value) @if (is_numeric($key)) @include('Plugins/Payment/Views/Elements/EmailTemplate/options/' . $value) @else @include('Plugins/Payment/Views/Elements/EmailTemplate/options/' . $key, ['contents' => $value]) @endif @endforeach @endif @include('Plugins/Payment/Views/Elements/EmailTemplate/attachments') {!! Form::submit(t('Save'), ['class' => 'btn btn-pink btn-wider']) !!} {!! Form::close() !!}

You can use the below placeholders where necessary:

[user.first_name] - Customers first name

[user.last_name] - Customers last name

[venue.name] - Your venue / business name

[order.date] - The date they place their order / booking

[order.id] - The order reference number

[link] - Payment link to pay off their balance

[user.birthday] - The DOB of the customer