@extends('layouts.app') @section('title', 'Kelola Halaman') @section('content')

Kelola Halaman

@php $meta = [ 'home' => ['label' => 'Home', 'url' => '/', 'status' => 'published'], 'shop' => ['label' => 'Shop', 'url' => '/shop', 'status' => 'published'], 'collections' => ['label' => 'Collection', 'url' => '/collections', 'status' => 'published'], 'blog' => ['label' => 'Blog', 'url' => '/blog', 'status' => 'published'], 'about' => ['label' => 'About Us', 'url' => '/about', 'status' => 'draft'], 'contact' => ['label' => 'Contact Us', 'url' => '/contact', 'status' => 'draft'], 'login' => ['label' => 'Login', 'url' => '/login', 'status' => 'published'], 'register' => ['label' => 'Pendaftaran', 'url' => '/register', 'status' => 'published'], 'footer' => ['label' => 'Footer', 'url' => '/', 'status' => 'published'], ]; @endphp @foreach($meta as $slug => $m) @php $updatedAt = $updatedAtMap[$slug] ?? null; @endphp

{{ $m['label'] }}

{{ $m['url'] }}

@if($m['status'] === 'published') Dipublikasikan @else Draft @endif

Terakhir diperbarui: {{ $updatedAt ? $updatedAt->format('d M Y') : '-' }}

{{ $viewCountMap[$slug] ?? 0 }} views
Edit
@endforeach
{{-- Menu Order --}}

Urutan Menu Header

Seret item untuk mengubah urutan menu di halaman publik.

@endsection