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

Manage Email Hooks Here you can {{ !empty($emailHook) ? 'edit' : 'add' }} email hook(slug)

{{ !empty($emailHook) ? 'Edit Email Hook' : 'Add Email Hook' }}

Back
@if(isset($emailHook)) {{ Form::model($emailHook, ['route' => ['admin.edit-hooks', $emailHook->id], 'method' => 'patch']) }} @else {{ Form::open(['route' => 'admin.save-hooks']) }} @endif
{{ Form::text('title', old('title'), ['class' => 'form-control','placeholder' => 'Title']) }} @if($errors->has('title')) {{ $errors->first('title') }} @endif
{{ Form::text('slug', old('slug'), ['class' => 'form-control','placeholder' => 'Hook/Slug' ,'readonly' => isset($emailHook) ? true : false]) }}

No space, separate each word with underscore. (if you want auto generated then please leave blank)

{{ Form::textarea('description', old('description'), ['class' => 'form-control','placeholder' => 'Description', 'rows' => 8]) }} {{-- --}} @if($errors->has('description')) {{ $errors->first('description') }} @endif
{{ Form::select('status', [1 => 'Active', 0 => 'Inactive'], old("status"), ['class' => 'form-control']) }}
{{ Form::close() }}

Last updated email hooks

@if (!$emailHookLists->isEmpty())
    @foreach ($emailHookLists as $hook)
  • {{ $hook->created_at->toFormattedDateString() }}
  • {{ $hook->created_at->format('H:i A') }}

    {{ $hook->title }}

    {{ $hook->description }}
  • @endforeach
@endif
@endsection