@extends('admin.layout', ['navType' => $page->type]) @section('title', 'Edit: '.$page->title) @section('content') @php use App\Support\Tokens; $isContent = in_array($page->type, ['page', 'post'], true); $tab = request('tab', 'content'); $robots = (string) $page->robots; $site = \App\Models\Setting::get('site_name', 'Anan International School'); @endphp
{{ $page->typeLabel() }} @if($page->path !== null)· {{ $page->url() }}@endif

{{ $page->title }} @if($isContent)status])>{{ ucfirst($page->status) }}@endif

@include('admin._icon', ['i' => 'wand'])Visual editor @if ($page->path !== null)@include('admin._icon', ['i' => 'eye']){{ $page->status === 'draft' ? 'Preview' : 'View' }}@endif @if ($isContent)
@csrf
@endif
@if ($page->draft)
This {{ $page->type === 'layout' ? 'part' : $page->type }} has changes in the visual editor that are not published yet. Publishing them (Update) will replace content edits made here in the meantime — edit in one place at a time.
@endif
@csrf @method('PUT')
{{-- CONTENT --}} {{-- SEO --}} {{-- SETTINGS --}}
@if ($isContent && $page->path !== '')
@csrf @method('DELETE')
@endif @endsection