@extends('layouts.admin.master') @section('title') {{ $viewTitle ?? 'View Gallery' }} @endsection @section('content')

{{ $viewTitle ?? 'View Gallery' }}

@if ($gallery->type == 'featured') Edit Back @else Back @endif
{{-- Media Display --}}
{{-- Description --}} @if($gallery->description)
Description

{{ $gallery->description }}

@endif
{{-- Gallery Details --}}
Details

{{ $gallery->title }}

@if($gallery->type === 'featured') Featured @else Sponsored @endif

@if($gallery->resource_type === 'image') Image @else Video @endif

@if($gallery->sponsor)

{{ $gallery->sponsor->company_name }}

@endif @if($gallery->redirect_url) @endif

{{ $gallery->order }}

@if($gallery->is_active) Active @else Inactive @endif

@if($gallery->is_approved) Approved @else Pending @endif

@if($gallery->valid_till)

@if($gallery->isExpired()) Expired: {{ $gallery->valid_till->format('M d, Y') }} @else {{ $gallery->valid_till->format('M d, Y') }} @endif

@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') }}

@endsection @push('css') @endpush @push('js') @endpush