@extends('layouts.app')
@section('content')
    {{-- @dd($data) --}}
    <div class="container py-5">
        <div class="row g-4">
            @foreach ($data as $item)
                <!-- Card Start -->

                <!-- Repeat Card -->
                <div class="col-lg-3 col-md-6 col-12">
                    <div class="card text-center media_card">
                        <div class="media_img_wrapper position-relative overflow-hidden">
                            <img src="{{ asset('img/' . $item->image) }}" class="card-img-top media_img" alt="Card Image">
                            <div class="media_img_label"> {{ $item->label }}</div>
                        </div>
                        <div class="card-body">
                            <h5 class="card-title"> {{ $item->title }}</h5>
                            <p class="card-text"> {{ $item->para }}</p>
                            <a href="#" class="rts-btn btn-primary">Read More</a>
                        </div>
                    </div>
                </div>

                <!-- Repeat as needed for more cards -->
            @endforeach
        </div>
    </div>
@endsection
