@extends('layouts.admin') @section('title', $config['label']) @section('eyebrow', 'CMS') @section('heading', $config['label']) @section('content') @php $sections = $config['sections'] ?? []; $errorTab = null; foreach ($sections as $section) { foreach ($section['fields'] ?? [] as $field) { if ($errors->has($field['key'])) { $errorTab = $section['id']; break 2; } } } $initialTab = $errorTab ?? ($sections[0]['id'] ?? 'hero'); @endphp
@endsection