@extends('layouts.admin.master') @section('title','Email Hooks') @section('content') @include('layouts.admin.flash.alert')

Manage Email Hooks Here you can manage email hooks(slug)

List {{ __('Email Hooks') }}

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

    {{ $hook->title }}

    {{ $hook->description }}
  • @endforeach
@else
Record Not Available
@endif

Quick Start

{{ Form::open(['route' => 'admin.save-hooks']) }}
{{ 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() }}
@stop