@extends('layouts.admin') @section('title', 'Legal pages') @section('eyebrow', 'CMS') @section('heading', 'Legal pages') @section('content') @php $coreSlugs = ['privacy-policy', 'terms-of-service', 'banned-items']; @endphp

Edit Privacy Policy, Terms & Conditions, Banned Goods, and any other footer/legal pages.

Footer menus + New page
@foreach ([ ['privacy-policy', 'Privacy Policy', 'fa-user-shield', 'How you collect & use data'], ['terms-of-service', 'Terms & Conditions', 'fa-scale-balanced', 'Service booking terms'], ['banned-items', 'Banned / Dangerous Goods', 'fa-ban', 'Restricted cargo list'], ] as [$slug, $label, $icon, $hint]) @php $p = $pages->firstWhere('slug', $slug); @endphp

{{ $label }}

{{ $hint }}

@if ($p)

{{ $p->is_published ? 'Published' : 'Draft' }} · Edit →

@else

Missing · Create →

@endif
@endforeach
@forelse ($pages as $page) @empty @endforelse
Title Slug / URL Status
{{ $page->title }} @if (in_array($page->slug, $coreSlugs, true)) Core @endif /pages/{{ $page->slug }} @if ($page->is_published) Published @else Draft @endif Edit @unless (in_array($page->slug, $coreSlugs, true))
@csrf @method('DELETE')
@endunless
No pages yet. Use the cards above to create Privacy / Terms / Banned Goods.
@endsection