@extends('layouts.admin.master') @section('title', !empty($emailPreference) ? 'Edit Email Hook' : 'Add Email Hook') @section('content') @include('layouts.admin.flash.alert')

Manage Email Preference Here you can {{ !empty($emailPreference) ? 'edit' : 'add' }} email preferences(layout)

{{ !empty($emailPreference) ? 'Edit Email Preference' : 'Add Email Preference' }}

Back
@if(isset($emailPreference)) {{ Form::model($emailPreference, ['route' => ['admin.email-preferences.update', $emailPreference->id], 'method' => 'patch']) }} @else {{ Form::open(['route' => 'admin.email-preferences.store']) }} @endif
{{ Form::text('title', old('title'), ['class' => 'form-control','placeholder' => 'Title']) }} @if($errors->has('title')) {{ $errors->first('title') }} @endif
{{ Form::textarea('layout_html', old('layout_html'), ['class' => 'form-control','placeholder' => 'Layout Html', 'rows' => 8]) }} @if($errors->has('layout_html')) {{ $errors->first('layout_html') }} @endif
{{ Form::close() }}

Important Rules

For each email style or email preference that would be added to the system, make sure it has these hooks:

  • ##SYSTEM_LOGO## - Will be replaced by logo from the admin settings.
  • ##SYSTEM_APPLICATION_NAME## - Will be replaced by application name from admin settings.
  • ##EMAIL_CONTENT## - Will be replaced by email message from email hook settings.
  • ##EMAIL_FOOTER## - Will be replaced by email footer from email hook settings.
@endsection