@extends('layouts.app') @section('title', __('whatsappnotification::lang.whatsapp_notification') . ' - ' . __('whatsappnotification::lang.manage_templates')) @section('content')
Manage POS notifications, payment reminders, manual sends, and B2B login OTP templates from one place.
| {{ __('whatsappnotification::lang.template_name') }} | {{ __('whatsappnotification::lang.trigger_type') }} | {{ __('whatsappnotification::lang.reminder_days') }} | {{ __('whatsappnotification::lang.send_time') }} | {{ __('whatsappnotification::lang.status') }} | {{ __('lang_v1.action') }} |
|---|---|---|---|---|---|
|
{{ $template->name }}
@if(in_array($template->name, ['B2B Login OTP', 'b2b_login_otp']))
B2B OTP
@endif
@if(($template->provider ?? 'unofficial') === 'meta_official')
@endif
@if($template->message_title)
{{ Str::limit($template->message_title, 60) }} @endif @if(!empty($template->meta_template_name)) Meta: {{ $template->meta_template_name }} / {{ $template->meta_language }} @endif |
@php $badge_class = [ 'new_sale' => 'success', 'sale_update' => 'warning', 'payment_reminder' => 'danger', 'manual' => 'info', ][$template->trigger_type] ?? 'default'; @endphp {{ $trigger_labels[$template->trigger_type] ?? $template->trigger_type }} | @if($template->trigger_type === 'payment_reminder') @if(!is_null($template->reminder_days_overdue)) {{ $template->reminder_days_overdue }} {{ __('whatsappnotification::lang.days') }} @else {{ __('whatsappnotification::lang.any_due') }} @endif @else — @endif | @if($template->trigger_type === 'payment_reminder' && $template->reminder_send_time) {{ \Carbon\Carbon::createFromTimeString($template->reminder_send_time)->format('h:i A') }} @else — @endif | {{ $template->is_active ? __('lang_v1.active') : __('lang_v1.inactive') }} | {{ __('lang_v1.edit') }} |