@extends('admin.layouts.app') @section('title', 'Country Sections CMS') @section('content')
@if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@endif
@csrf @php $toPreview = function (?string $path): string { if (!$path) return ''; return (str_starts_with($path, 'http://') || str_starts_with($path, 'https://')) ? $path : asset('storage/' . ltrim($path, '/')); }; $tabs = [ 'subjects' => ['icon' => 'πŸŽ“', 'label' => 'Popular Subjects', 'desc' => 'Subject cards shown on each country page'], 'process' => ['icon' => 'πŸ“‹', 'label' => 'Admission Process', 'desc' => 'Step-by-step visa & admission process'], 'intakes' => ['icon' => 'πŸ“…', 'label' => 'Admission Intakes', 'desc' => 'Intake periods (Feb, July, Nov)'], 'entry' => ['icon' => 'βœ…', 'label' => 'Entry Requirements', 'desc' => 'Foundation, Diploma, Bachelor, Masters tabs'], ]; @endphp {{-- Tab Header --}}

Country Sections CMS

Global items for all country detail pages. Use the Popular Subjects tab to add subjects, then select per-country from the country edit form.

@foreach($tabs as $key => $tab) @endforeach
{{-- ── TAB: Popular Subjects ── --}}
πŸŽ“

Popular Subjects Pool

Add all possible subjects here. Then go to each country's edit page β†’ "Popular Subjects" tab to select which ones apply.

Will display as: "Popular Subjects To Study in Australia"

@foreach(($content['subjects']['items'] ?? []) as $i => $item)
@php $subjectPreview = $toPreview($item['image'] ?? ''); @endphp @if($subjectPreview) @endif
@endforeach
{{-- ── TAB: Admission Process ── --}} {{-- ── TAB: Admission Intakes ── --}} {{-- ── TAB: Entry Requirements ── --}} {{-- Sticky Save --}}
Cancel
@endsection