@extends('layouts.dashboard') @section('content') @php /** * Admin → Automated drips. The list of sequences, the master switch, and the add/edit modal. * * Composed from the shipped admin analogs rather than a new look: the page action goes to the * top-bar subhead slot and the list is a .qm-table inside a .qm-card exactly as * resources/views/admin/deals.blade.php does it, and the master switch is the .qm-switch-row row used by * Maintenance and Header. * * @var array $rows sequences with their step + enrolment counts * @var array $restaurants for the scope picker * @var array $triggerTypes the three trigger keys * @var bool $masterOn drip_enabled * @var bool $canSend whether outbound mail is configured * @var int $liveTemplates how many email templates are switched on */ $rows = $rows ?? []; $restaurants = $restaurants ?? []; $triggerTypes = $triggerTypes ?? ['lapsed', 'post_order', 'signup']; $masterOn = $masterOn ?? false; $canSend = $canSend ?? false; $liveTemplates = (int) ($liveTemplates ?? 0); @endphp @php /* .qm-d2: the dashboard density standard (app.css §35) */ @endphp
{{ t_raw('admin.drip.needs_smtp') }} {{ t_raw('admin.messages.mail_off_link') }}
{{ t_raw('admin.drip.needs_template') }} {{ t_raw('nav.email_templates') }}