@php $active_sections = get_active_sections(); @endphp @extends('layouts.homepage') @section('content') @if (count($active_sections)) @foreach ($active_sections as $item) @php $section = 'includes.' . Str::replace('_', '-', $item); @endphp @include($section) @endforeach @endif @endsection