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

Spotlight Details

Review and moderate spotlight

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

Spotlight Content

{{ $spotlight->content }}

@if($spotlight->media_urls && count($spotlight->media_urls) > 0)
Media
@foreach($spotlight->media_urls as $url) @if(Str::endsWith($url, ['.jpg', '.jpeg', '.png', '.gif', '.webp']))
Spotlight Media
@elseif(Str::endsWith($url, ['.mp4', '.webm', '.mov']))
@else @endif @endforeach
@endif @if($spotlight->location || $spotlight->latitude)
Location
@if($spotlight->location)

{{ $spotlight->location }}

@endif @if($spotlight->latitude && $spotlight->longitude)

{{ $spotlight->latitude }}, {{ $spotlight->longitude }}

@endif
@endif
Engagement
Views

{{ $spotlight->view_count }}

Likes

{{ $spotlight->likes_count }}

Comments

{{ $spotlight->comments_count }}

Shares

{{ $spotlight->shares_count }}

@if($spotlight->comments && count($spotlight->comments) > 0)
Comments ({{ count($spotlight->comments) }})
@foreach($spotlight->comments as $comment)

{{ $comment->user->first_name }} {{ $comment->user->last_name }}

{{ $comment->comment }}

{{ $comment->created_at->diffForHumans() }}
{{ ucfirst($comment->status) }}
@endforeach
@endif
Status & Moderation
@if($spotlight->moderation_status === 'approved') Approved @elseif($spotlight->moderation_status === 'rejected') Rejected @else Pending @endif
@if($spotlight->moderation_notes)

{{ $spotlight->moderation_notes }}

@endif @if($spotlight->moderated_at)

{{ $spotlight->moderated_at->format('M d, Y H:i') }} @if($spotlight->moderator)
by {{ $spotlight->moderator->first_name }} {{ $spotlight->moderator->last_name }} @endif

@endif
@if($spotlight->offer)
Associated Offer
{{ $spotlight->offer->title }}

{{ Str::limit($spotlight->offer->description, 100) }}

@if($spotlight->offer->featured_image) Offer Image @endif View Offer
@endif
User Information

{{ $spotlight->user->first_name }} {{ $spotlight->user->last_name }}

{{ $spotlight->user->email }}

Phone: {{ $spotlight->user->phone_number ?? 'N/A' }}

Member Since: {{ $spotlight->user->created_at->format('M d, Y') }}

Timeline
Created

{{ $spotlight->created_at->format('M d, Y H:i') }}

Last Updated

{{ $spotlight->updated_at->format('M d, Y H:i') }}

@endsection