54 lines
1.7 KiB
PHP
Executable File
54 lines
1.7 KiB
PHP
Executable File
<?php
|
|
if (!function_exists('_2b50f1ba4461c6565361e1b333f98ee8')):
|
|
function _2b50f1ba4461c6565361e1b333f98ee8($__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
|
|
extract(Flux::forwardedAttributes($attributes, [
|
|
'type',
|
|
'href',
|
|
'as',
|
|
]));
|
|
?>
|
|
|
|
<?php
|
|
$__defaults = [
|
|
'type' => 'button',
|
|
'href' => null,
|
|
'as' => null,
|
|
];
|
|
$type ??= $attributes['type'] ?? $__defaults['type']; unset($attributes['type']);
|
|
$href ??= $attributes['href'] ?? $__defaults['href']; unset($attributes['href']);
|
|
$as ??= $attributes['as'] ?? $__defaults['as']; unset($attributes['as']);
|
|
unset($__defaults);
|
|
?>
|
|
|
|
<?php if ($as === 'div' && ! $href): ?>
|
|
<div <?php echo e($attributes); ?>>
|
|
<?php echo e($slot); ?>
|
|
|
|
</div>
|
|
<?php elseif ($as === 'a' || $href): ?>
|
|
|
|
<a href="<?php echo e($href); ?>" <?php echo e($attributes); ?>>
|
|
<?php echo e($slot); ?>
|
|
|
|
</a>
|
|
<?php else: ?>
|
|
<button <?php echo e($attributes->merge(['type' => $type])); ?>>
|
|
<?php echo e($slot); ?>
|
|
|
|
</button>
|
|
<?php endif; ?>
|
|
<?php
|
|
echo ltrim(ob_get_clean());
|
|
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button-or-link-pure.blade.php ENDPATH**/ ?>
|