Files
WMS/storage/framework/views/cb96a141fef49d1dded67365a39bb17c.php
T
2026-06-10 15:17:30 +01:00

152 lines
11 KiB
PHP
Executable File

<?php
if (!function_exists('_cb96a141fef49d1dded67365a39bb17c')):
function _cb96a141fef49d1dded67365a39bb17c($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
$__env = $__blaze->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();
?>
<?php $iconTrailing ??= $attributes->pluck('icon:trailing'); ?>
<?php $iconVariant ??= $attributes->pluck('icon:variant'); ?>
<?php
$__awareDefaults = [ 'variant' ];
$variant = $__blaze->getConsumableData('variant'); unset($attributes['variant']);
unset($__awareDefaults);
?>
<?php
$__defaults = [
'iconVariant' => 'outline',
'iconTrailing' => null,
'badgeColor' => null,
'variant' => null,
'iconDot' => null,
'accent' => true,
'badge' => null,
'icon' => null,
];
$iconVariant ??= $attributes['icon-variant'] ?? $attributes['iconVariant'] ?? $__defaults['iconVariant']; unset($attributes['iconVariant'], $attributes['icon-variant']);
$iconTrailing ??= $attributes['icon-trailing'] ?? $attributes['iconTrailing'] ?? $__defaults['iconTrailing']; unset($attributes['iconTrailing'], $attributes['icon-trailing']);
$badgeColor ??= $attributes['badge-color'] ?? $attributes['badgeColor'] ?? $__defaults['badgeColor']; unset($attributes['badgeColor'], $attributes['badge-color']);
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
$iconDot ??= $attributes['icon-dot'] ?? $attributes['iconDot'] ?? $__defaults['iconDot']; unset($attributes['iconDot'], $attributes['icon-dot']);
$accent ??= $attributes['accent'] ?? $__defaults['accent']; unset($attributes['accent']);
$badge ??= $attributes['badge'] ?? $__defaults['badge']; unset($attributes['badge']);
$icon ??= $attributes['icon'] ?? $__defaults['icon']; unset($attributes['icon']);
unset($__defaults);
?>
<?php
// Button should be a square if it has no text contents...
$square ??= $slot->isEmpty();
// Size-up icons in square/icon-only buttons...
$iconClasses = Flux::classes($square ? 'size-5!' : 'size-4!');
$classes = Flux::classes()
->add('h-10 lg:h-8 relative flex items-center gap-3 rounded-lg')
->add($square ? 'px-2.5!' : '')
->add('py-0 text-start w-full px-3 my-px')
->add('text-zinc-500 dark:text-white/80')
->add(match ($variant) {
'outline' => match ($accent) {
true => [
'data-current:text-(--color-accent-content) hover:data-current:text-(--color-accent-content)',
'data-current:bg-white dark:data-current:bg-white/[7%] data-current:border data-current:border-zinc-200 dark:data-current:border-transparent',
'hover:text-zinc-800 dark:hover:text-white dark:hover:bg-white/[7%] hover:bg-zinc-800/5 ',
'border border-transparent',
],
false => [
'data-current:text-zinc-800 dark:data-current:text-zinc-100 data-current:border-zinc-200',
'data-current:bg-white dark:data-current:bg-white/10 data-current:border data-current:border-zinc-200 dark:data-current:border-white/10 data-current:shadow-xs',
'hover:text-zinc-800 dark:hover:text-white',
],
},
default => match ($accent) {
true => [
'data-current:text-(--color-accent-content) hover:data-current:text-(--color-accent-content)',
'data-current:bg-zinc-800/[4%] dark:data-current:bg-white/[7%]',
'hover:text-zinc-800 dark:hover:text-white hover:bg-zinc-800/[4%] dark:hover:bg-white/[7%]',
],
false => [
'data-current:text-zinc-800 dark:data-current:text-zinc-100',
'data-current:bg-zinc-800/[4%] dark:data-current:bg-white/10',
'hover:text-zinc-800 dark:hover:text-white hover:bg-zinc-800/[4%] dark:hover:bg-white/10',
],
},
})
;
?>
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Concepts/WMS_Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button-or-link.blade.php', $__blaze->compiledPath.'/cb898fdd3947cf78eb4438b240cdf4de.php'); ?>
<?php if (isset($__slotscb898fdd3947cf78eb4438b240cdf4de)) { $__slotsStackcb898fdd3947cf78eb4438b240cdf4de[] = $__slotscb898fdd3947cf78eb4438b240cdf4de; } ?>
<?php if (isset($__attrscb898fdd3947cf78eb4438b240cdf4de)) { $__attrsStackcb898fdd3947cf78eb4438b240cdf4de[] = $__attrscb898fdd3947cf78eb4438b240cdf4de; } ?>
<?php $__attrscb898fdd3947cf78eb4438b240cdf4de = ['attributes' => $attributes->class($classes),'dataFluxNavlistItem' => true]; ?>
<?php $__slotscb898fdd3947cf78eb4438b240cdf4de = []; ?>
<?php $__blaze->pushData($__attrscb898fdd3947cf78eb4438b240cdf4de); ?>
<?php ob_start(); ?>
<?php if ($icon): ?>
<div class="relative">
<?php if (is_string($icon) && $icon !== ''): ?>
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['icon' => $icon, 'variant' => $iconVariant, 'class' => $iconClasses]); ?><?php if ($blaze_memoized_key !== null && \Livewire\Blaze\Memoizer\Memo::has($blaze_memoized_key)) : ?><?php echo \Livewire\Blaze\Memoizer\Memo::get($blaze_memoized_key); ?><?php else : ?><?php ob_start(); ?><?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Concepts/WMS_Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/1a8b14bbfd4d1ccfc09a3006a01ef8d8.php'); ?>
<?php $__blaze->pushData(['icon' => $icon,'variant' => $iconVariant,'class' => $iconClasses]); ?>
<?php _1a8b14bbfd4d1ccfc09a3006a01ef8d8($__blaze, ['icon' => $icon,'variant' => $iconVariant,'class' => $iconClasses], [], ['icon', 'variant'], [], $__this ?? (isset($this) ? $this : null)); ?>
<?php $__blaze->popData(); ?><?php $blaze_memoized_html = ob_get_clean(); ?><?php if ($blaze_memoized_key !== null) { \Livewire\Blaze\Memoizer\Memo::put($blaze_memoized_key, $blaze_memoized_html); } ?><?php echo $blaze_memoized_html; ?><?php endif; ?>
<?php else: ?>
<?php echo e($icon); ?>
<?php endif; ?>
<?php if ($iconDot): ?>
<div class="absolute top-[-2px] end-[-2px]">
<div class="size-[6px] rounded-full bg-zinc-500 dark:bg-zinc-400"></div>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
<?php if ($slot->isNotEmpty()): ?>
<div class="flex-1 text-sm font-medium leading-none whitespace-nowrap [[data-nav-footer]_&]:hidden [[data-nav-sidebar]_[data-nav-footer]_&]:block" data-content><?php echo e($slot); ?></div>
<?php endif; ?>
<?php if (is_string($iconTrailing) && $iconTrailing !== ''): ?>
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['icon' => $iconTrailing, 'variant' => $iconVariant, 'class' => 'size-4!']); ?><?php if ($blaze_memoized_key !== null && \Livewire\Blaze\Memoizer\Memo::has($blaze_memoized_key)) : ?><?php echo \Livewire\Blaze\Memoizer\Memo::get($blaze_memoized_key); ?><?php else : ?><?php ob_start(); ?><?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Concepts/WMS_Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/1a8b14bbfd4d1ccfc09a3006a01ef8d8.php'); ?>
<?php $__blaze->pushData(['icon' => $iconTrailing,'variant' => $iconVariant,'class' => 'size-4!']); ?>
<?php _1a8b14bbfd4d1ccfc09a3006a01ef8d8($__blaze, ['icon' => $iconTrailing,'variant' => $iconVariant,'class' => 'size-4!'], [], ['icon', 'variant'], [], $__this ?? (isset($this) ? $this : null)); ?>
<?php $__blaze->popData(); ?><?php $blaze_memoized_html = ob_get_clean(); ?><?php if ($blaze_memoized_key !== null) { \Livewire\Blaze\Memoizer\Memo::put($blaze_memoized_key, $blaze_memoized_html); } ?><?php echo $blaze_memoized_html; ?><?php endif; ?>
<?php elseif ($iconTrailing): ?>
<?php echo e($iconTrailing); ?>
<?php endif; ?>
<?php if (isset($badge) && $badge !== ''): ?>
<?php $badgeAttributes = Flux::attributesAfter('badge:', $attributes, ['color' => $badgeColor]); ?>
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Concepts/WMS_Core/vendor/livewire/flux/src/../stubs/resources/views/flux/navlist/badge.blade.php', $__blaze->compiledPath.'/b2eaf527888cff247c1194008f860f3c.php'); ?>
<?php if (isset($__slotsb2eaf527888cff247c1194008f860f3c)) { $__slotsStackb2eaf527888cff247c1194008f860f3c[] = $__slotsb2eaf527888cff247c1194008f860f3c; } ?>
<?php if (isset($__attrsb2eaf527888cff247c1194008f860f3c)) { $__attrsStackb2eaf527888cff247c1194008f860f3c[] = $__attrsb2eaf527888cff247c1194008f860f3c; } ?>
<?php $__attrsb2eaf527888cff247c1194008f860f3c = ['attributes' => $badgeAttributes]; ?>
<?php $__slotsb2eaf527888cff247c1194008f860f3c = []; ?>
<?php $__blaze->pushData($__attrsb2eaf527888cff247c1194008f860f3c); ?>
<?php ob_start(); ?><?php echo e($badge); ?><?php $__slotsb2eaf527888cff247c1194008f860f3c['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
<?php $__blaze->pushSlots($__slotsb2eaf527888cff247c1194008f860f3c); ?>
<?php _b2eaf527888cff247c1194008f860f3c($__blaze, $__attrsb2eaf527888cff247c1194008f860f3c, $__slotsb2eaf527888cff247c1194008f860f3c, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
<?php if (! empty($__slotsStackb2eaf527888cff247c1194008f860f3c)) { $__slotsb2eaf527888cff247c1194008f860f3c = array_pop($__slotsStackb2eaf527888cff247c1194008f860f3c); } ?>
<?php if (! empty($__attrsStackb2eaf527888cff247c1194008f860f3c)) { $__attrsb2eaf527888cff247c1194008f860f3c = array_pop($__attrsStackb2eaf527888cff247c1194008f860f3c); } ?>
<?php $__blaze->popData(); ?>
<?php endif; ?>
<?php $__slotscb898fdd3947cf78eb4438b240cdf4de['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
<?php $__blaze->pushSlots($__slotscb898fdd3947cf78eb4438b240cdf4de); ?>
<?php _cb898fdd3947cf78eb4438b240cdf4de($__blaze, $__attrscb898fdd3947cf78eb4438b240cdf4de, $__slotscb898fdd3947cf78eb4438b240cdf4de, ['attributes', 'dataFluxNavlistItem'], ['dataFluxNavlistItem' => 'data-flux-navlist-item'], $__this ?? (isset($this) ? $this : null)); ?>
<?php if (! empty($__slotsStackcb898fdd3947cf78eb4438b240cdf4de)) { $__slotscb898fdd3947cf78eb4438b240cdf4de = array_pop($__slotsStackcb898fdd3947cf78eb4438b240cdf4de); } ?>
<?php if (! empty($__attrsStackcb898fdd3947cf78eb4438b240cdf4de)) { $__attrscb898fdd3947cf78eb4438b240cdf4de = array_pop($__attrsStackcb898fdd3947cf78eb4438b240cdf4de); } ?>
<?php $__blaze->popData(); ?>
<?php
echo ltrim(ob_get_clean());
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/vendor/livewire/flux/src/../stubs/resources/views/flux/navlist/item.blade.php ENDPATH**/ ?>