@props(['icon' => '', 'active']) @php $classes = "flex flex-col items-center font-bold text-white border-x-4 border-transparent py-5 2xl:flex-row 2xl:gap-6 2xl:p-4 2xl:items-center hover:bg-gray-800/80 cursor-pointer"; $classes_active = "border-s-amber-500 border-e-transparent bg-gray-800/80"; $classes .= $active ? " ".$classes_active : ""; $iconHtml = match($icon) { "fa-home" => '', "fa-wallet" => '', "fa-lock" => '', "fa-industry" => '', "fa-briefcase" => '', "fa-receipt" => '', default => '' } @endphp merge(['class' => $classes]) }} wire:navigate >