@extends('admin.layouts.app') @section('title', 'Pages') @section('page-title', 'Pages') @section('content')

Pages

Every static page of the website — create, edit, duplicate, publish or move to trash from one place.

🌐 View Site + Add Page
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
{{-- ---- stats / status filters ---- --}}
📄 {{ $counts['all'] }} All Pages 🛕 {{ $counts['core'] ?? 21 }} Core Pages 📜 {{ $counts['cms'] ?? 7 }} CMS Pages ✅ {{ $counts['active'] }} Published 🗑️ {{ $counts['trash'] }} Trash
{{-- ---- toolbar ---- --}}
@if($isTrash = ($status === 'trash')) @if($counts['trash'] > 0)
@csrf
@endif @endif
@if($status !== 'all') @endif @if($search !== '') @endif
{{-- ---- bulk action bar ---- --}}
selected
{{-- ---- table ---- --}}
@forelse($pages as $page) @empty @endforelse
Page Status Updated Actions
{{ $page->page_icon }}
@if($status !== 'trash') {{ $page->title }} @else {{ $page->title }} @endif
{{ parse_url($page->url(), PHP_URL_PATH) ?: '/' }} @if($page->isSystemPage()) CORE @else CMS @endif
@if($page->trashed()) In Trash @elseif($page->is_active) Published @else Draft @endif {{ optional($page->updated_at)->format('d M Y') }}
@if($status === 'trash')
@csrf
title . '"? This cannot be undone.') }});"> @csrf @method('DELETE')
@else @if($page->is_active) 👁️ @endif ✏️ ⚙️ @if(!$page->isSystemPage())
title . '"? A draft copy will be created.') }});"> @csrf
title . '" to trash?') }});"> @csrf @method('DELETE')
@else 🔒 @endif @endif
{{ $status === 'trash' ? '🗑️' : '📄' }}

{{ $status === 'trash' ? 'Trash is empty' : ($search !== '' ? 'No pages match your search' : 'No pages yet') }}

{{ $status === 'trash' ? 'Nothing has been deleted. Trashed pages appear here and can be restored.' : ($search !== '' ? 'Try a different title or slug.' : 'Create your first page to get started.') }}

@if($status !== 'trash' && $search === '') + Add Page @endif
{{-- ---- pager ---- --}} @if($pages->total() > 0)
Showing {{ $pages->firstItem() }}–{{ $pages->lastItem() }} of {{ $pages->total() }} page(s)
{{ $pages->links() }}
@endif
@push('scripts') @endpush @endsection