@extends('layouts.layouts')

@section('content')
    <section id="foto" style="margin-top: 100px" class="section-foto parallax" data-aos="zoom-in-up">
        <div class="container">
            <div class="d-flex justify-content-between align-items-center mb-5">
                <div class="d-flex align-items-center">
                    <div class="stripe-putih me-2"></div>
                    <h5 class="fw-bold text-white">Foto Kegiatan</h5>
                </div>
                <div>
                    <a href="{{ route('foto.kegiatan') }}" class="btn btn-outline-white">
                        Foto lainnya
                    </a>

                </div>
            </div>

            <div class="row">
                @foreach ($photos as $foto)
                    <div class="col-md-3 mb-4">
                        <div class="card">
                            <img src="{{ asset('storage/photo/' . $foto->image) }}" class="card-img-top"
                                alt="{{ $foto->judul }}">
                            <div class="card-body">
                                <h6>{{ $foto->judul }}</h6>
                            </div>
                        </div>
                    </div>
                @endforeach
            </div>
        </div>
    </section>
@endsection
