@extends('layouts.dashboard') @section('content') @php /** * Vendor advertising — new campaign form + visual placement map. * @var array $placements AdCampaign::placements [key => ['label','desc']] * @var array $prices [placement => monthly price] * @var array $tags [['name','slug'], ...] * @var array $cuisines [['name','slug'], ...] */ $oldVal = static function (string $k, string $def = '') { return (string) \App\Support\Session::old($k, $def); }; // Preselect a placement so the price + placement map are never empty on first open. // (Falls back to the first placement key when the form hasn't been submitted yet.) $placementKeys = array_keys($placements); $selPlacement = $oldVal('placement', (string) ($placementKeys[0] ?? '')); $currency = setting('currency_symbol', '$'); // Numeric price map for the live JS calculator. $priceMap = []; foreach ($prices as $k => $p) { $priceMap[$k] = (float) $p; } @endphp @php /* .qm-d2: the dashboard density standard (app.css §35) */ @endphp