@extends('crm.master') @section('title', isset($notification) ? 'Edit Notification' : 'New Email Notification') @section('content')

{{ isset($notification) ? 'Edit Email Notification' : 'New Email Notification' }}

{{ isset($notification) ? 'Update the notification configuration and content' : 'Create a new email notification template for events' }}

{{-- Sidebar: Available Email Variables --}}
Email Variables

Click a variable to copy it.

General

{$COMPANY_NAME} {$CHECKFRONT_URL} {$ACCOUNT_ID} {$CREATED_BY}

Customer

{$CUSTOMER_NAME} {$CUSTOMER_FIRST_NAME} {$CUSTOMER_LAST_NAME} {$CUSTOMER_EMAIL}

Booking

{$BOOKING_ID} {$BOOKING_TOTAL} {$BOOKING_STATUS} {$BOOKING_QTY} {$BOOKING_ITEMS} {$BOOKING_DATE} {$BOOKING_START_DATE} {$BOOKING_END_DATE} {$BOOKING_TIME} {$BOOKING_START_TIME} {$BOOKING_END_TIME}

URLs & Details

{$BOOKING_DETAILS} {$BOOKING_EXTRA_DETAILS} {$BOOKING_ITEMS_URL} {$BOOKING_RATES} {$BOOKING_DISCOUNT_CODES} {$BOOKING_ADMIN_URL} {$BOOKING_PAYMENT_URL} {$BOOKING_PAY_FULL_URL} {$BOOKING_CANCEL_URL} {$BOOKING_PDF_URL} {$BOOKING_GUESTS_URL} {$BOOKING_URL} {$BOOKING_QR_CODE} {%EMBED_INVOICE} {$INVENTORY_LEVEL_ITEMS}
{{-- Main Form --}}
{{ isset($notification) ? 'Edit Notification' : 'New Email Notification' }}
@if ($errors->any()) @endif
@csrf @if (isset($notification)) @method('PUT') @endif
@error('name')
{{ $message }}
@enderror
@error('subject')
{{ $message }}
@enderror
@error('notification_type')
{{ $message }}
@enderror
@error('event')
{{ $message }}
@enderror
recipients ?? [])) ? 'checked' : '' }}>
recipients ?? [])) ? 'checked' : '' }}>
@error('recipients')
{{ $message }}
@enderror
@error('from_email')
{{ $message }}
@enderror Default: {{ $defaultEmail ?? 'No business email configured' }}
@error('reply_to')
{{ $message }}
@enderror
scheduled ?? 0) == 0 || old('scheduled', $notification->scheduled ?? 0) === false) ? 'checked' : '' }}>
scheduled ?? 0) == 1 ? 'checked' : '' }}>
content_type ?? 'html') === 'html' ? 'checked' : '' }} required>
content_type ?? 'html') === 'text' ? 'checked' : '' }} required>
@include('crm.components.editor', ['item_details' => old('html_msg', $notification->html_msg ?? ''), 'resource' => 'html_msg'])
Apply To
@php $selectedIds = old('product_ids', isset($notification) ? $notification->products->pluck('id')->toArray() : []); @endphp
@include('crm.components.product-selector')
enabled ?? true) ? 'checked' : '' }}>
Cancel
{{-- /col-lg-9 --}}
{{-- /row --}}
@endsection @section('page-script') @endsection