@php
$sliders = \App\Models\Backend\ContentSlider::with('translations')
->where('slider_status', 'ACTIVE')
->where('slider_portal', 'redd-plus')
->where('slider_type', 'SLIDER_BACKGROUND')
->orderBy('slider_sort')
->take(3)
->get();
@endphp
@foreach($sliders as $slide)
@php
$t = $slide->translations->firstWhere('slider_translation_main', 1) ?? $slide->translations->first();
$img = $t?->slider_translation_img;
$imgUrl = $img ? (\Illuminate\Support\Facades\Storage::url($img)) : '';
@endphp
@endforeach