@extends('layouts.app') @section('title', 'Video Gallery') @section('meta_description', 'Watch the latest news videos and reports from our video gallery.') @section('content')

Video Gallery

Photo Gallery
@if($videos->count())
@foreach($videos as $video)
@php $videoId = $video->media; // Support full YouTube URLs if (str_contains($videoId, 'youtube.com') || str_contains($videoId, 'youtu.be')) { preg_match('/(?:v=|youtu\.be\/)([a-zA-Z0-9_-]{11})/', $videoId, $matches); $videoId = $matches[1] ?? $videoId; } @endphp
{{ $video->title }}

{{ $video->created_at->diffForHumans() }}

@endforeach
{{ $videos->links() }}
@else

No videos available yet.

@endif
@endsection