@extends('layouts.dashboard') @section('content') @php /** * Header appearance — one on/off row per storefront-header element. * Built from the shared card (head / body / foot) + the .qm-switch-row toggle used * elsewhere in the admin, so it matches the rest of the panel with no new styles. */ // [ setting, icon, accent chip, label key, one-line description key ]. Ordered the way // the elements sit across the header, left to right. Every element defaults ON. $rows = [ ['header_service_mode', 'fa-truck', 'blue', 'admin.header.sw_service_mode', 'admin.header.desc_service_mode'], ['header_location', 'fa-map-marker-alt', 'teal', 'admin.header.sw_location', 'admin.header.desc_location'], ['header_search', 'fa-search', 'blue', 'admin.header.sw_search', 'admin.header.desc_search'], ['header_cuisines', 'fa-utensils', 'amber', 'admin.header.sw_cuisines', 'admin.header.desc_cuisines'], ['header_order_now', 'fa-concierge-bell', 'rose', 'admin.header.sw_order_now', 'admin.header.desc_order_now'], ['header_cart', 'fa-shopping-bag', 'pink', 'admin.header.sw_cart', 'admin.header.desc_cart'], ['header_account', 'fa-user-circle', 'teal', 'admin.header.sw_account', 'admin.header.desc_account'], ['header_notifications', 'fa-bell', 'amber', 'admin.header.sw_notifications', 'admin.header.desc_notifications'], ['header_language', 'fa-globe', 'blue', 'admin.header.sw_language', 'admin.header.desc_language'], ]; @endphp
@csrf

{{ t_raw('admin.header.visibility_heading') }}

{{ t_raw('admin.header.intro') }}

@foreach ($rows as [$name, $icon, $accent, $labelKey, $descKey]) @endforeach
@php /* The announcement band above the header. Its switch and its words are one card, because they are one decision: turning it on with nothing written renders nothing, and the operator would otherwise go looking for the message on another screen. The words are page content, so they are stored per language and this card edits the language the panel is being read in — the same rule the footer's trust strip follows. */ @endphp

{{ t_raw('admin.header.ticker_heading') }}

@foreach ($ticker as $tf) @php $tid = 'ht-' . md5($tf['key']); @endphp
@if ($tf['kind'] === \App\Services\PageContent::LINK) @partial('pc-link-field', ['name' => 'ticker[' . $tf['key'] . ']', 'value' => $tf['value'], 'id' => $tid, 'label' => $tf['label']]) @else @endif
@endforeach
@endsection