@extends('layouts.admin') @section('content') @component('admin.components.tabs') {{-- The tabs component already supplies the card, and its card-body is p-0. Content sits directly in the pane and brings its own padding — same as the sibling tab pages, which drop a bare in here. --}} @csrf @method('PUT')
@if (session('success')) @endif @if ($errors->any()) @endif {{-- Redemption ------------------------------------------------------ --}}
Redemption
@if ($errors->has('promo_code_question_id')) {{ $errors->first('promo_code_question_id') }} @endif A user's answer to this question is treated as a promo code. Leave it disabled to stop accepting codes. Choose a question that accepts typed text. On a multiple-choice question, whichever option the user taps becomes the code they redeem.

{{-- WhatsApp templates --------------------------------------------- --}}
WhatsApp workflows

The WhatsApp gateway workflow each message runs. The workflow receives the variables listed with each field.

@if ($workflows === null)
Couldn't load workflows from the WhatsApp gateway, so only the saved choices are listed.
@endif @foreach($notifications as $slug => $notification) @php($current = old($slug, $templates[$slug] ?? $notification['content']))
@if ($errors->has($slug)) {{ $errors->first($slug) }} @endif {{ $notification['description'] }}. Variables: @foreach($notification['placeholders'] as $placeholder) {{ $placeholder }} @endforeach
@endforeach
@endcomponent @endsection