@extends('layouts.app') @section('content')

Page Details: {{ $page->title }}

Title: {{ $page->title }}
Route Name: {{ $page->route_name }}
URL Pattern: {{ $page->url_pattern }}
Access Level: {{ ucfirst($page->access_level) }}
Status: @if($page->is_active) Active @else Inactive @endif
@if($page->redirect_url) @endif
SSL Required: @if($page->require_ssl) Yes @else No @endif
Created: {{ $page->created_at->format('M j, Y g:i A') }}
Last Updated: {{ $page->updated_at->format('M j, Y g:i A') }}
Redirect URL: {{ $page->redirect_url }}
@if($page->description)
Description

{{ $page->description }}

@endif @if($page->allowed_roles && count($page->allowed_roles) > 0)
Allowed Roles
@foreach($page->allowed_roles as $role) {{ ucfirst($role) }} @endforeach
@endif @if($page->meta_data && count($page->meta_data) > 0)
Metadata
{{ json_encode($page->meta_data, JSON_PRETTY_PRINT) }}
@endif
Access Control
@php $accessInfo = match($page->access_level) { 'public' => [ 'icon' => 'globe', 'color' => 'success', 'title' => 'Public Access', 'description' => 'This page is accessible to everyone, including non-authenticated users.' ], 'auth' => [ 'icon' => 'user', 'color' => 'primary', 'title' => 'Authenticated Access', 'description' => 'This page requires users to be logged in.' ], 'admin' => [ 'icon' => 'user-shield', 'color' => 'warning', 'title' => 'Administrator Access', 'description' => 'This page requires admin or manager privileges.' ], 'superadmin' => [ 'icon' => 'crown', 'color' => 'danger', 'title' => 'Super Administrator', 'description' => 'This page requires admin privileges only.' ] }; @endphp
{{ $accessInfo['title'] }}

{{ $accessInfo['description'] }}

@if($page->allowed_roles && count($page->allowed_roles) > 0)
Additional Role Restrictions:
    @foreach($page->allowed_roles as $role)
  • {{ ucfirst($role) }}
  • @endforeach
@endif
Quick Actions
Edit Page
@csrf @method('PATCH')
@csrf @method('DELETE')
Page Information
{{ $page->is_active ? 'Active' : 'Inactive' }}
Status
{{ $page->require_ssl ? 'Yes' : 'No' }}
SSL Required

Created {{ $page->created_at->diffForHumans() }}
Updated {{ $page->updated_at->diffForHumans() }}
@endsection