@foreach($slides as $i => $slide)
@php $t = $slide->translations->first(); $g = $gradients[$i % count($gradients)]; @endphp
@endforeach
@if($slides->count() > 1)
@if($t)
{!! nl2br(e($t->slider_translation_title)) !!}
@endif
@php
$href = null;
if ($slide->slider_url_type === 'FILE' && $slide->slider_url_upload) {
$href = image_url($slide->slider_url_upload);
} elseif ($slide->slider_url && $slide->slider_url_type !== 'NONE') {
$href = $slide->slider_url;
}
@endphp
@if($href)
Maklumat Lanjut
@endif
@foreach($slides as $i => $slide)
@endforeach
@endif