@php($d = $d ?? [])
<section class="vs-section vs-team" id="team">
    <div class="vs-container">
        <div class="vs-head" data-aos="fade-up">
            <h2 class="vs-h2">{{ $d['heading'] ?? '' }}</h2>
            @if(!empty($d['subheading']))<p class="vs-lead">{{ $d['subheading'] }}</p>@endif
        </div>
        <div class="vs-team-grid">
            @foreach(($d['items'] ?? []) as $i => $m)
                <div class="vs-member" data-aos="fade-up" data-aos-delay="{{ ($i % 4) * 70 }}">
                    <div class="vs-member-photo">
                        @if(!empty($m['image']))
                            <img src="{{ $m['image'] }}" alt="{{ $m['name'] ?? '' }}" loading="lazy">
                        @else
                            <i class="fas fa-user-doctor"></i>
                        @endif
                    </div>
                    <h3 class="vs-member-name">{{ $m['name'] ?? '' }}</h3>
                    <p class="vs-member-role">{{ $m['role'] ?? '' }}</p>
                </div>
            @endforeach
        </div>
    </div>
</section>
