@extends('layouts.admin') @section('title', $page->title) @section('breadcrumb') Pages / {{ $page->title }} @endsection @section('content')

{{ $page->title }}

@include('admin.pages.partials.status', ['page' => $page])

@if ($page->published_at) Last published {{ $page->published_at->diffForHumans() }}. @endif Edits are saved as a draft until you publish.

Preview draft @if ($page->isPublished()) View live @endif @if ($page->has_unpublished_changes)
@csrf
@endif
@csrf

Sections

Use the arrows to change the order, then save.

@csrf @method('PUT')
    @foreach ($page->sections as $section) @php $definition = $section->definition(); @endphp
  1. {{ $definition->label() }}

    {{ \Illuminate\Support\Str::limit(trim(($section->draft_content['title_regular'] ?? '').' '.($section->draft_content['title_accent'] ?? '')), 80) ?: ' ' }} @unless ($section->is_enabled) ยท Hidden @endunless

    @if ($definition->canDisable()) @endif Edit
  2. @endforeach
@foreach ($page->sections as $section) @if ($section->definition()->canDisable()) @endif @endforeach

Search engine and sharing

These details are saved directly to the live page.

@csrf @method('PUT')
@include('admin.sections.partials.media-input', [ 'name' => 'og_image_id', 'id' => 'og_image_id', 'label' => 'Social sharing image', 'value' => old('og_image_id', $page->og_image_id), 'kind' => 'image', 'help' => 'Optional. The first image on the page is used when empty.', ])
@include('admin.media.partials.picker') @endsection