@if($pages->count() === 0) {{-- Empty state --}}

{{ __('No pages yet') }}

{{ __('Create your first page to get started with your public-facing content. Pages can be landing pages, static content (terms, privacy), or blog posts.') }}

{{ __('Pages can be created via database seeder or a future CMS editor.') }}

@else {{-- Pages grouped by type --}} @php $grouped = $pages->groupBy('type'); $typeLabels = ['landing' => __('Landing Pages'), 'static' => __('Static Pages'), 'blog' => __('Blog Posts')]; $typeIcons = [ 'landing' => 'M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6', 'static' => 'M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z', 'blog' => 'M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z', ]; @endphp @foreach($typeLabels as $typeKey => $typeLabel) @if(isset($grouped[$typeKey]) && $grouped[$typeKey]->count() > 0)

{{ $typeLabel }}

@foreach($grouped[$typeKey] as $page) @endforeach
{{ __('Page') }} {{ __('Slug') }} {{ __('Meta Title') }} {{ __('Status') }} {{ __('Last Updated') }}
{{ $page->title }}
{{ $page->slug }} {{ $page->meta_title ?? '--' }} @if($page->is_published) {{ __('Published') }} @else {{ __('Draft') }} @endif {{ $page->updated_at ? \Carbon\Carbon::parse($page->updated_at)->format('M j, Y') : '--' }}
@endif @endforeach @endif {{-- SEO Defaults --}} @if(session('success')){{-- already shown above --}}@endif
@csrf @php $getSetting = function($key, $default = '') { static $cache = null; if ($cache === null) { try { $cache = \Illuminate\Support\Facades\DB::table('system_settings')->pluck('value', 'key')->toArray(); } catch (\Exception $e) { $cache = []; } } return $cache[$key] ?? $default; }; @endphp

{{ __('Global SEO Defaults') }}

{{ __('Default SEO meta tags applied when page-specific values are not set.') }}