env; $__slots['slot'] ??= new \Illuminate\View\ComponentSlot(''); if (($__data['attributes'] ?? null) instanceof \Illuminate\View\ComponentAttributeBag) { $__data = $__data + $__data['attributes']->all(); unset($__data['attributes']); } extract($__slots, EXTR_SKIP); unset($__slots); extract($__data, EXTR_SKIP); $attributes = \Livewire\Blaze\Runtime\BlazeAttributeBag::make($__data, $__bound, $__keys); unset($__data, $__bound, $__keys); ob_start(); ?> 'button', 'current' => null, 'href' => null, 'as' => null, ]; $type ??= $attributes['type'] ?? $__defaults['type']; unset($attributes['type']); $current ??= $attributes['current'] ?? $__defaults['current']; unset($attributes['current']); $href ??= $attributes['href'] ?? $__defaults['href']; unset($attributes['href']); $as ??= $attributes['as'] ?? $__defaults['as']; unset($attributes['as']); unset($__defaults); ?> merge(['data-current' => $current, 'wire:current.ignore' => true]); } else { $hrefForCurrentDetection = str($href)->startsWith(trim(config('app.url'))) ? (string) str($href)->after(trim(config('app.url'), '/')) : $href; if ($hrefForCurrentDetection === '') $hrefForCurrentDetection = '/'; $requestIs = function ($pattern) { // Support current route detection during Livewire update requests as well... return app('livewire')?->isLivewireRequest() ? str()->is($pattern, app('livewire')->originalPath()) : request()->is($pattern); }; $current = $hrefForCurrentDetection ? $requestIs($hrefForCurrentDetection === '/' ? '/' : trim($hrefForCurrentDetection, '/')) : false; $attributes = $attributes->merge(['data-current' => $current]); } } ?>
>
>