@extends('admin.layouts.home') @section('title', 'Page Details') @section('styles') @endsection @section('content')

Page Details

Edit Page Back to Pages
Page Information
@if($page->is_featured)
@csrf
@else
@csrf
@endif @if($page->active)
@csrf @method('PUT')
@else
@csrf @method('PUT')
@endif
@csrf @method('DELETE')
@if($page->cover_photo)
@else
@endif
Quick Stats
Likes
{{ $likeCount }}
Posts
{{ $postCount }}
Contact Information
@if($page->location)

{{ $page->location }}

@endif @if($page->website)

{{ $page->website }}

@endif @if($page->phone)

{{ $page->phone }}

@endif @if($page->email)

{{ $page->email }}

@endif @if(!$page->location && !$page->website && !$page->phone && !$page->email)

No contact information available

@endif

{{ $page->name }} {{ $page->active ? 'Active' : 'Inactive' }} @if($page->is_featured) Featured @endif

{{ $page->description }}

Category: @if($page->category) {{ $page->category->name }} @else Uncategorized @endif

Created: {{ $page->created_at->format('M d, Y') }}

Last Updated: {{ $page->updated_at->format('M d, Y') }}

Creator: @if($page->creator) {{ $page->creator->name }} @else Unknown @endif

@if($recentLikes->isEmpty())

No likes yet.

@else
@foreach($recentLikes as $like) @endforeach
User Date
@if($like->user->profile_photo) @else
{{ strtoupper(substr($like->user->name, 0, 1)) }}
@endif
{{ $like->user->name }}
{{ $like->user->email }}
{{ $like->created_at->format('M d, Y H:i') }}
@if($likeCount > count($recentLikes))

Showing {{ count($recentLikes) }} of {{ $likeCount }} likes

@endif @endif

Recent posts will be displayed here.

@endsection @section('scripts') @endsection