<div id="{{ $sliderId }}" class="col-md-9 ozel-md-9">
    <div class="new-slider">
        @php $i = 0; @endphp 
        @foreach($slides as $slide)
            <div class="item">
                {!! getNewsLink($slide) !!}
                <div class="sliderInCorusel">
                   @if($slide->is_headline_text==1)   <div style="
      content: ' ';
      display: block;
      position: absolute;
      width: 100%;
      height: 100%;
      z-index: 999;
     background: transparent; 
      background-image: linear-gradient(to top, rgb(0, 0, 0) 0%, rgba(255, 0, 0, 0) 50%);
  "></div> @endif
                    <div class="slideTit">
                         @if(isset($slide->VideoGallery))
                        <img loading="lazy" class="slidericon" src="/img/videohaberlider.png" >
                        @endif
                           @if($slide->is_breaking==1)
                        <img loading="lazy"  class="slidericon"   src="/img/ozelhaber4.png" >
                        @endif
                           @if($slide->is_lastminute==1)
                        <img loading="lazy"  class="slidericon left-slider"   src="/img/son-dakika-4.png" >
                        @endif
                         @if($slide->is_headline_text==1) <span class="badge bg-primary" style="background-color:#{{ $slide->category->color }} !important;">{{ $slide->category->name }}</span>
                        <span>
                            <h2>{{ $slide->name }}</h2>
                        </span>
                        @endif
                    </div>
                    <img src="/uploads/images/news/{{ date("Y/m/d", strtotime($slide->date)) }}/{{ $slide->news_image }}" class="d-block w-100" alt="{{ $slide->name }}">
                </div>
                </a>
            </div>
            @php $i++; @endphp
        @endforeach

           
    </div>
    <ul class="number-indicators">
        @php $i = 0; @endphp 
        @foreach($slides as $slide)
            <a href="#" id="slideItem-{{ $sliderId }}-{{ $i }}" data-bs-slide-to="{{ $i }}" class="indicator-item @if($i == 0) active @endif"> {{ $i + 1 }}</a>
            @php $i++; @endphp
        @endforeach
    </ul>
<div class="row mt-3">

 @foreach($news as $guncelhaberNews)
                          <div class="col-6 col-md-4 col-lg-4">
                 <div class="news-card">
              {!! getNewsLink($guncelhaberNews)!!}<img loading="lazy"  src="/uploads/images/news/{{ date("Y/m/d", strtotime($guncelhaberNews->date)) }}/{{$guncelhaberNews->news_image}}"" alt="{{$guncelhaberNews->name}}"></a>
            <div class="news-badge" style="background-color:#{{$guncelhaberNews->category->color}} !important;">{{$guncelhaberNews->category->name}}</div>
             <div class="card-body">
                <h5 class="card-title">   {!! getNewsLink($guncelhaberNews)!!}<div class="news-title">{{$guncelhaberNews->name}}</div></a></h5></div>
        </div>
            </div>
                      @endforeach               
            </div>
                        

          </div>    