@extends('admin.layouts.home') @section('title', 'Featured Pages') @section('content')

Featured Pages

Back to All Pages
Featured Pages

Featured pages are displayed prominently throughout the application. They appear in the "Featured Pages" section on the home page and discovery feeds. To add or remove a page from the featured list, go to the page details page or use the toggle button below.

@if($featuredPages->isEmpty())

No Featured Pages

You haven't featured any pages yet. Go to the Pages list and click the star icon to feature a page.

Go to Pages List
@else
@foreach($featuredPages as $page)
{{ $page->page_title }}
@csrf @method('DELETE')
{{ $page->active ? 'Active' : 'Inactive' }}
@csrf
{{ $page->page_title }}

{{ Str::limit($page->description, 50) }}

@if($page->category) {{ $page->category->name }} @else Uncategorized @endif
{{ $page->created_at->format('M d, Y') }} {{ $page->is_featured ? 'Featured' : 'Unfeatured' }}
@endforeach
{{ $featuredPages->links('pagination::bootstrap-5') }}
@endif {{-- @if($suggestedPages->isNotEmpty())
Suggested Pages to Feature

These pages are popular and might be good candidates for featuring:

@foreach($suggestedPages as $page) @endforeach
Page Name Likes Category Creator Created On Actions
{{ $page->name }} {{ $page->likes_count }} @if($page->category) {{ $page->category->name }} @else Uncategorized @endif @if($page->creator) {{ $page->creator->name }} @else Unknown @endif {{ $page->created_at->format('M d, Y') }}
@csrf
@endif --}}
@endsection @section('scripts') @endsection