@extends('layouts.app') @section('content')
@include('partials.header') @include('partials.sidebar')

View Promotion

Promotion Details

Promotion Content @if ($promotion->mode == 'image') Image Mode @else Video Mode @endif {{ $promotion->is_active ? 'Active' : 'Inactive' }}
@if ($promotion->title)
Title:
{!! nl2br(e($promotion->title)) !!}
@endif @if ($promotion->description)
Description:
{!! nl2br(e($promotion->description)) !!}
@endif

Created: {{ $promotion->created_at->format('M d, Y g:i A') }}

@if ($promotion->updated_at != $promotion->created_at)

Updated: {{ $promotion->updated_at->format('M d, Y g:i A') }}

@endif
@if ($promotion->mode == 'image')

Images: {{ $promotion->images->count() }} image(s)

@elseif($promotion->mode == 'video')

Video Source: YouTube

@endif
@if ($promotion->mode == 'video')
YouTube Video
@if ($promotion->youtube_url && $promotion->youtube_video_id)

YouTube URL:

Open on YouTube
@else

No valid YouTube URL found

@endif
@else
Images ({{ $promotion->images->count() }})
@if ($promotion->images->count() > 0)
@foreach ($promotion->images->sortBy('sort_order') as $image)
@if ($image->imageExists()) {{ $image->original_filename }} @else

Image not found

@endif
{{ $image->original_filename ?: $image->image_path }}

{{ $image->human_file_size }} • {{ $image->resolution }}

@endforeach
@else

No images found

@endif
@endif
@if ($promotion->thumbnail && $promotion->thumbnailExists())
Thumbnail Preview
{{ $promotion->title }} Thumbnail
@endif
Basic Information
Title: {{ $promotion->title }}
Media Type: {{ ucfirst($promotion->mode) }}
Status: @if ($promotion->is_active) Active @else Inactive @endif
Created: {{ $promotion->created_at->format('M d, Y \a\t H:i') }}
Last Updated: {{ $promotion->updated_at->format('M d, Y \a\t H:i') }}
Actions
Edit Promotion Back to List
Technical Details
@if ($promotion->mode == 'image') @endif @if ($promotion->youtube_video_id) @endif
ID: #{{ $promotion->id }}
Total Images: {{ $promotion->images->count() }} files
Video ID: {{ $promotion->youtube_video_id }}
@endsection