@props(['service']) @php use App\Helpers\ServiceCapabilityPanels; use Illuminate\Support\Str; $items = ServiceCapabilityPanels::buildItems($service); @endphp @if(count($items) > 0) @once @push('styles') @endpush @endonce @php $capabilitiesDesc = trim((string) ($service['capabilitiesDesc'] ?? '')); if ($capabilitiesDesc === '') { $capabilitiesDesc = __('messages.service_detail.capabilities_desc', ['service' => strtolower($service['name'] ?? '')]); } @endphp
{{-- Desktop: pinned scroll narrative --}} {{-- Mobile: stacked cards --}}
@foreach($items as $i => $item)

{{ $item['title'] }}

{{ $item['lead'] }}

@if(! empty($item['points']))
@foreach($item['points'] as $point)
@if(! empty($point['label']))

{{ $point['label'] }}

@endif

{{ $point['text'] }}

@endforeach
@endif
@endforeach
@endif @once @push('scripts') @endpush @endonce