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

Edit Promotion

Edit Promotion

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
Maximum 2000 characters

Upload a thumbnail image that will be displayed in lists and previews.

@if ($promotion->thumbnail && $promotion->thumbnailExists())
Current thumbnail
@endif
thumbnail ? 'required' : '' }}> Accepted formats: JPG, PNG, GIF, WebP (max size: 1MB). Image will be automatically resized to 300x200px.

Upload a single image for your promotion. The image must be:
• Maximum 2MB file size
• Maximum resolution: 1920 × 1080 (Full HD)
• Please upload image with 16:9 ratio
• Supported formats: JPG, PNG, GIF, WebP

@if ($promotion->images->count() > 0)
Current Image
@php $firstImage = $promotion->images->first(); @endphp
@if ($firstImage->imageExists()) {{ $firstImage->original_filename }} @else
@endif
{{ $firstImage->original_filename ?: $firstImage->image_path }} {{ $firstImage->human_file_size }} • {{ $firstImage->resolution }}
@endif
Select a single image file for the promotion.

Enter a YouTube video URL for your promotion.

@if ($promotion->mode == 'video' && $promotion->youtube_url)
@endif
Enter a valid YouTube video URL. Supported formats: youtube.com/watch?v=..., youtu.be/..., youtube.com/embed/...
is_active ? 'checked' : '' }}> If checked, this promotion will be active and any other active promotion will be deactivated.
Back To List
@endsection