@extends('layouts.layout') @section('title') {{ $catData->cat_metatitle }} | ideanet @endsection @section('meta-data') @endsection @section("content")
@include('frontend.includes.dropdown')

{{ $catData->cat_name }}

{!! $catData->cat_discription !!}
@foreach($festivalList as $index => $listdata) {{-- Insert banner after every 3 festivals --}} @if (($index + 1) % 3 == 0 && $banners->count() > 0) @php $banner = $banners->shift(); // Get the next banner to display @endphp @endif @endforeach
{{-- If there are any remaining banners after the loop, show them at the end --}} @foreach($banners as $banner) @endforeach
@endsection