@extends('layouts.layouts')

@section('content')
<section class="section-video-page" style="margin-top:120px">
    <div class="container">

        <div class="d-flex align-items-center mb-4">
            <div class="stripe me-2"></div>
            <h5 class="fw-bold">Video Kegiatan</h5>
        </div>

        <div class="row g-4">
            @foreach ($videos as $video)
                <div class="col-lg-4 col-md-6">
                    <div class="video-card">
                        <iframe
                            src="https://www.youtube.com/embed/{{ $video->youtube_code }}"
                            allowfullscreen>
                        </iframe>
                        <div class="video-body">
                            <h6>{{ $video->judul }}</h6>
                        </div>
                    </div>
                </div>
            @endforeach
        </div>

    </div>
</section>

@endsection
