@extends('layouts.admin') @section('title', 'Spotlights for ' . $offer->title) @section('content')

Spotlights for Offer

{{ $offer->title }}

@if($offer->featured_image) {{ $offer->title }} @else
@endif
{{ $offer->title }}

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

Business

{{ $offer->business->name ?? 'N/A' }}

Status

@if($offer->status === 'active') Active @else Inactive @endif

Views

{{ $offer->view_count }}

@if(count($spotlights) > 0)
@foreach($spotlights as $spotlight)
@if($spotlight->media_urls && count($spotlight->media_urls) > 0) @php $firstMedia = $spotlight->media_urls[0]; $isImage = Str::endsWith($firstMedia, ['.jpg', '.jpeg', '.png', '.gif', '.webp']); @endphp @if($isImage) Spotlight @else
@endif @else
@endif
By {{ $spotlight->user->first_name }} {{ $spotlight->user->last_name }}

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

Views

{{ $spotlight->view_count }}

Likes

{{ $spotlight->likes_count }}

Comments

{{ $spotlight->comments_count }}

{{ ucfirst($spotlight->moderation_status) }}
{{ $spotlight->created_at->format('M d, Y') }}
@endforeach
{{ $spotlights->links() }}
@else
No Spotlights Yet

This offer doesn't have any spotlights

Add First Spotlight
@endif
@endsection