<x-header />
<div class="main">
    <div class="container">
        <div id="carouselExampleControls" class="carousel slide" data-bs-ride="carousel">
            <div class="carousel-inner">
                <div class="carousel-item active">
                    <img src="public/images/slider1.png" class="d-block w-100">
                </div>
                <div class="carousel-item">
                    <img src="public/images/slider2.png" class="d-block w-100">
                </div>
                <div class="carousel-item">
                    <img src="public/images/slider3.png" class="d-block w-100">
                </div>
            </div>
            <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="prev">
                <span class="carousel-control-prev-icon" aria-hidden="true"></span>
                <span class="visually-hidden">Previous</span>
            </button>
            <button class="carousel-control-next" type="button" data-bs-target="#carouselExampleControls" data-bs-slide="next">
                <span class="carousel-control-next-icon" aria-hidden="true"></span>
                <span class="visually-hidden">Next</span>
            </button>
        </div>
        <div class="acc">
            <h1>Клининговая компания "Мой Не Сам"</h1>
            <p>Зачем мыть самому, если можно обратиться к нам?</p>

            <a href="{{Route('apply')}}"><button class="butap">Заказать уборку</button></a>
        </div>
    </div>

    <section class="container mb-5">
        <h2 class="text-center mb-4">Услуги</h2>
        <div class="row g-4">
            @foreach($categories as $category)
            <div class="col-md-3">
                <div class="card h-100 border-0 shadow">
                    <div class="card-body text-center">
                        <i class="fas fa-clock fa-3x text-primary mb-3"></i>
                        <a href="{{Route('apply')}}">{{ $category->name }}</a>
                    </div>
                </div>
            </div>
            @endforeach
        </div>
    </section>
</div>

<x-footer />
<x-scripts />