@extends('layouts.admin') @section('title', __('menu-bar.title')) @section('content') {{-- Exact preview of the Angular frontend navbar, powered by the saved backend values. --}}
معاينة شريط الـFrontend هذه هي نفس القائمة التي يستقبلها الموقع من الـAPI.
{{ $settings->is_enabled ? 'نشط في الموقع' : 'معطل' }}
@php($currentLogoUrl = old('brand_logo_url', $settings->resolvedBrandLogoUrl()))
@if($settings->cta_button_enabled) {{ $settings->cta_button_text }} @endif @if($settings->is_theme_toggle_enabled) @endif
{{-- SECTION 1 & 2: Main Settings & Action Button Form --}}
@csrf @method('PUT') {{-- 1. Brand & General Settings --}}
{{ __('menu-bar.sections.general') }}
اختر الشعار من معرض الصور أو ارفع صورة جديدة؛ لا توجد حاجة لكتابة مسار يدوي.
{{-- 2. CTA Button & Controls --}}
{{ __('menu-bar.sections.cta_and_controls') }}
{{-- SECTION 3: Navigation Links Management --}}

{{ __('menu-bar.sections.links') }} ({{ $links->count() }} روابط)

تحكم في نصوص، روابط، وترتيب الروابط الظاهرة في القائمة الرئيسية مع دعم الفتح في نافذة جديدة.

{{-- Add New Link Collapsible Form --}} {{-- Existing Links Cards Grid --}} @if($links->isNotEmpty())
@foreach($links as $link)
#{{ $link->display_order }} - {{ $link->label }} {{ $link->is_active ? __('menu-bar.fields.active') : __('menu-bar.fields.inactive') }}
@csrf @method('PUT')
@csrf @method('DELETE')
@endforeach
@else
{{ __('menu-bar.empty_links') }}
@endif
@endsection