Success Stories

Edit Success Story
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif {{-- Show current video preview --}} @if($story->video_url)
@if($story->video_type === 'iframe') @php $embed = $story->video_url; // If it's a raw URL (not an iframe tag), wrap it $isTag = str_contains($embed, ' @endif @else @endif
@endif
@csrf @method('PUT')
{{-- Title --}}
{{-- Video Type --}}
video_type) === 'iframe' ? 'checked' : '' }} onchange="toggleVideoFields()">
video_type) === 'file' ? 'checked' : '' }} onchange="toggleVideoFields()">
{{-- iFrame / YouTube URL field --}}
Example: <iframe src="https://www.youtube.com/embed/VIDEO_ID" ...></iframe>
{{-- File Upload field --}} {{-- Thumbnail Upload field --}}
Accepted: JPEG, PNG, JPG, GIF — Max size: 2MB. Leave blank to keep existing.
@if($story->thumbnail_img) Thumbnail Preview @else @endif
{{-- Description --}}