@extends('backend.template.layouts.template-base') @section('title', 'Notification - Edit Template') @section('content') Edit {{ $template->name }} @csrf {{-- Template Details Card --}} Template Details {{-- Name --}} Template Name * {{-- Image + Description --}} Business Image @if($template->image) Replace Image @else Click to Upload or drag and drop PNG, JPG or JPEG. Max 5MB. @endif Short Description (internal notes) {{ $template->description }} {{-- Message Content --}} Message Content * Title * Message * {{ $template->message }} Deep Link (optional — opens a specific screen in the app) Common: chotekisan://order/@{{order_id}} chotekisan://orders chotekisan://home Available variables — click to insert customer_name order_id order_total product_name total_quantity {{-- Channels --}} Select channels * @php $savedChannels = $template->channels ?? []; @endphp Push Notification In-app and device push SMS Text message via DLT Email Full email message WhatsApp WappCloud template {{-- WhatsApp-specific fields (shown when WhatsApp channel is selected) --}} WhatsApp Settings (WappCloud) Template header, body, and buttons are managed entirely in WappCloud / Meta Business dashboard. Just paste the approved template name — variable values ({{1}}, {{2}}, …) are injected automatically by the notification system at send time. Template Name * Must exactly match the approved template name in WappCloud / Meta dashboard. Header Type whatsapp_header_type ? 'selected' : '' }}>None whatsapp_header_type === 'text' ? 'selected' : '' }}>Text whatsapp_header_type === 'image' ? 'selected' : '' }}>Image whatsapp_header_type === 'video' ? 'selected' : '' }}>Video whatsapp_header_type === 'document' ? 'selected' : '' }}>Document Match what is set in WappCloud template. Header URL Publicly hosted media URL. Leave empty to use the media stored on the approved template. Or Upload Header Image (JPG/PNG) Hosted on our server and sent as the header image (replaces the value above). Do not paste links copied from the Meta preview (scontent.whatsapp.net) — they expire and the send fails. {{-- SMS-specific fields (shown when SMS channel is selected) --}} SMS Settings (DLT) SMS Message (must match DLT-approved template exactly) {{ $template->sms_message }} Variables: @{{customer_name}} @{{order_no}} @{{total}} @{{delivery_date}} @{{delivery_person_name}} @{{delivery_person_mobile}} DLT Template ID Registered template ID from your DLT portal (Nettyfish/WappBlaster). {{-- Trigger Rules Card --}} Trigger Rules Event Triggers * Select @foreach(\App\Models\NotificationTemplate::triggerEventOptions() as $eventKey => $eventLabel) trigger_event === $eventKey)> {{ $eventLabel }} @endforeach Select Audience * Select @foreach([ 'all_customers' => 'All Customers', 'custom_range' => 'Custom Range', 'subscribed_customers' => 'Subscribed Customers', 'new_logged_in' => 'New Logged In Customers', 'delivery_team' => 'Delivery Team', ] as $val => $label) audience === $val ? 'selected' : '' }}> {{ $label }} @endforeach Date Range Customer From Customer To {{-- Action Buttons --}} Cancel Save Changes {{-- Save Confirm Modal --}}
PNG, JPG or JPEG. Max 5MB.
chotekisan://order/@{{order_id}}
chotekisan://orders
chotekisan://home
@{{customer_name}}
@{{order_no}}
@{{total}}
@{{delivery_date}}
@{{delivery_person_name}}
@{{delivery_person_mobile}}
Update template {{ $template->name }}.