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

Spotlights Management

Manage and moderate user spotlights

@if(session('success')) @endif

Total Spotlights

{{ $stats['total'] }}

Pending

{{ $stats['pending'] }}

Approved

{{ $stats['approved'] }}

Rejected

{{ $stats['rejected'] }}

@forelse($spotlights as $spotlight) @empty @endforelse
ID User Offer Content Media Status Likes Created Actions
#{{ $spotlight->id }} {{ $spotlight->user->first_name ?? 'N/A' }}
{{ $spotlight->user->email ?? '' }}
@if($spotlight->offer) {{ Str::limit($spotlight->offer->title, 30) }} @else No Offer @endif {{ Str::limit($spotlight->content, 40) }} @if($spotlight->media_type) {{ ucfirst($spotlight->media_type) }} @else - @endif @if($spotlight->moderation_status === 'approved') Approved @elseif($spotlight->moderation_status === 'rejected') Rejected @else Pending @endif {{ $spotlight->likes_count }} {{ $spotlight->created_at->format('M d, Y') }}
@if($spotlight->moderation_status !== 'approved')
@csrf
@endif @if($spotlight->moderation_status !== 'rejected') @endif
@csrf @method('DELETE')

No spotlights found

@endsection