{{-- Services scroll story (Admin > Settings > Homepage > Services). One sticky scene: scrolling scrubs the loading clip (a stacker lifts a container onto the truck, the camera pulls back), then the giant word slides behind the truck while the services strip slides in on the dark band. The clip is only ever scrubbed, never played. Without JavaScript, or with reduced motion, it shows a still scene with a scrollable strip. --}} @php $svcTitle = \App\Modules\Settings\Support\HomeContent::text('services_title'); $svcItems = \App\Modules\Settings\Support\HomeContent::items('services_items', 5); @endphp @if ($svcTitle && $svcItems) @php $svcLines = array_slice(array_values(array_filter(array_map('trim', preg_split('/\R/', $svcTitle)))), 0, 3); $svcParas = array_values(array_filter(array_map('trim', preg_split('/\R\s*\R/', (string) \App\Modules\Settings\Support\HomeContent::text('services_text'))))); $svcWord = \App\Modules\Settings\Support\HomeContent::text('services_word'); $svcPill = \App\Modules\Settings\Support\HomeContent::text('services_pill'); $svcIcons = ['bi-bricks', 'bi-minecart-loaded', 'bi-clipboard-check', 'bi-truck', 'bi-wallet2']; @endphp
@if ($svcWord)@endif {{-- EBC branding printed on the truck container once it settles (the clip itself is unbranded) --}}

@foreach ($svcLines as $line) $loop->last && $loop->count > 1])>{{ $line }}@endforeach

@if ($svcParas)
@foreach (array_slice($svcParas, 0, 2) as $para)

{{ $para }}

@endforeach
@endif
@foreach ($svcItems as $i => [$title, $text])

{{ $title }}

@if ($text)

{{ $text }}

@endif
@endforeach
@if ($svcPill){{ $svcPill }}@endif
@endif