@php
    $ts = themeService()->boot();
    $section = $ts->section('benefits');
    if (!$section) return;
    $settings = $ts->settings('benefits');
    $count = $settings['items_count'] ?? 4;
@endphp

<div class="container-fluid-lg">
    <div class="service-section">
        <div class="row g-3">
            <div class="col-12">
                <div class="service-contain">
                    @for($i = 1; $i <= $count; $i++)
                        @php
                            $icon = $ts->config('benefits', "benefit_{$i}_icon", 'fas fa-star');
                            $text = $ts->trans('benefits', "benefit_{$i}_text");
                        @endphp
                        @if($text)
                        <div class="service-box">
                            <div class="service-image">
                                <i class="{{ $icon }}" style="font-size: 28px;"></i>
                            </div>
                            <div class="service-detail">
                                <h5>{{ $text }}</h5>
                            </div>
                        </div>
                        @endif
                    @endfor
                </div>
            </div>
        </div>
    </div>
</div>
