@props(['active']) @php $classes = ($active ?? false) ? 'flex items-center mt-4 py-2 px-6 bg-gray-700 bg-opacity-25 text-gray-100' : 'flex items-center mt-4 py-2 px-6 text-gray-100'; @endphp merge(['class' => $classes]) }}> {{ $icon ?? '' }} {{ $slot }}