@extends('layouts.admin') @section('title', 'Spotlight Management') @section('content')

Spotlight Management

Total Posts

{{ number_format($stats['total']) }}

Active

{{ number_format($stats['active']) }}

Pending Review

{{ number_format($stats['pending']) }}

Flagged

{{ number_format($stats['flagged']) }}

@forelse($spotlights as $spotlight) @empty @endforelse
ID Content User Venue Engagement Status Date Actions
#{{ $spotlight->id }}
@if($spotlight->media && count(json_decode($spotlight->media)) > 0) @endif

{{ $spotlight->content }}

@if($spotlight->is_flagged) Flagged @endif
{{ $spotlight->user->full_name }}
{{ $spotlight->user->email }}
@if($spotlight->venue) {{ $spotlight->venue->name }} @else @endif
{{ $spotlight->likes_count }} {{ $spotlight->comments_count }}
@if($spotlight->status === 'active') Active @elseif($spotlight->status === 'pending') Pending @else Rejected @endif {{ $spotlight->created_at->format('M d, Y') }}
@if($spotlight->status === 'pending') @endif @if($spotlight->is_flagged) @endif

No spotlight posts found

@if($spotlights->hasPages()) @endif
@endsection