@extends('layouts.admin.master') @section('title') {{ $viewTitle ?? 'View Gallery' }} @endsection @section('content')
Invalid YouTube link
@endif @elseif($gallery->file_path) @elseNo video available
@endif @elseNo media available
@endif{{ $gallery->description }}
{{ $gallery->title }}
@if($gallery->type === 'featured') Featured @else Sponsored @endif
@if($gallery->resource_type === 'image') Image @else Video @endif
{{ $gallery->sponsor->company_name }}
{{ $gallery->order }}
@if($gallery->is_active) Active @else Inactive @endif
@if($gallery->is_approved) Approved @else Pending @endif
@if($gallery->isExpired()) Expired: {{ $gallery->valid_till->format('M d, Y') }} @else {{ $gallery->valid_till->format('M d, Y') }} @endif
{{ $gallery->creator ? $gallery->creator->name : 'N/A' }}
{{ $gallery->created_at->format('M d, Y H:i:s') }}
{{ $gallery->updated_at->format('M d, Y H:i:s') }}