{{-- Success/Error Messages --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif {{-- Filter & Actions Panel --}}

{{ __('CMS Pages') }}

{{ __('Manage landing pages, static content, and blog posts.') }}

{{ __('Reset') }}
{{-- Pages Table Panel --}}

{{ __('Page Directory') }}

{{ __('Showing') }} {{ $pages->count() }} {{ __('of') }} {{ $pages->total() }} {{ __('pages.') }}

@php $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', ]; $typeLabels = ['landing' => __('Landing'), 'static' => __('Static'), 'blog' => __('Blog')]; @endphp @forelse($pages as $page) {{-- Delete confirmation modal --}}
@csrf @method('DELETE')

{{ __('Delete page') }} "{{ $page->title }}"?

{{ __('This will') }} {{ __('permanently delete') }} {{ __('this page. This action cannot be undone.') }}

@empty @endforelse
{{ __('Page') }} {{ __('Slug') }} {{ __('Type') }} {{ __('Meta Title') }} {{ __('Status') }} {{ __('Last Updated') }} {{ __('Actions') }}
{{ $page->title }}
{{ $page->slug }} {{ $typeLabels[$page->type] ?? ucfirst($page->type) }} {{ $page->meta_title ?? '--' }} @if($page->is_published) {{ __('Published') }} @else {{ __('Draft') }} @endif {{ $page->updated_at ? $page->updated_at->format('M j, Y') : '--' }}
{{ __('Edit') }}

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

{{ __('Create your first page to get started with your public-facing content.') }}

{{ __('Create Page') }}
@if($pages->hasPages())
{{ $pages->withQueryString()->links() }}
@endif
{{-- SEO Defaults --}}
@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.') }}

{{-- Bulk Delete Modal --}}
@csrf

{{ __('Delete selected pages?') }}

{{ __('You are about to') }} {{ __('permanently delete') }} {{ __('the selected page(s). This action cannot be undone.') }}