@extends('backend.template.layouts.template-base') @section('title', 'Notification - Edit Template') @section('content')
@csrf
{{-- Template Details Card --}}

Template Details

{{-- Name --}}
{{-- Image + Description --}}
@if($template->image) Preview @else
Upload
Click to Upload or drag and drop

PNG, JPG or JPEG. Max 5MB.

@endif
{{-- Message Content --}}
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 --}}
@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) --}}
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.
Must exactly match the approved template name in WappCloud / Meta dashboard.
Match what is set in WappCloud template.
Publicly hosted media URL. Leave empty to use the media stored on the approved template.
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) --}}
Variables: @{{customer_name}} @{{order_no}} @{{total}} @{{delivery_date}} @{{delivery_person_name}} @{{delivery_person_mobile}}
Registered template ID from your DLT portal (Nettyfish/WappBlaster).
{{-- Trigger Rules Card --}}
Trigger Rules
{{-- Action Buttons --}}
Cancel
{{-- Save Confirm Modal --}} @include('backend.template.layouts.manage-content.banner._deeplink-picker-modal') @endsection @section('scripts') @endsection