@props([
'label' => null,
'icon' => null,
'href' => null,
'active' => false,
'iconPlacement' => 'left',
'iconClass' => null,
])
@php
$tag = $href ? 'a' : 'button';
@endphp
<{{ $tag }} {{ $attributes->merge(['href' => $href])->class(['dropdown-item', 'active' => $active]) }}>
@if ($icon && $iconPlacement === 'left')
@endif
{{ $label ?? $slot }}
@if ($icon && $iconPlacement === 'right')
@endif
{{ $tag }}>