major update for UI
This commit is contained in:
@@ -28,3 +28,9 @@ package-lock.json
|
||||
composer.lock
|
||||
/provision/
|
||||
/storage/logs/
|
||||
/AGENTS.md
|
||||
.DS_Store
|
||||
*/.DS_Store
|
||||
**/.DS_Store
|
||||
/coverage/
|
||||
/.scannerwork/
|
||||
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
?>
|
||||
# Do Things the Laravel Way
|
||||
|
||||
- Use ___SINGLE_BACKTICK___<?php echo e($assist->artisanCommand('make:')); ?>___SINGLE_BACKTICK___ commands to create new files (i.e. migrations, controllers, models, etc.). You can list available Artisan commands using ___SINGLE_BACKTICK___<?php echo e($assist->artisanCommand('list')); ?>___SINGLE_BACKTICK___ and check their parameters with ___SINGLE_BACKTICK___<?php echo e($assist->artisanCommand('[command] --help')); ?>___SINGLE_BACKTICK___.
|
||||
- If you're creating a generic PHP class, use ___SINGLE_BACKTICK___<?php echo e($assist->artisanCommand('make:class')); ?>___SINGLE_BACKTICK___.
|
||||
- Pass ___SINGLE_BACKTICK___--no-interaction___SINGLE_BACKTICK___ to all Artisan commands to ensure they work without user input. You should also pass the correct ___SINGLE_BACKTICK___--options___SINGLE_BACKTICK___ to ensure correct behavior.
|
||||
|
||||
### Model Creation
|
||||
- When creating new models, create useful factories and seeders for them too. Ask the user if they need any other things, using ___SINGLE_BACKTICK___<?php echo e($assist->artisanCommand('make:model --help')); ?>___SINGLE_BACKTICK___ to check the available options.
|
||||
|
||||
## APIs & Eloquent Resources
|
||||
- For APIs, default to using Eloquent API Resources and API versioning unless existing API routes do not, then you should follow existing application convention.
|
||||
|
||||
## URL Generation
|
||||
- When generating links to other pages, prefer named routes and the ___SINGLE_BACKTICK___route()___SINGLE_BACKTICK___ function.
|
||||
|
||||
## Testing
|
||||
- When creating models for tests, use the factories for the models. Check if the factory has custom states that can be used before manually setting up the model.
|
||||
- Faker: Use methods such as ___SINGLE_BACKTICK___$this->faker->word()___SINGLE_BACKTICK___ or ___SINGLE_BACKTICK___fake()->randomDigit()___SINGLE_BACKTICK___. Follow existing conventions whether to use ___SINGLE_BACKTICK___$this->faker___SINGLE_BACKTICK___ or ___SINGLE_BACKTICK___fake()___SINGLE_BACKTICK___.
|
||||
- When creating tests, make use of ___SINGLE_BACKTICK___<?php echo e($assist->artisanCommand('make:test [options] {name}')); ?>___SINGLE_BACKTICK___ to create a feature test, and pass ___SINGLE_BACKTICK___--unit___SINGLE_BACKTICK___ to create a unit test. Most tests should be feature tests.
|
||||
|
||||
## Vite Error
|
||||
- If you receive an "Illuminate\Foundation\ViteException: Unable to locate file in Vite manifest" error, you can run ___SINGLE_BACKTICK___<?php echo e($assist->nodePackageManagerCommand('run build')); ?>___SINGLE_BACKTICK___ or ask the user to run ___SINGLE_BACKTICK___<?php echo e($assist->nodePackageManagerCommand('run dev')); ?>___SINGLE_BACKTICK___ or ___SINGLE_BACKTICK___<?php echo e($assist->composerCommand('run dev')); ?>___SINGLE_BACKTICK___.
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/storage/framework/views/d1640c796ea7d658f5d537a146d3b49c.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php if (isset($component)) { $__componentOriginal6da4ac82edc751872ca5a34642b398d0 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal6da4ac82edc751872ca5a34642b398d0 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f4ac99e09542ff494432bc959d4fee61::auth.simple','data' => ['title' => $title ?? null]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('layouts::auth.simple'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($title ?? null)]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal6da4ac82edc751872ca5a34642b398d0)): ?>
|
||||
<?php $attributes = $__attributesOriginal6da4ac82edc751872ca5a34642b398d0; ?>
|
||||
<?php unset($__attributesOriginal6da4ac82edc751872ca5a34642b398d0); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal6da4ac82edc751872ca5a34642b398d0)): ?>
|
||||
<?php $component = $__componentOriginal6da4ac82edc751872ca5a34642b398d0; ?>
|
||||
<?php unset($__componentOriginal6da4ac82edc751872ca5a34642b398d0); ?>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/layouts/auth.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,18 @@
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
|
||||
<title>
|
||||
<?php echo e(filled($title ?? null) ? $title.' - '.config('app.name', 'Laravel') : config('app.name', 'Laravel')); ?>
|
||||
|
||||
</title>
|
||||
|
||||
<link rel="icon" href="/favicon.ico" sizes="any">
|
||||
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||
|
||||
<?php echo app('Illuminate\Foundation\Vite')->fonts(); ?>
|
||||
|
||||
<?php echo app('Illuminate\Foundation\Vite')(['resources/css/app.css', 'resources/js/app.js']); ?>
|
||||
<?php echo app('flux')->fluxAppearance(); ?>
|
||||
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/partials/head.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,336 @@
|
||||
<?php
|
||||
if (!function_exists('_0895d97ac72dcf2060e8a83465f0c2ce')):
|
||||
function _0895d97ac72dcf2060e8a83465f0c2ce($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
$errors = $__blaze->errors;
|
||||
$__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 $iconLeading ??= $attributes->pluck('icon:leading'); ?>
|
||||
<?php $iconVariant ??= $attributes->pluck('icon:variant'); ?>
|
||||
<?php $maskDynamic ??= $attributes->pluck('mask:dynamic'); ?>
|
||||
|
||||
<?php
|
||||
$__defaults = [
|
||||
'name' => $attributes->whereStartsWith('wire:model')->first(),
|
||||
'iconVariant' => 'mini',
|
||||
'variant' => 'outline',
|
||||
'iconTrailing' => null,
|
||||
'iconLeading' => null,
|
||||
'maskDynamic' => null,
|
||||
'expandable' => null,
|
||||
'clearable' => null,
|
||||
'copyable' => null,
|
||||
'viewable' => null,
|
||||
'invalid' => null,
|
||||
'loading' => null,
|
||||
'type' => 'text',
|
||||
'mask' => null,
|
||||
'size' => null,
|
||||
'icon' => null,
|
||||
'kbd' => null,
|
||||
'as' => null,
|
||||
];
|
||||
$name ??= $attributes['name'] ?? $__defaults['name']; unset($attributes['name']);
|
||||
$iconVariant ??= $attributes['icon-variant'] ?? $attributes['iconVariant'] ?? $__defaults['iconVariant']; unset($attributes['iconVariant'], $attributes['icon-variant']);
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
$iconTrailing ??= $attributes['icon-trailing'] ?? $attributes['iconTrailing'] ?? $__defaults['iconTrailing']; unset($attributes['iconTrailing'], $attributes['icon-trailing']);
|
||||
$iconLeading ??= $attributes['icon-leading'] ?? $attributes['iconLeading'] ?? $__defaults['iconLeading']; unset($attributes['iconLeading'], $attributes['icon-leading']);
|
||||
$maskDynamic ??= $attributes['mask-dynamic'] ?? $attributes['maskDynamic'] ?? $__defaults['maskDynamic']; unset($attributes['maskDynamic'], $attributes['mask-dynamic']);
|
||||
$expandable ??= $attributes['expandable'] ?? $__defaults['expandable']; unset($attributes['expandable']);
|
||||
$clearable ??= $attributes['clearable'] ?? $__defaults['clearable']; unset($attributes['clearable']);
|
||||
$copyable ??= $attributes['copyable'] ?? $__defaults['copyable']; unset($attributes['copyable']);
|
||||
$viewable ??= $attributes['viewable'] ?? $__defaults['viewable']; unset($attributes['viewable']);
|
||||
$invalid ??= $attributes['invalid'] ?? $__defaults['invalid']; unset($attributes['invalid']);
|
||||
$loading ??= $attributes['loading'] ?? $__defaults['loading']; unset($attributes['loading']);
|
||||
$type ??= $attributes['type'] ?? $__defaults['type']; unset($attributes['type']);
|
||||
$mask ??= $attributes['mask'] ?? $__defaults['mask']; unset($attributes['mask']);
|
||||
$size ??= $attributes['size'] ?? $__defaults['size']; unset($attributes['size']);
|
||||
$icon ??= $attributes['icon'] ?? $__defaults['icon']; unset($attributes['icon']);
|
||||
$kbd ??= $attributes['kbd'] ?? $__defaults['kbd']; unset($attributes['kbd']);
|
||||
$as ??= $attributes['as'] ?? $__defaults['as']; unset($attributes['as']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
$inputAttributes = Flux::attributesAfter('input:', $attributes, []);
|
||||
|
||||
// There are a few loading scenarios that this covers:
|
||||
// If `:loading="false"` then never show loading.
|
||||
// If `:loading="true"` then always show loading.
|
||||
// If `:loading="foo"` then show loading when `foo` request is happening.
|
||||
// If `wire:model` then never show loading.
|
||||
// If `wire:model.live` then show loading when the `wire:model` value request is happening.
|
||||
$wireModel = $attributes->wire('model');
|
||||
$wireTarget = null;
|
||||
|
||||
if ($loading !== false) {
|
||||
if ($loading === true) {
|
||||
$loading = true;
|
||||
} elseif ($wireModel?->directive) {
|
||||
$loading = $wireModel->hasModifier('live');
|
||||
$wireTarget = $loading ? $wireModel->value() : null;
|
||||
} else {
|
||||
$wireTarget = $loading;
|
||||
$loading = (bool) $loading;
|
||||
}
|
||||
}
|
||||
|
||||
$iconLeading ??= $icon;
|
||||
|
||||
$hasLeadingIcon = (bool) ($iconLeading);
|
||||
$countOfTrailingIcons = collect([
|
||||
(bool) $iconTrailing,
|
||||
(bool) $kbd,
|
||||
(bool) $clearable,
|
||||
(bool) $copyable,
|
||||
(bool) $viewable,
|
||||
(bool) $expandable,
|
||||
])->filter()->count();
|
||||
|
||||
$iconClasses = Flux::classes()
|
||||
// When using the outline icon variant, we need to size it down to match the default icon sizes...
|
||||
->add($iconVariant === 'outline' ? 'size-5' : '')
|
||||
;
|
||||
|
||||
$inputLoadingClasses = Flux::classes()
|
||||
// When loading, we need to add some extra padding to the input to account for the loading icon...
|
||||
->add(match ($countOfTrailingIcons) {
|
||||
0 => 'pe-10',
|
||||
1 => 'pe-16',
|
||||
2 => 'pe-23',
|
||||
3 => 'pe-30',
|
||||
4 => 'pe-37',
|
||||
5 => 'pe-44',
|
||||
6 => 'pe-51',
|
||||
})
|
||||
;
|
||||
|
||||
$classes = Flux::classes()
|
||||
->add('w-full border rounded-lg block disabled:shadow-none dark:shadow-none')
|
||||
->add('appearance-none') // Without this, input[type="date"] on mobile doesn't respect w-full...
|
||||
->add(match ($size) {
|
||||
default => 'text-base sm:text-sm py-2 h-10 leading-[1.375rem]', // This makes the height of the input 40px (same as buttons and such...)
|
||||
'sm' => 'text-sm py-1.5 h-8 leading-[1.125rem]',
|
||||
'xs' => 'text-xs py-1.5 h-6 leading-[1.125rem]',
|
||||
})
|
||||
->add(match ($hasLeadingIcon) {
|
||||
true => 'ps-10',
|
||||
false => 'ps-3',
|
||||
})
|
||||
->add(match ($countOfTrailingIcons) {
|
||||
// Make sure there's enough padding on the right side of the input to account for all the icons...
|
||||
0 => 'pe-3',
|
||||
1 => 'pe-10',
|
||||
2 => 'pe-16',
|
||||
3 => 'pe-23',
|
||||
4 => 'pe-30',
|
||||
5 => 'pe-37',
|
||||
6 => 'pe-44',
|
||||
})
|
||||
->add(match ($variant) { // Background...
|
||||
'outline' => 'bg-white dark:bg-white/10 dark:disabled:bg-white/[7%]',
|
||||
'filled' => 'bg-zinc-800/5 dark:bg-white/10 dark:disabled:bg-white/[7%]',
|
||||
})
|
||||
->add(match ($variant) { // Text color
|
||||
'outline' => 'text-zinc-700 disabled:text-zinc-500 placeholder-zinc-400 disabled:placeholder-zinc-400/70 dark:text-zinc-300 dark:disabled:text-zinc-400 dark:placeholder-zinc-400 dark:disabled:placeholder-zinc-500',
|
||||
'filled' => 'text-zinc-700 placeholder-zinc-500 disabled:placeholder-zinc-400 dark:text-zinc-200 dark:placeholder-white/60 dark:disabled:placeholder-white/40',
|
||||
})
|
||||
->add(match ($variant) { // Border...
|
||||
'outline' => 'shadow-xs border-zinc-200 border-b-zinc-300/80 disabled:border-b-zinc-200 dark:border-white/10 dark:disabled:border-white/5',
|
||||
'filled' => 'border-0',
|
||||
})
|
||||
->add(match ($variant) { // Invalid...
|
||||
'outline' => 'data-invalid:shadow-none data-invalid:border-red-500 dark:data-invalid:border-red-500 disabled:data-invalid:border-red-500 dark:disabled:data-invalid:border-red-500',
|
||||
'filled' => 'data-invalid:border-red-500'
|
||||
})
|
||||
->add($attributes->pluck('class:input'))
|
||||
;
|
||||
?>
|
||||
|
||||
<?php if ($type === 'file'): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-field.blade.php', $__blaze->compiledPath.'/6d9b56edd9c9c8e51fa8e057a8020521.php'); ?>
|
||||
<?php if (isset($__slots6d9b56edd9c9c8e51fa8e057a8020521)) { $__slotsStack6d9b56edd9c9c8e51fa8e057a8020521[] = $__slots6d9b56edd9c9c8e51fa8e057a8020521; } ?>
|
||||
<?php if (isset($__attrs6d9b56edd9c9c8e51fa8e057a8020521)) { $__attrsStack6d9b56edd9c9c8e51fa8e057a8020521[] = $__attrs6d9b56edd9c9c8e51fa8e057a8020521; } ?>
|
||||
<?php $__attrs6d9b56edd9c9c8e51fa8e057a8020521 = ['attributes' => $attributes,'name' => $name]; ?>
|
||||
<?php $__slots6d9b56edd9c9c8e51fa8e057a8020521 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs6d9b56edd9c9c8e51fa8e057a8020521); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/file.blade.php', $__blaze->compiledPath.'/1af25dd71f383ab33abb09bcbef1f074.php'); ?>
|
||||
<?php $__blaze->pushData(['attributes' => $attributes,'name' => $name,'size' => $size]); ?>
|
||||
<?php _1af25dd71f383ab33abb09bcbef1f074($__blaze, ['attributes' => $attributes,'name' => $name,'size' => $size], [], ['attributes', 'name', 'size'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php $__slots6d9b56edd9c9c8e51fa8e057a8020521['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots6d9b56edd9c9c8e51fa8e057a8020521); ?>
|
||||
<?php _6d9b56edd9c9c8e51fa8e057a8020521($__blaze, $__attrs6d9b56edd9c9c8e51fa8e057a8020521, $__slots6d9b56edd9c9c8e51fa8e057a8020521, ['attributes', 'name'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack6d9b56edd9c9c8e51fa8e057a8020521)) { $__slots6d9b56edd9c9c8e51fa8e057a8020521 = array_pop($__slotsStack6d9b56edd9c9c8e51fa8e057a8020521); } ?>
|
||||
<?php if (! empty($__attrsStack6d9b56edd9c9c8e51fa8e057a8020521)) { $__attrs6d9b56edd9c9c8e51fa8e057a8020521 = array_pop($__attrsStack6d9b56edd9c9c8e51fa8e057a8020521); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php elseif ($as !== 'button'): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-field.blade.php', $__blaze->compiledPath.'/6d9b56edd9c9c8e51fa8e057a8020521.php'); ?>
|
||||
<?php if (isset($__slots6d9b56edd9c9c8e51fa8e057a8020521)) { $__slotsStack6d9b56edd9c9c8e51fa8e057a8020521[] = $__slots6d9b56edd9c9c8e51fa8e057a8020521; } ?>
|
||||
<?php if (isset($__attrs6d9b56edd9c9c8e51fa8e057a8020521)) { $__attrsStack6d9b56edd9c9c8e51fa8e057a8020521[] = $__attrs6d9b56edd9c9c8e51fa8e057a8020521; } ?>
|
||||
<?php $__attrs6d9b56edd9c9c8e51fa8e057a8020521 = ['attributes' => $attributes,'name' => $name]; ?>
|
||||
<?php $__slots6d9b56edd9c9c8e51fa8e057a8020521 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs6d9b56edd9c9c8e51fa8e057a8020521); ?>
|
||||
<?php ob_start(); ?>
|
||||
<div <?php echo e($attributes->only('class')->class('w-full relative block group/input')); ?> data-flux-input>
|
||||
<?php if (is_string($iconLeading)): ?>
|
||||
<div class="pointer-events-none absolute top-0 bottom-0 border-s border-transparent flex items-center justify-center text-xs text-zinc-400/75 dark:text-white/60 ps-3 start-0">
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['icon' => $iconLeading, '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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconLeading,'variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconLeading,'variant' => $iconVariant,'class' => $iconClasses], [], ['icon', 'variant', 'class'], [], $__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; ?>
|
||||
</div>
|
||||
<?php elseif ($iconLeading): ?>
|
||||
<div <?php echo e($iconLeading->attributes->class('absolute top-0 bottom-0 border-s border-transparent flex items-center justify-center text-xs text-zinc-400/75 dark:text-white/60 ps-3 start-0')); ?>>
|
||||
<?php echo e($iconLeading); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<input
|
||||
type="<?php echo e($type); ?>"
|
||||
|
||||
<?php echo e($attributes->except('class')->class($type === 'file' ? '' : $classes)->merge($inputAttributes->getAttributes())); ?>
|
||||
|
||||
<?php if (isset($name)): ?> name="<?php echo e($name); ?>" <?php endif; ?>
|
||||
<?php if ($maskDynamic): ?> x-mask:dynamic="<?php echo e($maskDynamic); ?>" <?php elseif($mask): ?> x-mask="<?php echo e($mask); ?>" <?php endif; ?>
|
||||
<?php if (is_numeric($size)): ?> size="<?php echo e($size); ?>" <?php endif; ?>
|
||||
<?php $__getScope = fn($scope = []) => $scope; ?><?php if (isset($scope)) $__scope = $scope; ?><?php $scope = $__getScope(scope: ['name' => $name ?? null, 'invalid' => $invalid ?? false]); ?>
|
||||
<?php if ($scope['invalid'] || ($scope['name'] && $errors->has($scope['name']))): ?>
|
||||
aria-invalid="true" data-invalid
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__scope)) { $scope = $__scope; unset($__scope); } ?>
|
||||
data-flux-control
|
||||
data-flux-group-target
|
||||
<?php if($loading): ?> wire:loading.class="<?php echo e($inputLoadingClasses); ?>" <?php endif; ?>
|
||||
<?php if($loading && $wireTarget): ?> wire:target="<?php echo e($wireTarget); ?>" <?php endif; ?>
|
||||
>
|
||||
|
||||
<?php if ($loading || $countOfTrailingIcons > 0): ?>
|
||||
<div class="absolute top-0 bottom-0 flex items-center gap-x-1.5 pe-2 border-e border-transparent end-0 text-xs text-zinc-400">
|
||||
|
||||
<?php if ($loading): ?>
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['name' => 'loading', 'variant' => $iconVariant, 'class' => $iconClasses, 'wire:loading' => true, 'wire:target' => $wireTarget]); ?><?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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['name' => 'loading','variant' => $iconVariant,'class' => $iconClasses,'wire:loading' => true,'wire:target' => $wireTarget]); ?>
|
||||
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['name' => 'loading','variant' => $iconVariant,'class' => $iconClasses,'wire:loading' => true,'wire:target' => $wireTarget], [], ['variant', 'class', 'wire:loading', 'wire:target'], [], $__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 endif; ?>
|
||||
|
||||
<?php if ($clearable): ?>
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::input.clearable", ['inset' => 'left right', 'size' => $size, 'iconVariant' => $iconVariant]); ?><?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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/clearable.blade.php', $__blaze->compiledPath.'/84a2e4415c1c11eab19cc6a05501a0bd.php'); ?>
|
||||
<?php $__blaze->pushData(['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant]); ?>
|
||||
<?php _84a2e4415c1c11eab19cc6a05501a0bd($__blaze, ['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant], [], ['size', 'iconVariant'], [], $__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 endif; ?>
|
||||
|
||||
<?php if ($kbd): ?>
|
||||
<span class="pointer-events-none"><?php echo e($kbd); ?></span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($expandable): ?>
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::input.expandable", ['inset' => 'left right', 'size' => $size, 'iconVariant' => $iconVariant]); ?><?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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/expandable.blade.php', $__blaze->compiledPath.'/877a95db7960dd6ae78021ffec6adb87.php'); ?>
|
||||
<?php $__blaze->pushData(['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant]); ?>
|
||||
<?php _877a95db7960dd6ae78021ffec6adb87($__blaze, ['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant], [], ['size', 'iconVariant'], [], $__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 endif; ?>
|
||||
|
||||
<?php if ($copyable): ?>
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::input.copyable", ['inset' => 'left right', 'size' => $size, 'iconVariant' => $iconVariant]); ?><?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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/copyable.blade.php', $__blaze->compiledPath.'/76e1656858e94ddaad1f897a68c28367.php'); ?>
|
||||
<?php $__blaze->pushData(['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant]); ?>
|
||||
<?php _76e1656858e94ddaad1f897a68c28367($__blaze, ['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant], [], ['size', 'iconVariant'], [], $__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 endif; ?>
|
||||
|
||||
<?php if ($viewable): ?>
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::input.viewable", ['inset' => 'left right', 'size' => $size, 'iconVariant' => $iconVariant]); ?><?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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/viewable.blade.php', $__blaze->compiledPath.'/dc0eeb96929c474f4cdb0a82144f2e63.php'); ?>
|
||||
<?php $__blaze->pushData(['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant]); ?>
|
||||
<?php _dc0eeb96929c474f4cdb0a82144f2e63($__blaze, ['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant], [], ['size', 'iconVariant'], [], $__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 endif; ?>
|
||||
|
||||
<?php if (is_string($iconTrailing)): ?>
|
||||
<?php
|
||||
$trailingIconClasses = clone $iconClasses;
|
||||
$trailingIconClasses->add('text-zinc-400/75 dark:text-white/60 pointer-events-none');
|
||||
?>
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['icon' => $iconTrailing, 'variant' => $iconVariant, 'class' => $trailingIconClasses]); ?><?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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $trailingIconClasses]); ?>
|
||||
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $trailingIconClasses], [], ['icon', 'variant', 'class'], [], $__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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php $__slots6d9b56edd9c9c8e51fa8e057a8020521['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots6d9b56edd9c9c8e51fa8e057a8020521); ?>
|
||||
<?php _6d9b56edd9c9c8e51fa8e057a8020521($__blaze, $__attrs6d9b56edd9c9c8e51fa8e057a8020521, $__slots6d9b56edd9c9c8e51fa8e057a8020521, ['attributes', 'name'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack6d9b56edd9c9c8e51fa8e057a8020521)) { $__slots6d9b56edd9c9c8e51fa8e057a8020521 = array_pop($__slotsStack6d9b56edd9c9c8e51fa8e057a8020521); } ?>
|
||||
<?php if (! empty($__attrsStack6d9b56edd9c9c8e51fa8e057a8020521)) { $__attrs6d9b56edd9c9c8e51fa8e057a8020521 = array_pop($__attrsStack6d9b56edd9c9c8e51fa8e057a8020521); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php else: ?>
|
||||
<button <?php echo e($attributes->merge(['type' => 'button'])->class([$classes, 'w-full relative flex'])); ?>>
|
||||
<?php if (is_string($iconLeading)): ?>
|
||||
<div class="absolute top-0 bottom-0 flex items-center justify-center text-xs text-zinc-400/75 ps-3 start-0">
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['icon' => $iconLeading, '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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconLeading,'variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconLeading,'variant' => $iconVariant,'class' => $iconClasses], [], ['icon', 'variant', 'class'], [], $__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; ?>
|
||||
</div>
|
||||
<?php elseif ($iconLeading): ?>
|
||||
<div <?php echo e($iconLeading->attributes->class('absolute top-0 bottom-0 flex items-center justify-center text-xs text-zinc-400/75 ps-3 start-0')); ?>>
|
||||
<?php echo e($iconLeading); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($attributes->has('placeholder')): ?>
|
||||
<div class="block self-center text-start flex-1 font-medium text-zinc-400 dark:text-white/40">
|
||||
<?php echo e($attributes->get('placeholder')); ?>
|
||||
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="text-start self-center flex-1 font-medium text-zinc-800 dark:text-white">
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($kbd): ?>
|
||||
<div class="absolute top-0 bottom-0 flex items-center justify-center text-xs text-zinc-400/75 pe-4 end-0">
|
||||
<?php echo e($kbd); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (is_string($iconTrailing)): ?>
|
||||
<div class="absolute top-0 bottom-0 flex items-center justify-center text-xs text-zinc-400/75 pe-3 end-0">
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['icon' => $iconTrailing, '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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $iconClasses], [], ['icon', 'variant', 'class'], [], $__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; ?>
|
||||
</div>
|
||||
<?php elseif ($iconTrailing): ?>
|
||||
<div <?php echo e($iconTrailing->attributes->class('absolute top-0 bottom-0 flex items-center justify-center text-xs text-zinc-400/75 pe-2 end-0')); ?>>
|
||||
<?php echo e($iconTrailing); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
echo ltrim(ob_get_clean());
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,90 @@
|
||||
<?php if (isset($component)) { $__componentOriginal81a506f898233b9e7d58286e6bea3c18 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal81a506f898233b9e7d58286e6bea3c18 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f4ac99e09542ff494432bc959d4fee61::app','data' => ['title' => __('Platform')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('layouts::app'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Platform'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<div class="space-y-6">
|
||||
<section class="overflow-hidden rounded-3xl bg-gradient-to-br from-slate-950 via-slate-900 to-cyan-950 p-6 text-white shadow-xl sm:p-8">
|
||||
<div class="flex flex-col gap-6 lg:flex-row lg:items-center lg:justify-between">
|
||||
<div>
|
||||
<p class="text-sm font-semibold uppercase tracking-[0.3em] text-cyan-300">MPBA WMS</p>
|
||||
<h1 class="mt-3 text-3xl font-bold tracking-tight sm:text-5xl">Platform administration</h1>
|
||||
<p class="mt-3 max-w-2xl text-slate-300">Manage tenant companies, licences, payments, warehouses and internal API operations from one resilient control plane.</p>
|
||||
</div>
|
||||
<div class="grid gap-3 sm:min-w-80 sm:grid-cols-2">
|
||||
<div class="rounded-2xl bg-white/10 p-4 backdrop-blur">
|
||||
<p class="text-sm text-slate-300">System status</p>
|
||||
<p class="mt-2 flex items-center gap-2 text-2xl font-bold text-emerald-300">
|
||||
<i class="fa-solid fa-heart-pulse" aria-hidden="true"></i>
|
||||
OK
|
||||
</p>
|
||||
</div>
|
||||
<div class="rounded-2xl bg-white/10 p-4 backdrop-blur">
|
||||
<p class="text-sm text-slate-300">Paid £</p>
|
||||
<p class="mt-2 text-2xl font-bold"><?php echo e(number_format($paymentsTotal / 100, 2)); ?></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="grid gap-4 sm:grid-cols-2 xl:grid-cols-4">
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = [['Companies', $companiesCount], ['Active', $activeCompaniesCount], ['Warehouses', $warehousesCount], ['Licences', $licensesCount]]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as [$label, $value]): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
|
||||
<article class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<p class="text-sm text-zinc-500 dark:text-zinc-400"><?php echo e($label); ?></p>
|
||||
<p class="mt-2 text-3xl font-bold text-zinc-900 dark:text-white"><?php echo e($value); ?></p>
|
||||
</article>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
|
||||
</section>
|
||||
|
||||
<section class="rounded-2xl border border-zinc-200 bg-white shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<div class="flex flex-col gap-3 border-b border-zinc-200 p-5 sm:flex-row sm:items-center sm:justify-between dark:border-zinc-800">
|
||||
<div>
|
||||
<h2 class="text-lg font-semibold text-zinc-900 dark:text-white">Recent companies</h2>
|
||||
<p class="text-sm text-zinc-500">Tenant isolation is enforced by company ownership on every warehouse record.</p>
|
||||
</div>
|
||||
<a href="<?php echo e(route('platform.companies.index')); ?>" class="rounded-lg bg-zinc-900 px-4 py-2 text-sm font-semibold text-white dark:bg-white dark:text-zinc-900">Manage companies</a>
|
||||
</div>
|
||||
<div class="overflow-x-auto">
|
||||
<table class="min-w-full divide-y divide-zinc-200 text-sm dark:divide-zinc-800">
|
||||
<thead class="bg-zinc-50 dark:bg-zinc-950">
|
||||
<tr>
|
||||
<th class="px-5 py-3 text-left font-semibold">Company</th>
|
||||
<th class="px-5 py-3 text-left font-semibold">Users</th>
|
||||
<th class="px-5 py-3 text-left font-semibold">Warehouses</th>
|
||||
<th class="px-5 py-3 text-left font-semibold">Licences</th>
|
||||
<th class="px-5 py-3 text-left font-semibold">Status</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody class="divide-y divide-zinc-200 dark:divide-zinc-800">
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $companies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $company): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
|
||||
<tr>
|
||||
<td class="px-5 py-4 font-medium"><?php echo e($company->name); ?></td>
|
||||
<td class="px-5 py-4"><?php echo e($company->users_count); ?></td>
|
||||
<td class="px-5 py-4"><?php echo e($company->warehouses_count); ?></td>
|
||||
<td class="px-5 py-4"><?php echo e($company->license_keys_count); ?></td>
|
||||
<td class="px-5 py-4"><?php echo e($company->is_system_company ? 'System' : ucfirst($company->status)); ?></td>
|
||||
</tr>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal81a506f898233b9e7d58286e6bea3c18)): ?>
|
||||
<?php $attributes = $__attributesOriginal81a506f898233b9e7d58286e6bea3c18; ?>
|
||||
<?php unset($__attributesOriginal81a506f898233b9e7d58286e6bea3c18); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal81a506f898233b9e7d58286e6bea3c18)): ?>
|
||||
<?php $component = $__componentOriginal81a506f898233b9e7d58286e6bea3c18; ?>
|
||||
<?php unset($__componentOriginal81a506f898233b9e7d58286e6bea3c18); ?>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/modules/Platform/Providers/../resources/views/dashboard/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,86 @@
|
||||
<?php
|
||||
if (!function_exists('_0ce2b11ed180c4dc0167f11a527ecb34')):
|
||||
function _0ce2b11ed180c4dc0167f11a527ecb34($__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',
|
||||
'current',
|
||||
'href',
|
||||
'as',
|
||||
]));
|
||||
?>
|
||||
|
||||
<?php
|
||||
$__defaults = [
|
||||
'type' => '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);
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ($as !== 'div' || $href) {
|
||||
if ($current !== null) {
|
||||
// If the user manually specified :current="true/false", we need to stop Livewire from managing
|
||||
// the data-current attribute as it would be automatically added/removed when using wire:navigate...
|
||||
$attributes = $attributes->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]);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<?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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button-or-link.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,245 @@
|
||||
<?php
|
||||
if (!function_exists('_110c1c2a55a80ff8b2b4fbed62b1a7d3')):
|
||||
function _110c1c2a55a80ff8b2b4fbed62b1a7d3($__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 $iconVariant ??= $attributes->pluck('icon:variant'); ?>
|
||||
|
||||
<?php
|
||||
$__defaults = [
|
||||
'iconVariant' => 'solid',
|
||||
'initials' => null,
|
||||
'tooltip' => null,
|
||||
'circle' => null,
|
||||
'color' => null,
|
||||
'badge' => null,
|
||||
'name' => null,
|
||||
'icon' => null,
|
||||
'size' => 'md',
|
||||
'src' => null,
|
||||
'href' => null,
|
||||
'alt' => null,
|
||||
'as' => 'div',
|
||||
];
|
||||
$iconVariant ??= $attributes['icon-variant'] ?? $attributes['iconVariant'] ?? $__defaults['iconVariant']; unset($attributes['iconVariant'], $attributes['icon-variant']);
|
||||
$initials ??= $attributes['initials'] ?? $__defaults['initials']; unset($attributes['initials']);
|
||||
$tooltip ??= $attributes['tooltip'] ?? $__defaults['tooltip']; unset($attributes['tooltip']);
|
||||
$circle ??= $attributes['circle'] ?? $__defaults['circle']; unset($attributes['circle']);
|
||||
$color ??= $attributes['color'] ?? $__defaults['color']; unset($attributes['color']);
|
||||
$badge ??= $attributes['badge'] ?? $__defaults['badge']; unset($attributes['badge']);
|
||||
$name ??= $attributes['name'] ?? $__defaults['name']; unset($attributes['name']);
|
||||
$icon ??= $attributes['icon'] ?? $__defaults['icon']; unset($attributes['icon']);
|
||||
$size ??= $attributes['size'] ?? $__defaults['size']; unset($attributes['size']);
|
||||
$src ??= $attributes['src'] ?? $__defaults['src']; unset($attributes['src']);
|
||||
$href ??= $attributes['href'] ?? $__defaults['href']; unset($attributes['href']);
|
||||
$alt ??= $attributes['alt'] ?? $__defaults['alt']; unset($attributes['alt']);
|
||||
$as ??= $attributes['as'] ?? $__defaults['as']; unset($attributes['as']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ($name && ! $initials) {
|
||||
$parts = explode(' ', trim($name));
|
||||
|
||||
if ($attributes->pluck('initials:single')) {
|
||||
$initials = strtoupper(mb_substr($parts[0], 0, 1));
|
||||
} else {
|
||||
// Remove empty strings from the array...
|
||||
$parts = collect($parts)->filter()->values()->all();
|
||||
|
||||
if (count($parts) > 1) {
|
||||
$initials = strtoupper(mb_substr($parts[0], 0, 1) . mb_substr($parts[1], 0, 1));
|
||||
} else if (count($parts) === 1) {
|
||||
$initials = strtoupper(mb_substr($parts[0], 0, 1)) . strtolower(mb_substr($parts[0], 1, 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ($name && $tooltip === true) {
|
||||
$tooltip = $name;
|
||||
}
|
||||
|
||||
$hasTextContent = $icon ?? $initials ?? $slot->isNotEmpty();
|
||||
|
||||
// If there's no text content, we'll fallback to using the user icon otherwise there will be an empty white square...
|
||||
if (! $hasTextContent) {
|
||||
$icon = 'user';
|
||||
$hasTextContent = true;
|
||||
}
|
||||
|
||||
// Be careful not to change the order of these colors.
|
||||
// They're used in the hash function below and changing them would change actual user avatar colors that they might have grown to identify with.
|
||||
$colors = ['red', 'orange', 'amber', 'yellow', 'lime', 'green', 'emerald', 'teal', 'cyan', 'sky', 'blue', 'indigo', 'violet', 'purple', 'fuchsia', 'pink', 'rose'];
|
||||
|
||||
if ($hasTextContent && $color === 'auto') {
|
||||
$colorSeed = $attributes->pluck('color:seed') ?? $name ?? $icon ?? $initials ?? $slot;
|
||||
$hash = crc32((string) $colorSeed);
|
||||
$color = $colors[$hash % count($colors)];
|
||||
}
|
||||
|
||||
$classes = Flux::classes()
|
||||
->add(match($size) {
|
||||
'xl' => '[:where(&)]:size-16 [:where(&)]:text-base',
|
||||
'lg' => '[:where(&)]:size-12 [:where(&)]:text-base',
|
||||
default => '[:where(&)]:size-10 [:where(&)]:text-sm',
|
||||
'sm' => '[:where(&)]:size-8 [:where(&)]:text-sm',
|
||||
'xs' => '[:where(&)]:size-6 [:where(&)]:text-xs',
|
||||
})
|
||||
->add($circle ? '[--avatar-radius:calc(infinity*1px)]' : match($size) {
|
||||
'xl' => '[--avatar-radius:var(--radius-xl)]',
|
||||
'lg' => '[--avatar-radius:var(--radius-lg)]',
|
||||
default => '[--avatar-radius:var(--radius-lg)]',
|
||||
'sm' => '[--avatar-radius:var(--radius-md)]',
|
||||
'xs' => '[--avatar-radius:var(--radius-sm)]',
|
||||
})
|
||||
->add('relative flex-none isolate flex items-center justify-center')
|
||||
->add('[:where(&)]:font-medium')
|
||||
->add('rounded-[var(--avatar-radius)]')
|
||||
->add($hasTextContent ? '[:where(&)]:bg-zinc-200 [:where(&)]:dark:bg-zinc-600 [:where(&)]:text-zinc-800 [:where(&)]:dark:text-white' : '')
|
||||
->add(match($color) {
|
||||
'red' => 'bg-red-200 text-red-800',
|
||||
'orange' => 'bg-orange-200 text-orange-800',
|
||||
'amber' => 'bg-amber-200 text-amber-800',
|
||||
'yellow' => 'bg-yellow-200 text-yellow-800',
|
||||
'lime' => 'bg-lime-200 text-lime-800',
|
||||
'green' => 'bg-green-200 text-green-800',
|
||||
'emerald' => 'bg-emerald-200 text-emerald-800',
|
||||
'teal' => 'bg-teal-200 text-teal-800',
|
||||
'cyan' => 'bg-cyan-200 text-cyan-800',
|
||||
'sky' => 'bg-sky-200 text-sky-800',
|
||||
'blue' => 'bg-blue-200 text-blue-800',
|
||||
'indigo' => 'bg-indigo-200 text-indigo-800',
|
||||
'violet' => 'bg-violet-200 text-violet-800',
|
||||
'purple' => 'bg-purple-200 text-purple-800',
|
||||
'fuchsia' => 'bg-fuchsia-200 text-fuchsia-800',
|
||||
'pink' => 'bg-pink-200 text-pink-800',
|
||||
'rose' => 'bg-rose-200 text-rose-800',
|
||||
default => '',
|
||||
})
|
||||
->add(true ? [
|
||||
'after:absolute after:inset-0 after:inset-ring-[1px] after:inset-ring-black/7 dark:after:inset-ring-white/10',
|
||||
$circle ? 'after:rounded-full' : match($size) {
|
||||
'xl' => 'after:rounded-xl',
|
||||
'lg' => 'after:rounded-lg',
|
||||
default => 'after:rounded-lg',
|
||||
'sm' => 'after:rounded-md',
|
||||
'xs' => 'after:rounded-sm',
|
||||
},
|
||||
] : []);
|
||||
|
||||
$iconClasses = Flux::classes()
|
||||
->add('opacity-75')
|
||||
->add(match($size) {
|
||||
'lg' => 'size-8',
|
||||
default => 'size-6',
|
||||
'sm' => 'size-5',
|
||||
'xs' => 'size-4',
|
||||
});
|
||||
|
||||
$badgeColor = $attributes->pluck('badge:color') ?: (is_object($badge) ? $badge?->attributes?->pluck('color') : null);
|
||||
$badgeCircle = $attributes->pluck('badge:circle') ?: (is_object($badge) ? $badge?->attributes?->pluck('circle') : null);
|
||||
$badgePosition = $attributes->pluck('badge:position') ?: (is_object($badge) ? $badge?->attributes?->pluck('position') : null);
|
||||
$badgeVariant = $attributes->pluck('badge:variant') ?: (is_object($badge) ? $badge?->attributes?->pluck('variant') : null);
|
||||
|
||||
$badgeClasses = Flux::classes()
|
||||
->add('absolute ring-[2px] ring-white dark:ring-zinc-900 z-10')
|
||||
->add(match($size) {
|
||||
default => 'h-3 min-w-3',
|
||||
'sm' => 'h-2 min-w-2',
|
||||
'xs' => 'h-2 min-w-2',
|
||||
})
|
||||
->add('flex items-center justify-center tabular-nums overflow-hidden')
|
||||
->add('text-[.625rem] text-zinc-800 dark:text-white font-medium')
|
||||
->add($badgeCircle ? 'rounded-full' : 'rounded-[3px]')
|
||||
->add($badgeVariant === 'outline' ? [
|
||||
'after:absolute after:inset-[3px] after:bg-white dark:after:bg-zinc-900',
|
||||
$badgeCircle ? 'after:rounded-full' : 'after:rounded-[1px]',
|
||||
] : [])
|
||||
->add(match($badgePosition) {
|
||||
'top left' => 'top-0 left-0',
|
||||
'top right' => 'top-0 right-0',
|
||||
'bottom left' => 'bottom-0 left-0',
|
||||
'bottom right' => 'bottom-0 right-0',
|
||||
default => 'bottom-0 right-0',
|
||||
})
|
||||
->add(match($badgeColor) {
|
||||
'red' => 'bg-red-500 dark:bg-red-400',
|
||||
'orange' => 'bg-orange-500 dark:bg-orange-400',
|
||||
'amber' => 'bg-amber-500 dark:bg-amber-400',
|
||||
'yellow' => 'bg-yellow-500 dark:bg-yellow-400',
|
||||
'lime' => 'bg-lime-500 dark:bg-lime-400',
|
||||
'green' => 'bg-green-500 dark:bg-green-400',
|
||||
'emerald' => 'bg-emerald-500 dark:bg-emerald-400',
|
||||
'teal' => 'bg-teal-500 dark:bg-teal-400',
|
||||
'cyan' => 'bg-cyan-500 dark:bg-cyan-400',
|
||||
'sky' => 'bg-sky-500 dark:bg-sky-400',
|
||||
'blue' => 'bg-blue-500 dark:bg-blue-400',
|
||||
'indigo' => 'bg-indigo-500 dark:bg-indigo-400',
|
||||
'violet' => 'bg-violet-500 dark:bg-violet-400',
|
||||
'purple' => 'bg-purple-500 dark:bg-purple-400',
|
||||
'fuchsia' => 'bg-fuchsia-500 dark:bg-fuchsia-400',
|
||||
'pink' => 'bg-pink-500 dark:bg-pink-400',
|
||||
'rose' => 'bg-rose-500 dark:bg-rose-400',
|
||||
'zinc' => 'bg-zinc-400 dark:bg-zinc-300',
|
||||
'gray' => 'bg-zinc-400 dark:bg-zinc-300',
|
||||
default => 'bg-white dark:bg-zinc-900',
|
||||
})
|
||||
;
|
||||
|
||||
$label = $alt ?? $name;
|
||||
?>
|
||||
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-tooltip.blade.php', $__blaze->compiledPath.'/3e67020b08ceeca960cbb88b2dabc310.php'); ?>
|
||||
<?php if (isset($__slots3e67020b08ceeca960cbb88b2dabc310)) { $__slotsStack3e67020b08ceeca960cbb88b2dabc310[] = $__slots3e67020b08ceeca960cbb88b2dabc310; } ?>
|
||||
<?php if (isset($__attrs3e67020b08ceeca960cbb88b2dabc310)) { $__attrsStack3e67020b08ceeca960cbb88b2dabc310[] = $__attrs3e67020b08ceeca960cbb88b2dabc310; } ?>
|
||||
<?php $__attrs3e67020b08ceeca960cbb88b2dabc310 = ['tooltip' => $tooltip,'attributes' => $attributes]; ?>
|
||||
<?php $__slots3e67020b08ceeca960cbb88b2dabc310 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs3e67020b08ceeca960cbb88b2dabc310); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button-or-link.blade.php', $__blaze->compiledPath.'/0ce2b11ed180c4dc0167f11a527ecb34.php'); ?>
|
||||
<?php if (isset($__slots0ce2b11ed180c4dc0167f11a527ecb34)) { $__slotsStack0ce2b11ed180c4dc0167f11a527ecb34[] = $__slots0ce2b11ed180c4dc0167f11a527ecb34; } ?>
|
||||
<?php if (isset($__attrs0ce2b11ed180c4dc0167f11a527ecb34)) { $__attrsStack0ce2b11ed180c4dc0167f11a527ecb34[] = $__attrs0ce2b11ed180c4dc0167f11a527ecb34; } ?>
|
||||
<?php $__attrs0ce2b11ed180c4dc0167f11a527ecb34 = ['attributes' => $attributes->class($classes)->merge($circle ? ['data-circle' => 'true'] : []),'as' => $as,'href' => $href,'dataFluxAvatar' => true,'dataSlot' => 'avatar','dataSize' => e($size)]; ?>
|
||||
<?php $__slots0ce2b11ed180c4dc0167f11a527ecb34 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs0ce2b11ed180c4dc0167f11a527ecb34); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php if ($src): ?>
|
||||
<img src="<?php echo e($src); ?>" alt="<?php echo e($alt ?? $name); ?>" class="rounded-[var(--avatar-radius)] size-full object-cover">
|
||||
<?php elseif ($icon): ?>
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['name' => $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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['name' => $icon,'variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['name' => $icon,'variant' => $iconVariant,'class' => $iconClasses], [], ['name', 'variant', 'class'], [], $__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 ($hasTextContent): ?>
|
||||
<span class="select-none"><?php echo e($initials ?? $slot); ?></span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($badge instanceof \Illuminate\View\ComponentSlot): ?>
|
||||
<div <?php echo e($badge->attributes->class($badgeClasses)); ?> aria-hidden="true"><?php echo e($badge); ?></div>
|
||||
<?php elseif ($badge): ?>
|
||||
<div class="<?php echo e($badgeClasses); ?>" aria-hidden="true"><?php echo e(is_string($badge) ? $badge : ''); ?></div>
|
||||
<?php endif; ?>
|
||||
<?php $__slots0ce2b11ed180c4dc0167f11a527ecb34['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots0ce2b11ed180c4dc0167f11a527ecb34); ?>
|
||||
<?php _0ce2b11ed180c4dc0167f11a527ecb34($__blaze, $__attrs0ce2b11ed180c4dc0167f11a527ecb34, $__slots0ce2b11ed180c4dc0167f11a527ecb34, ['attributes', 'as', 'href', 'dataFluxAvatar'], ['dataFluxAvatar' => 'data-flux-avatar', 'dataSlot' => 'data-slot', 'dataSize' => 'data-size'], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack0ce2b11ed180c4dc0167f11a527ecb34)) { $__slots0ce2b11ed180c4dc0167f11a527ecb34 = array_pop($__slotsStack0ce2b11ed180c4dc0167f11a527ecb34); } ?>
|
||||
<?php if (! empty($__attrsStack0ce2b11ed180c4dc0167f11a527ecb34)) { $__attrs0ce2b11ed180c4dc0167f11a527ecb34 = array_pop($__attrsStack0ce2b11ed180c4dc0167f11a527ecb34); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php $__slots3e67020b08ceeca960cbb88b2dabc310['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots3e67020b08ceeca960cbb88b2dabc310); ?>
|
||||
<?php _3e67020b08ceeca960cbb88b2dabc310($__blaze, $__attrs3e67020b08ceeca960cbb88b2dabc310, $__slots3e67020b08ceeca960cbb88b2dabc310, ['tooltip', 'attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack3e67020b08ceeca960cbb88b2dabc310)) { $__slots3e67020b08ceeca960cbb88b2dabc310 = array_pop($__slotsStack3e67020b08ceeca960cbb88b2dabc310); } ?>
|
||||
<?php if (! empty($__attrsStack3e67020b08ceeca960cbb88b2dabc310)) { $__attrs3e67020b08ceeca960cbb88b2dabc310 = array_pop($__attrsStack3e67020b08ceeca960cbb88b2dabc310); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php
|
||||
echo ltrim(ob_get_clean());
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/avatar/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php if (isset($component)) { $__componentOriginal81a506f898233b9e7d58286e6bea3c18 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal81a506f898233b9e7d58286e6bea3c18 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f4ac99e09542ff494432bc959d4fee61::app','data' => ['title' => __('Warehouses')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('layouts::app'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Warehouses'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<div class="space-y-6">
|
||||
<div class="rounded-3xl bg-white p-6 shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
||||
<h1 class="text-2xl font-bold">Warehouses</h1>
|
||||
<form method="POST" action="<?php echo e(route('warehouses.store')); ?>" class="mt-5 grid gap-4 md:grid-cols-4">
|
||||
<?php echo csrf_field(); ?>
|
||||
<input name="code" placeholder="Code" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||
<input name="name" placeholder="Warehouse name" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||
<input name="address" placeholder="Address" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||
<button class="rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Create</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="grid gap-4 md:grid-cols-2 xl:grid-cols-3">
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $warehouses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $warehouse): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
|
||||
<article class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900"><p class="text-sm text-cyan-600"><?php echo e($warehouse->code); ?></p><h2 class="mt-1 text-xl font-bold"><?php echo e($warehouse->name); ?></h2><p class="mt-3 text-sm text-zinc-500"><?php echo e($warehouse->validation_rules_count); ?> rules</p></article>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
|
||||
</div>
|
||||
<?php echo e($warehouses->links()); ?>
|
||||
|
||||
</div>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal81a506f898233b9e7d58286e6bea3c18)): ?>
|
||||
<?php $attributes = $__attributesOriginal81a506f898233b9e7d58286e6bea3c18; ?>
|
||||
<?php unset($__attributesOriginal81a506f898233b9e7d58286e6bea3c18); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal81a506f898233b9e7d58286e6bea3c18)): ?>
|
||||
<?php $component = $__componentOriginal81a506f898233b9e7d58286e6bea3c18; ?>
|
||||
<?php unset($__componentOriginal81a506f898233b9e7d58286e6bea3c18); ?>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/modules/Warehouse/Providers/../resources/views/warehouses/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
?>
|
||||
# Laravel Pint Code Formatter
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($assist->supportsPintAgentFormatter()): ?>
|
||||
- If you have modified any PHP files, you must run ___SINGLE_BACKTICK___<?php echo e($assist->binCommand('pint')); ?> --dirty --format agent___SINGLE_BACKTICK___ before finalizing changes to ensure your code matches the project's expected style.
|
||||
- Do not run ___SINGLE_BACKTICK___<?php echo e($assist->binCommand('pint')); ?> --test --format agent___SINGLE_BACKTICK___, simply run ___SINGLE_BACKTICK___<?php echo e($assist->binCommand('pint')); ?> --format agent___SINGLE_BACKTICK___ to fix any formatting issues.
|
||||
<?php else: ?>
|
||||
- If you have modified any PHP files, you must run ___SINGLE_BACKTICK___<?php echo e($assist->binCommand('pint')); ?> --dirty___SINGLE_BACKTICK___ before finalizing changes to ensure your code matches the project's expected style.
|
||||
- Do not run ___SINGLE_BACKTICK___<?php echo e($assist->binCommand('pint')); ?> --test___SINGLE_BACKTICK___, simply run ___SINGLE_BACKTICK___<?php echo e($assist->binCommand('pint')); ?>___SINGLE_BACKTICK___ to fix any formatting issues.
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/storage/framework/views/2b3b75ec9892892981b355f1d066492b.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php if (isset($component)) { $__componentOriginal81a506f898233b9e7d58286e6bea3c18 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal81a506f898233b9e7d58286e6bea3c18 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f4ac99e09542ff494432bc959d4fee61::app','data' => ['title' => __('WMS Dashboard')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('layouts::app'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('WMS Dashboard'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<div class="space-y-6">
|
||||
<section class="overflow-hidden rounded-3xl bg-gradient-to-br from-slate-950 via-slate-900 to-cyan-950 p-6 text-white shadow-xl sm:p-8">
|
||||
<div class="flex flex-col gap-6 lg:flex-row lg:items-center lg:justify-between">
|
||||
<div>
|
||||
<p class="text-sm font-semibold uppercase tracking-[0.3em] text-cyan-300">Warehouse management</p>
|
||||
<h1 class="mt-3 text-3xl font-bold tracking-tight sm:text-5xl"><?php echo e(auth()->user()->company->name); ?></h1>
|
||||
<p class="mt-3 max-w-2xl text-slate-300">High-performance tenant-isolated warehouse operations with per-warehouse validation and licence-aware access.</p>
|
||||
</div>
|
||||
<div class="grid grid-cols-2 gap-3 sm:min-w-80">
|
||||
<div class="rounded-2xl bg-white/10 p-4 backdrop-blur"><p class="text-sm text-slate-300">Warehouses</p><p class="mt-2 text-3xl font-bold"><?php echo e($warehousesCount); ?></p></div>
|
||||
<div class="rounded-2xl bg-white/10 p-4 backdrop-blur"><p class="text-sm text-slate-300">Rules</p><p class="mt-2 text-3xl font-bold"><?php echo e($rulesCount); ?></p></div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="grid gap-4 md:grid-cols-2 xl:grid-cols-3">
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__empty_1 = true; $__currentLoopData = $warehouses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $warehouse): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
|
||||
<article class="rounded-2xl border border-zinc-200 bg-white p-5 shadow-sm dark:border-zinc-800 dark:bg-zinc-900">
|
||||
<div class="flex items-start justify-between gap-4"><div><p class="text-sm font-semibold text-cyan-600"><?php echo e($warehouse->code); ?></p><h2 class="mt-1 text-xl font-bold"><?php echo e($warehouse->name); ?></h2></div><span class="rounded-full bg-emerald-100 px-3 py-1 text-xs font-semibold text-emerald-800"><?php echo e($warehouse->status); ?></span></div>
|
||||
<p class="mt-4 text-sm text-zinc-500"><?php echo e($warehouse->validation_rules_count); ?> validation rules configured.</p>
|
||||
</article>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
|
||||
<article class="rounded-2xl border border-dashed border-zinc-300 bg-white p-8 text-center dark:border-zinc-800 dark:bg-zinc-900 md:col-span-2 xl:col-span-3"><h2 class="text-xl font-bold">Create your first warehouse</h2><p class="mt-2 text-zinc-500">Warehouses are isolated to your company tenant.</p><a href="<?php echo e(route('warehouses.index')); ?>" class="mt-5 inline-flex rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Add warehouse</a></article>
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</section>
|
||||
</div>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal81a506f898233b9e7d58286e6bea3c18)): ?>
|
||||
<?php $attributes = $__attributesOriginal81a506f898233b9e7d58286e6bea3c18; ?>
|
||||
<?php unset($__attributesOriginal81a506f898233b9e7d58286e6bea3c18); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal81a506f898233b9e7d58286e6bea3c18)): ?>
|
||||
<?php $component = $__componentOriginal81a506f898233b9e7d58286e6bea3c18; ?>
|
||||
<?php unset($__componentOriginal81a506f898233b9e7d58286e6bea3c18); ?>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/modules/Warehouse/Providers/../resources/views/warehouses/dashboard.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,152 @@
|
||||
<?php
|
||||
if (!function_exists('_1f71139a782d8d14d022079614a36d1c')):
|
||||
function _1f71139a782d8d14d022079614a36d1c($__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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button-or-link.blade.php', $__blaze->compiledPath.'/0ce2b11ed180c4dc0167f11a527ecb34.php'); ?>
|
||||
<?php if (isset($__slots0ce2b11ed180c4dc0167f11a527ecb34)) { $__slotsStack0ce2b11ed180c4dc0167f11a527ecb34[] = $__slots0ce2b11ed180c4dc0167f11a527ecb34; } ?>
|
||||
<?php if (isset($__attrs0ce2b11ed180c4dc0167f11a527ecb34)) { $__attrsStack0ce2b11ed180c4dc0167f11a527ecb34[] = $__attrs0ce2b11ed180c4dc0167f11a527ecb34; } ?>
|
||||
<?php $__attrs0ce2b11ed180c4dc0167f11a527ecb34 = ['attributes' => $attributes->class($classes),'dataFluxNavlistItem' => true]; ?>
|
||||
<?php $__slots0ce2b11ed180c4dc0167f11a527ecb34 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs0ce2b11ed180c4dc0167f11a527ecb34); ?>
|
||||
<?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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $icon,'variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconTrailing,'variant' => $iconVariant,'class' => 'size-4!']); ?>
|
||||
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/navlist/badge.blade.php', $__blaze->compiledPath.'/d6f0e8f201ea668d6d5f2ae1e30f6d6e.php'); ?>
|
||||
<?php if (isset($__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e)) { $__slotsStackd6f0e8f201ea668d6d5f2ae1e30f6d6e[] = $__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e; } ?>
|
||||
<?php if (isset($__attrsd6f0e8f201ea668d6d5f2ae1e30f6d6e)) { $__attrsStackd6f0e8f201ea668d6d5f2ae1e30f6d6e[] = $__attrsd6f0e8f201ea668d6d5f2ae1e30f6d6e; } ?>
|
||||
<?php $__attrsd6f0e8f201ea668d6d5f2ae1e30f6d6e = ['attributes' => $badgeAttributes]; ?>
|
||||
<?php $__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e = []; ?>
|
||||
<?php $__blaze->pushData($__attrsd6f0e8f201ea668d6d5f2ae1e30f6d6e); ?>
|
||||
<?php ob_start(); ?><?php echo e($badge); ?><?php $__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__blaze->pushSlots($__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e); ?>
|
||||
<?php _d6f0e8f201ea668d6d5f2ae1e30f6d6e($__blaze, $__attrsd6f0e8f201ea668d6d5f2ae1e30f6d6e, $__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStackd6f0e8f201ea668d6d5f2ae1e30f6d6e)) { $__slotsd6f0e8f201ea668d6d5f2ae1e30f6d6e = array_pop($__slotsStackd6f0e8f201ea668d6d5f2ae1e30f6d6e); } ?>
|
||||
<?php if (! empty($__attrsStackd6f0e8f201ea668d6d5f2ae1e30f6d6e)) { $__attrsd6f0e8f201ea668d6d5f2ae1e30f6d6e = array_pop($__attrsStackd6f0e8f201ea668d6d5f2ae1e30f6d6e); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php endif; ?>
|
||||
<?php $__slots0ce2b11ed180c4dc0167f11a527ecb34['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots0ce2b11ed180c4dc0167f11a527ecb34); ?>
|
||||
<?php _0ce2b11ed180c4dc0167f11a527ecb34($__blaze, $__attrs0ce2b11ed180c4dc0167f11a527ecb34, $__slots0ce2b11ed180c4dc0167f11a527ecb34, ['attributes', 'dataFluxNavlistItem'], ['dataFluxNavlistItem' => 'data-flux-navlist-item'], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack0ce2b11ed180c4dc0167f11a527ecb34)) { $__slots0ce2b11ed180c4dc0167f11a527ecb34 = array_pop($__slotsStack0ce2b11ed180c4dc0167f11a527ecb34); } ?>
|
||||
<?php if (! empty($__attrsStack0ce2b11ed180c4dc0167f11a527ecb34)) { $__attrs0ce2b11ed180c4dc0167f11a527ecb34 = array_pop($__attrsStack0ce2b11ed180c4dc0167f11a527ecb34); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php
|
||||
echo ltrim(ob_get_clean());
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/navlist/item.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php # [BlazeFolded]:{flux::text}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/text.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::text}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/text.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::button}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::button}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php}:{1776985208} ?>
|
||||
<?php if (isset($component)) { $__componentOriginal08b8a564843783787e0bee3357e24f38 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal08b8a564843783787e0bee3357e24f38 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f4ac99e09542ff494432bc959d4fee61::auth','data' => ['title' => __('Email verification')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('layouts::auth'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Email verification'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<div class="mt-4 flex flex-col gap-6">
|
||||
<?php ob_start(); ?><p class="[:where(&)]:font-normal [:where(&)]:text-sm [:where(&)]:text-zinc-500 [:where(&)]:dark:text-white/70 text-center" data-flux-text ><?php ob_start(); ?>
|
||||
<?php echo e(__('Please verify your email address by clicking on the link we just emailed to you.')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?></p><?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('status') == 'verification-link-sent'): ?>
|
||||
<?php ob_start(); ?><p class="[:where(&)]:font-normal [:where(&)]:text-sm [:where(&)]:text-zinc-500 [:where(&)]:dark:text-white/70 text-center font-medium !dark:text-green-400 !text-green-600" data-flux-text ><?php ob_start(); ?>
|
||||
<?php echo e(__('A new verification link has been sent to the email address you provided during registration.')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?></p><?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
|
||||
<div class="flex flex-col items-center justify-between space-y-3">
|
||||
<form method="POST" action="<?php echo e(route('verification.send')); ?>">
|
||||
<?php echo csrf_field(); ?>
|
||||
<?php ob_start(); ?><button type="submit" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-10 text-sm rounded-lg ps-4 pe-4 inline-flex bg-[var(--color-accent)] hover:bg-[color-mix(in_oklab,_var(--color-accent),_transparent_10%)] text-[var(--color-accent-foreground)] border border-black/10 dark:border-0 shadow-[inset_0px_1px_--theme(--color-white/.2)] [[data-flux-button-group]_&]:border-e-0 [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-[1px] dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-s-[1px] [:is([data-flux-button-group]>&:not(:first-child),_[data-flux-button-group]_:not(:first-child)>&)]:border-s-[color-mix(in_srgb,var(--color-accent-foreground),transparent_85%)] *:transition-opacity [&[disabled]>:not([data-flux-loading-indicator])]:opacity-0 [&[disabled]>[data-flux-loading-indicator]]:opacity-100 [&[disabled]]:pointer-events-none w-full" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target">
|
||||
<div class="absolute inset-0 flex items-center justify-center opacity-0" data-flux-loading-indicator>
|
||||
<svg class="shrink-0 [:where(&)]:size-4 animate-spin" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
|
||||
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
||||
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<span><?php ob_start(); ?>
|
||||
<?php echo e(__('Resend verification email')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?></span>
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</form>
|
||||
|
||||
<form method="POST" action="<?php echo e(route('logout')); ?>">
|
||||
<?php echo csrf_field(); ?>
|
||||
<?php ob_start(); ?><button type="submit" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-10 text-sm rounded-lg ps-4 pe-4 inline-flex bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-800 dark:text-white *:transition-opacity [&[disabled]>:not([data-flux-loading-indicator])]:opacity-0 [&[disabled]>[data-flux-loading-indicator]]:opacity-100 [&[disabled]]:pointer-events-none text-sm cursor-pointer" data-flux-button="data-flux-button" data-test="logout-button">
|
||||
<div class="absolute inset-0 flex items-center justify-center opacity-0" data-flux-loading-indicator>
|
||||
<svg class="shrink-0 [:where(&)]:size-4 animate-spin" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
|
||||
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
||||
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<span><?php ob_start(); ?>
|
||||
<?php echo e(__('Log out')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?></span>
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal08b8a564843783787e0bee3357e24f38)): ?>
|
||||
<?php $attributes = $__attributesOriginal08b8a564843783787e0bee3357e24f38; ?>
|
||||
<?php unset($__attributesOriginal08b8a564843783787e0bee3357e24f38); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal08b8a564843783787e0bee3357e24f38)): ?>
|
||||
<?php $component = $__componentOriginal08b8a564843783787e0bee3357e24f38; ?>
|
||||
<?php unset($__componentOriginal08b8a564843783787e0bee3357e24f38); ?>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/livewire/auth/verify-email.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,12 @@
|
||||
@php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
@endphp
|
||||
# Laravel Pint Code Formatter
|
||||
|
||||
@if($assist->supportsPintAgentFormatter())
|
||||
- If you have modified any PHP files, you must run ___SINGLE_BACKTICK___{{ $assist->binCommand('pint') }} --dirty --format agent___SINGLE_BACKTICK___ before finalizing changes to ensure your code matches the project's expected style.
|
||||
- Do not run ___SINGLE_BACKTICK___{{ $assist->binCommand('pint') }} --test --format agent___SINGLE_BACKTICK___, simply run ___SINGLE_BACKTICK___{{ $assist->binCommand('pint') }} --format agent___SINGLE_BACKTICK___ to fix any formatting issues.
|
||||
@else
|
||||
- If you have modified any PHP files, you must run ___SINGLE_BACKTICK___{{ $assist->binCommand('pint') }} --dirty___SINGLE_BACKTICK___ before finalizing changes to ensure your code matches the project's expected style.
|
||||
- Do not run ___SINGLE_BACKTICK___{{ $assist->binCommand('pint') }} --test___SINGLE_BACKTICK___, simply run ___SINGLE_BACKTICK___{{ $assist->binCommand('pint') }}___SINGLE_BACKTICK___ to fix any formatting issues.
|
||||
@endif
|
||||
@@ -0,0 +1,3 @@
|
||||
# Deployment
|
||||
|
||||
- Laravel can be deployed using [Laravel Cloud](https://cloud.laravel.com/), which is the fastest way to deploy and scale production Laravel applications.
|
||||
@@ -0,0 +1,125 @@
|
||||
<?php # [BlazeFolded]:{flux::text}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/text.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::button}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::text}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/text.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::button}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::button}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php}:{1776985208} ?>
|
||||
<?php
|
||||
$__assetKey = '1913343547-0';
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
<?php echo app('Illuminate\Foundation\Vite')('resources/js/passkeys.js'); ?>
|
||||
<?php
|
||||
$__output = ob_get_clean();
|
||||
|
||||
// If the asset has already been loaded anywhere during this request, skip it...
|
||||
if (in_array($__assetKey, \Livewire\Features\SupportScriptsAndAssets\SupportScriptsAndAssets::$alreadyRunAssetKeys)) {
|
||||
// Skip it...
|
||||
} else {
|
||||
\Livewire\Features\SupportScriptsAndAssets\SupportScriptsAndAssets::$alreadyRunAssetKeys[] = $__assetKey;
|
||||
|
||||
// Check if we're in a Livewire component or not and store the asset accordingly...
|
||||
if (isset($this)) {
|
||||
\Livewire\store($this)->push('assets', $__output, $__assetKey);
|
||||
} else {
|
||||
\Livewire\Features\SupportScriptsAndAssets\SupportScriptsAndAssets::$nonLivewireAssets[$__assetKey] = $__output;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<div
|
||||
x-data="{
|
||||
supported: false,
|
||||
showForm: false,
|
||||
name: '',
|
||||
loading: false,
|
||||
error: null,
|
||||
updateSupport() {
|
||||
this.supported = Boolean(window.Passkeys?.isSupported());
|
||||
},
|
||||
init() {
|
||||
this.updateSupport();
|
||||
|
||||
window.addEventListener('passkeys:ready', () => this.updateSupport(), { once: true });
|
||||
},
|
||||
async register() {
|
||||
if (!this.name.trim()) return;
|
||||
|
||||
this.loading = true;
|
||||
this.error = null;
|
||||
|
||||
try {
|
||||
await window.Passkeys.register({ name: this.name });
|
||||
this.name = '';
|
||||
this.showForm = false;
|
||||
await $wire.loadPasskeys();
|
||||
} catch (e) {
|
||||
if (e.constructor?.name !== 'UserCancelledError') {
|
||||
this.error = e.message;
|
||||
}
|
||||
} finally {
|
||||
this.loading = false;
|
||||
}
|
||||
},
|
||||
cancel() {
|
||||
this.showForm = false;
|
||||
this.name = '';
|
||||
this.error = null;
|
||||
},
|
||||
}"
|
||||
>
|
||||
<template x-if="!supported">
|
||||
<?php ob_start(); ?><p class="[:where(&)]:font-normal [:where(&)]:text-sm [:where(&)]:text-zinc-500 [:where(&)]:dark:text-white/70" data-flux-text ><?php ob_start(); ?><?php echo e(__('Passkeys are not supported in this browser.')); ?><?php echo trim(ob_get_clean()); ?></p><?php echo ltrim(ob_get_clean()); ?>
|
||||
</template>
|
||||
|
||||
<template x-if="supported && !showForm">
|
||||
<div>
|
||||
<?php ob_start(); ?><button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-10 text-sm rounded-lg ps-3 pe-4 inline-flex bg-[var(--color-accent)] hover:bg-[color-mix(in_oklab,_var(--color-accent),_transparent_10%)] text-[var(--color-accent-foreground)] border border-black/10 dark:border-0 shadow-[inset_0px_1px_--theme(--color-white/.2)] [[data-flux-button-group]_&]:border-e-0 [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-[1px] dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-s-[1px] [:is([data-flux-button-group]>&:not(:first-child),_[data-flux-button-group]_:not(:first-child)>&)]:border-s-[color-mix(in_srgb,var(--color-accent-foreground),transparent_85%)]" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" x-on:click="showForm = true">
|
||||
<svg class="shrink-0 [:where(&)]:size-4" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M8.75 3.75a.75.75 0 0 0-1.5 0v3.5h-3.5a.75.75 0 0 0 0 1.5h3.5v3.5a.75.75 0 0 0 1.5 0v-3.5h3.5a.75.75 0 0 0 0-1.5h-3.5v-3.5Z"/>
|
||||
</svg>
|
||||
|
||||
|
||||
|
||||
|
||||
<span><?php ob_start(); ?>
|
||||
<?php echo e(__('Add passkey')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?></span>
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<template x-if="supported && showForm">
|
||||
<div class="space-y-4 rounded-lg border border-zinc-200 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-800/50 p-4">
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/index.blade.php', $__blaze->compiledPath.'/0895d97ac72dcf2060e8a83465f0c2ce.php'); ?>
|
||||
<?php $__blaze->pushData(['label' => e(__('Passkey name')),'xModel' => 'name','placeholder' => e(__('e.g., MacBook Pro, iPhone')),'xOn:keydown.enter.prevent' => 'register()','xRef' => 'passkeyNameInput','xInit' => '$nextTick(() => $refs.passkeyNameInput?.focus())']); ?>
|
||||
<?php _0895d97ac72dcf2060e8a83465f0c2ce($__blaze, ['label' => e(__('Passkey name')),'xModel' => 'name','placeholder' => e(__('e.g., MacBook Pro, iPhone')),'xOn:keydown.enter.prevent' => 'register()','xRef' => 'passkeyNameInput','xInit' => '$nextTick(() => $refs.passkeyNameInput?.focus())'], [], [], ['xModel' => 'x-model', 'xOn:keydown.enter.prevent' => 'x-on:keydown.enter.prevent', 'xRef' => 'x-ref', 'xInit' => 'x-init'], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php ob_start(); ?><p class="[:where(&)]:font-normal [:where(&)]:text-sm [:where(&)]:text-zinc-500 [:where(&)]:dark:text-white/70 !mt-1" data-flux-text ><?php ob_start(); ?><?php echo e(__('Give this passkey a name to help you identify it later.')); ?><?php echo trim(ob_get_clean()); ?></p><?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<p x-show="error" x-text="error" x-cloak class="text-sm text-red-600 dark:text-red-400"></p>
|
||||
|
||||
<div class="flex gap-2">
|
||||
<?php ob_start(); ?><button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-10 text-sm rounded-lg ps-4 pe-4 inline-flex bg-[var(--color-accent)] hover:bg-[color-mix(in_oklab,_var(--color-accent),_transparent_10%)] text-[var(--color-accent-foreground)] border border-black/10 dark:border-0 shadow-[inset_0px_1px_--theme(--color-white/.2)] [[data-flux-button-group]_&]:border-e-0 [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-[1px] dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-s-[1px] [:is([data-flux-button-group]>&:not(:first-child),_[data-flux-button-group]_:not(:first-child)>&)]:border-s-[color-mix(in_srgb,var(--color-accent-foreground),transparent_85%)]" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" x-on:click="register()" x-bind:disabled="loading || !name.trim()">
|
||||
<?php ob_start(); ?>
|
||||
<span x-show="!loading"><?php echo e(__('Register passkey')); ?></span>
|
||||
<span x-show="loading" x-cloak><?php echo e(__('Registering...')); ?></span>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php ob_start(); ?><button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-10 text-sm rounded-lg ps-4 pe-4 inline-flex bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-800 dark:text-white" data-flux-button="data-flux-button" x-on:click="cancel()">
|
||||
<?php ob_start(); ?>
|
||||
<?php echo e(__('Cancel')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/components/passkey-registration.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php if (isset($component)) { $__componentOriginal81a506f898233b9e7d58286e6bea3c18 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal81a506f898233b9e7d58286e6bea3c18 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f4ac99e09542ff494432bc959d4fee61::app','data' => ['title' => __('Validation Rules')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('layouts::app'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Validation Rules'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<div class="space-y-6">
|
||||
<div class="rounded-3xl bg-white p-6 shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
||||
<h1 class="text-2xl font-bold">Warehouse validation rules</h1>
|
||||
<form method="POST" action="<?php echo e(route('warehouse-rules.store')); ?>" class="mt-5 grid gap-4 md:grid-cols-6">
|
||||
<?php echo csrf_field(); ?>
|
||||
<select name="warehouse_id" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950"><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $warehouses; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $warehouse): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?><option value="<?php echo e($warehouse->id); ?>"><?php echo e($warehouse->name); ?></option><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?></select>
|
||||
<input name="name" placeholder="Rule name" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||
<input name="rule_key" placeholder="stock.location.required" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||
<select name="severity" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950"><option>error</option><option>warning</option><option>blocker</option><option>info</option></select>
|
||||
<input name="configuration" placeholder='{"min": 1}' class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||
<button class="rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Add rule</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="overflow-x-auto rounded-2xl bg-white shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800"><table class="min-w-full text-sm"><thead><tr class="border-b"><th class="p-4 text-left">Warehouse</th><th class="p-4 text-left">Rule</th><th class="p-4 text-left">Key</th><th class="p-4 text-left">Severity</th></tr></thead><tbody><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $rules; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rule): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?><tr class="border-b border-zinc-100 dark:border-zinc-800"><td class="p-4"><?php echo e($rule->warehouse->name); ?></td><td class="p-4 font-semibold"><?php echo e($rule->name); ?></td><td class="p-4"><code><?php echo e($rule->rule_key); ?></code></td><td class="p-4"><?php echo e($rule->severity); ?></td></tr><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?></tbody></table></div>
|
||||
<?php echo e($rules->links()); ?>
|
||||
|
||||
</div>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal81a506f898233b9e7d58286e6bea3c18)): ?>
|
||||
<?php $attributes = $__attributesOriginal81a506f898233b9e7d58286e6bea3c18; ?>
|
||||
<?php unset($__attributesOriginal81a506f898233b9e7d58286e6bea3c18); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal81a506f898233b9e7d58286e6bea3c18)): ?>
|
||||
<?php $component = $__componentOriginal81a506f898233b9e7d58286e6bea3c18; ?>
|
||||
<?php unset($__componentOriginal81a506f898233b9e7d58286e6bea3c18); ?>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/modules/Warehouse/Providers/../resources/views/rules/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,4 @@
|
||||
# Deployment
|
||||
|
||||
- Laravel can be deployed using [Laravel Cloud](https://cloud.laravel.com/), which is the fastest way to deploy and scale production Laravel applications.
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/storage/framework/views/2d21c7721a51fb6d42304f35ce55c99a.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,60 @@
|
||||
---
|
||||
name: configuring-horizon
|
||||
description: "Use this skill whenever the user mentions Horizon by name in a Laravel context. Covers the full Horizon lifecycle: installing Horizon (horizon:install, Sail setup), configuring config/horizon.php (supervisor blocks, queue assignments, balancing strategies, minProcesses/maxProcesses), fixing the dashboard (authorization via Gate::define viewHorizon, blank metrics, horizon:snapshot scheduling), and troubleshooting production issues (worker crashes, timeout chain ordering, LongWaitDetected notifications, waits config). Also covers job tagging and silencing. Do not use for generic Laravel queues without Horizon, SQS or database drivers, standalone Redis setup, Linux supervisord, Telescope, or job batching."
|
||||
license: MIT
|
||||
metadata:
|
||||
author: laravel
|
||||
---
|
||||
<?php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
?>
|
||||
# Horizon Configuration
|
||||
|
||||
## Documentation
|
||||
|
||||
Use ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ for detailed Horizon patterns and documentation covering configuration, supervisors, balancing, dashboard authorization, tags, notifications, metrics, and deployment.
|
||||
|
||||
For deeper guidance on specific topics, read the relevant reference file before implementing:
|
||||
|
||||
- ___SINGLE_BACKTICK___references/supervisors.md___SINGLE_BACKTICK___ covers supervisor blocks, balancing strategies, multi-queue setups, and auto-scaling
|
||||
- ___SINGLE_BACKTICK___references/notifications.md___SINGLE_BACKTICK___ covers LongWaitDetected alerts, notification routing, and the ___SINGLE_BACKTICK___waits___SINGLE_BACKTICK___ config
|
||||
- ___SINGLE_BACKTICK___references/tags.md___SINGLE_BACKTICK___ covers job tagging, dashboard filtering, and silencing noisy jobs
|
||||
- ___SINGLE_BACKTICK___references/metrics.md___SINGLE_BACKTICK___ covers the blank metrics dashboard, snapshot scheduling, and retention config
|
||||
|
||||
## Basic Usage
|
||||
|
||||
### Installation
|
||||
|
||||
___SINGLE_BACKTICK______SINGLE_BACKTICK______SINGLE_BACKTICK___bash
|
||||
<?php echo e($assist->artisanCommand('horizon:install')); ?>
|
||||
|
||||
___SINGLE_BACKTICK______SINGLE_BACKTICK______SINGLE_BACKTICK___
|
||||
|
||||
### Supervisor Configuration
|
||||
|
||||
Define supervisors in ___SINGLE_BACKTICK___config/horizon.php___SINGLE_BACKTICK___. The ___SINGLE_BACKTICK___environments___SINGLE_BACKTICK___ array merges into ___SINGLE_BACKTICK___defaults___SINGLE_BACKTICK___ and does not replace the whole supervisor block:
|
||||
|
||||
___BOOST_SNIPPET_0___
|
||||
|
||||
### Dashboard Authorization
|
||||
|
||||
Restrict access in ___SINGLE_BACKTICK___App\Providers\HorizonServiceProvider___SINGLE_BACKTICK___:
|
||||
|
||||
___BOOST_SNIPPET_1___
|
||||
|
||||
## Verification
|
||||
|
||||
1. Run ___SINGLE_BACKTICK___<?php echo e($assist->artisanCommand('horizon')); ?>___SINGLE_BACKTICK___ and visit ___SINGLE_BACKTICK___/horizon___SINGLE_BACKTICK___
|
||||
2. Confirm dashboard access is restricted as expected
|
||||
3. Check that metrics populate after scheduling ___SINGLE_BACKTICK___horizon:snapshot___SINGLE_BACKTICK___
|
||||
|
||||
## Common Pitfalls
|
||||
|
||||
- Horizon only works with the Redis queue driver. Other drivers such as database and SQS are not supported.
|
||||
- Redis Cluster is not supported. Horizon requires a standalone Redis connection.
|
||||
- Always check ___SINGLE_BACKTICK___config/horizon.php___SINGLE_BACKTICK___ before making changes to understand the current supervisor and environment configuration.
|
||||
- The ___SINGLE_BACKTICK___environments___SINGLE_BACKTICK___ array overrides only the keys you specify. It merges into ___SINGLE_BACKTICK___defaults___SINGLE_BACKTICK___ and does not replace it.
|
||||
- The timeout chain must be ordered: job ___SINGLE_BACKTICK___timeout___SINGLE_BACKTICK___ less than supervisor ___SINGLE_BACKTICK___timeout___SINGLE_BACKTICK___ less than ___SINGLE_BACKTICK___retry_after___SINGLE_BACKTICK___. The wrong order can cause jobs to be retried before Horizon finishes timing them out.
|
||||
- The metrics dashboard stays blank until ___SINGLE_BACKTICK___horizon:snapshot___SINGLE_BACKTICK___ is scheduled. Running ___SINGLE_BACKTICK___<?php echo e($assist->artisanCommand('horizon')); ?>___SINGLE_BACKTICK___ alone does not populate metrics.
|
||||
- Always use ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ for the latest Horizon documentation rather than relying on this skill alone.
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/storage/framework/views/a75c31620703fd46512c58163b252a63.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,535 @@
|
||||
<?php # [BlazeFolded]:{flux::heading}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/heading.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::text}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/text.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.radio.group}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/radio/group.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.separator}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/separator.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.item}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/item.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.radio.group}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/radio/group.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.separator}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/separator.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.item}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/item.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/index.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::dropdown}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/dropdown.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.item}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/item.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.separator}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/separator.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.item}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/item.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/index.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::dropdown}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/dropdown.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::heading}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/heading.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::text}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/text.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.radio.group}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/radio/group.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.separator}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/separator.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.item}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/item.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.radio.group}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/radio/group.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.separator}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/separator.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu.item}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/item.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::menu}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/index.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::dropdown}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/dropdown.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::toast}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/toast/index.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::toast.group}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/toast/group.blade.php}:{1776985208} ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>" class="dark">
|
||||
<head>
|
||||
<?php echo $__env->make('partials.head', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
|
||||
</head>
|
||||
|
||||
<body class="min-h-screen bg-white text-zinc-950 antialiased dark:bg-zinc-950 dark:text-zinc-100">
|
||||
<div class="wms-app-shell" data-wms-shell>
|
||||
<div class="wms-mobile-overlay" data-wms-mobile-close></div>
|
||||
|
||||
<aside class="wms-sidebar" data-wms-sidebar aria-label="<?php echo e(__('Main navigation')); ?>">
|
||||
<div class="wms-sidebar-header">
|
||||
<a href="<?php echo e(auth()->user()?->isMpbaPlatformAdmin() ? route('platform.dashboard') : route('dashboard')); ?>" wire:navigate class="wms-brand" aria-label="<?php echo e(__('Warehouse Management System')); ?>">
|
||||
<span class="wms-brand-mark">
|
||||
<span class="wms-brand-mark-inner">W</span>
|
||||
</span>
|
||||
|
||||
<span class="wms-brand-copy" data-wms-sidebar-label>
|
||||
<span class="wms-brand-title"><?php echo e(__('Warehouse Management System')); ?></span>
|
||||
<span class="wms-brand-subtitle">MPBA</span>
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="wms-sidebar-toggle"
|
||||
data-wms-sidebar-toggle
|
||||
aria-label="<?php echo e(__('Collapse sidebar')); ?>"
|
||||
aria-expanded="true"
|
||||
>
|
||||
<span class="wms-toggle-expanded">‹</span>
|
||||
<span class="wms-toggle-collapsed">›</span>
|
||||
</button>
|
||||
|
||||
<button
|
||||
type="button"
|
||||
class="wms-mobile-close"
|
||||
data-wms-mobile-close
|
||||
aria-label="<?php echo e(__('Close navigation')); ?>"
|
||||
>
|
||||
×
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<nav class="wms-sidebar-nav" aria-label="<?php echo e(__('Operations')); ?>">
|
||||
<div class="wms-sidebar-group">
|
||||
<div class="wms-sidebar-heading" data-wms-sidebar-label><?php echo e(__('Operations')); ?></div>
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(auth()->user()?->isMpbaPlatformAdmin()): ?>
|
||||
<a href="<?php echo e(route('platform.dashboard')); ?>" wire:navigate class="wms-sidebar-link <?php if(request()->routeIs('platform.dashboard')): ?> is-active <?php endif; ?>" title="<?php echo e(__('Platform')); ?>">
|
||||
<i class="fa-solid fa-screwdriver-wrench wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label><?php echo e(__('Platform')); ?></span>
|
||||
</a>
|
||||
<?php else: ?>
|
||||
<a href="<?php echo e(route('dashboard')); ?>" wire:navigate class="wms-sidebar-link <?php if(request()->routeIs('dashboard')): ?> is-active <?php endif; ?>" title="<?php echo e(__('Dashboard')); ?>">
|
||||
<i class="fa-solid fa-gauge-high wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label><?php echo e(__('Dashboard')); ?></span>
|
||||
</a>
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(auth()->user()?->isMpbaPlatformAdmin()): ?>
|
||||
<div class="wms-sidebar-group">
|
||||
<div class="wms-sidebar-heading" data-wms-sidebar-label><?php echo e(__('Administration')); ?></div>
|
||||
|
||||
<a href="<?php echo e(route('warehouses.index')); ?>" wire:navigate class="wms-sidebar-link <?php if(request()->routeIs('warehouses.*')): ?> is-active <?php endif; ?>" title="<?php echo e(__('Warehouses')); ?>">
|
||||
<i class="fa-solid fa-warehouse wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label><?php echo e(__('Warehouses')); ?></span>
|
||||
</a>
|
||||
<a href="<?php echo e(route('warehouse-rules.index')); ?>" wire:navigate class="wms-sidebar-link <?php if(request()->routeIs('warehouse-rules.*')): ?> is-active <?php endif; ?>" title="<?php echo e(__('Validation Rules')); ?>">
|
||||
<i class="fa-solid fa-shield-halved wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label><?php echo e(__('Validation Rules')); ?></span>
|
||||
</a>
|
||||
<a href="<?php echo e(route('platform.companies.index')); ?>" wire:navigate class="wms-sidebar-link <?php if(request()->routeIs('platform.companies.*')): ?> is-active <?php endif; ?>" title="<?php echo e(__('Companies')); ?>">
|
||||
<i class="fa-solid fa-building wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label><?php echo e(__('Companies')); ?></span>
|
||||
</a>
|
||||
|
||||
<a href="<?php echo e(route('platform.licenses.index')); ?>" wire:navigate class="wms-sidebar-link <?php if(request()->routeIs('platform.licenses.*')): ?> is-active <?php endif; ?>" title="<?php echo e(__('Licences')); ?>">
|
||||
<i class="fa-solid fa-key wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label><?php echo e(__('Licences')); ?></span>
|
||||
</a>
|
||||
|
||||
<a href="<?php echo e(route('platform.payments.index')); ?>" wire:navigate class="wms-sidebar-link <?php if(request()->routeIs('platform.payments.*')): ?> is-active <?php endif; ?>" title="<?php echo e(__('Payments')); ?>">
|
||||
<i class="fa-solid fa-credit-card wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label><?php echo e(__('Payments')); ?></span>
|
||||
</a>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="wms-sidebar-group">
|
||||
<div class="wms-sidebar-heading" data-wms-sidebar-label><?php echo e(__('Administration')); ?></div>
|
||||
|
||||
<a href="<?php echo e(route('warehouses.index')); ?>" wire:navigate class="wms-sidebar-link <?php if(request()->routeIs('warehouses.*')): ?> is-active <?php endif; ?>" title="<?php echo e(__('Warehouses')); ?>">
|
||||
<i class="fa-solid fa-warehouse wms-sidebar-icon" aria-hidden="true"></i>
|
||||
<span data-wms-sidebar-label><?php echo e(__('Warehouses')); ?></span>
|
||||
</a>
|
||||
</div>
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</nav>
|
||||
|
||||
<div class="wms-sidebar-footer">
|
||||
<?php ob_start(); ?><ui-dropdown position="top start" data-flux-dropdown>
|
||||
<?php ob_start(); ?>
|
||||
<button type="button" class="wms-user-card wms-user-card-button" data-wms-sidebar-label>
|
||||
<div class="wms-user-avatar"><?php echo e(auth()->user()?->initials() ?? 'U'); ?></div>
|
||||
<div class="wms-user-copy">
|
||||
<div class="wms-user-name"><?php echo e(auth()->user()?->name ?? __('User')); ?></div>
|
||||
<div class="wms-user-email"><?php echo e(auth()->user()?->email ?? ''); ?></div>
|
||||
</div>
|
||||
<i class="fa-solid fa-chevron-up wms-user-chevron" aria-hidden="true"></i>
|
||||
</button>
|
||||
|
||||
<?php ob_start(); ?><ui-menu
|
||||
class="[:where(&)]:min-w-48 p-[.3125rem] rounded-lg shadow-xs border border-zinc-200 dark:border-zinc-600 bg-white dark:bg-zinc-700 focus:outline-hidden"
|
||||
popover="manual"
|
||||
data-flux-menu
|
||||
>
|
||||
<?php ob_start(); ?>
|
||||
<?php ob_start(); ?><ui-menu-radio-group data-flux-menu-radio-group>
|
||||
<?php ob_start(); ?>
|
||||
<div class="p-0 text-sm font-normal">
|
||||
<div class="flex items-center gap-2 px-1 py-1.5 text-start text-sm">
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::avatar", ['name' => auth()->user()?->name ?? 'User', 'initials' => auth()->user()?->initials() ?? 'U']); ?><?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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/avatar/index.blade.php', $__blaze->compiledPath.'/110c1c2a55a80ff8b2b4fbed62b1a7d3.php'); ?>
|
||||
<?php $__blaze->pushData(['name' => auth()->user()?->name ?? 'User','initials' => auth()->user()?->initials() ?? 'U']); ?>
|
||||
<?php _110c1c2a55a80ff8b2b4fbed62b1a7d3($__blaze, ['name' => auth()->user()?->name ?? 'User','initials' => auth()->user()?->initials() ?? 'U'], [], ['name', 'initials'], [], $__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; ?>
|
||||
|
||||
<div class="grid flex-1 text-start text-sm leading-tight">
|
||||
<?php ob_start(); ?><div class="font-medium [:where(&)]:text-zinc-800 [:where(&)]:dark:text-white text-sm [&:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&]:mt-2 truncate" data-flux-heading><?php ob_start(); ?><?php echo e(auth()->user()?->name ?? __('User')); ?><?php echo trim(ob_get_clean()); ?></div>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php ob_start(); ?><p class="[:where(&)]:font-normal [:where(&)]:text-sm [:where(&)]:text-zinc-500 [:where(&)]:dark:text-white/70 truncate" data-flux-text ><?php ob_start(); ?><?php echo e(auth()->user()?->email ?? ''); ?><?php echo trim(ob_get_clean()); ?></p><?php echo ltrim(ob_get_clean()); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</ui-menu-radio-group>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<?php ob_start(); ?><div class="-mx-[.3125rem] my-[.3125rem] h-px" data-flux-menu-separator>
|
||||
<div data-orientation="horizontal" role="none" class="border-0 [print-color-adjust:exact] bg-zinc-800/15 dark:bg-white/20 h-px w-full dark:bg-zinc-600!" data-flux-separator></div>
|
||||
</div>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<?php ob_start(); ?><ui-menu-radio-group data-flux-menu-radio-group>
|
||||
<?php ob_start(); ?>
|
||||
<?php ob_start(); ?><a href="<?php echo e(route('profile.edit')); ?>" data-flux-menu-item="data-flux-menu-item" data-flux-menu-item-has-icon="data-flux-menu-item-has-icon" class="flex items-center px-2 py-1.5 w-full focus:outline-hidden rounded-md text-start text-sm font-medium [&[disabled]]:opacity-50 text-zinc-800 data-active:bg-zinc-50 dark:text-white dark:data-active:bg-zinc-600 **:data-flux-menu-item-icon:text-zinc-400 dark:**:data-flux-menu-item-icon:text-white/60 [&[data-active]_[data-flux-menu-item-icon]]:text-current" wire:navigate="">
|
||||
<svg class="shrink-0 [:where(&)]:size-5 me-2" data-flux-menu-item-icon="data-flux-menu-item-icon" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M13.024 9.25c.47 0 .827-.433.637-.863a4 4 0 0 0-4.094-2.364c-.468.05-.665.576-.43.984l1.08 1.868a.75.75 0 0 0 .649.375h2.158ZM7.84 7.758c-.236-.408-.79-.5-1.068-.12A3.982 3.982 0 0 0 6 10c0 .884.287 1.7.772 2.363.278.38.832.287 1.068-.12l1.078-1.868a.75.75 0 0 0 0-.75L7.839 7.758ZM9.138 12.993c-.235.408-.039.934.43.984a4 4 0 0 0 4.094-2.364c.19-.43-.168-.863-.638-.863h-2.158a.75.75 0 0 0-.65.375l-1.078 1.868Z"/>
|
||||
<path fill-rule="evenodd" d="m14.13 4.347.644-1.117a.75.75 0 0 0-1.299-.75l-.644 1.116a6.954 6.954 0 0 0-2.081-.556V1.75a.75.75 0 0 0-1.5 0v1.29a6.954 6.954 0 0 0-2.081.556L6.525 2.48a.75.75 0 1 0-1.3.75l.645 1.117A7.04 7.04 0 0 0 4.347 5.87L3.23 5.225a.75.75 0 1 0-.75 1.3l1.116.644A6.954 6.954 0 0 0 3.04 9.25H1.75a.75.75 0 0 0 0 1.5h1.29c.078.733.27 1.433.556 2.081l-1.116.645a.75.75 0 1 0 .75 1.298l1.117-.644a7.04 7.04 0 0 0 1.523 1.523l-.645 1.117a.75.75 0 1 0 1.3.75l.644-1.116a6.954 6.954 0 0 0 2.081.556v1.29a.75.75 0 0 0 1.5 0v-1.29a6.954 6.954 0 0 0 2.081-.556l.645 1.116a.75.75 0 0 0 1.299-.75l-.645-1.117a7.042 7.042 0 0 0 1.523-1.523l1.117.644a.75.75 0 0 0 .75-1.298l-1.116-.645a6.954 6.954 0 0 0 .556-2.081h1.29a.75.75 0 0 0 0-1.5h-1.29a6.954 6.954 0 0 0-.556-2.081l1.116-.644a.75.75 0 0 0-.75-1.3l-1.117.645a7.04 7.04 0 0 0-1.524-1.523ZM10 4.5a5.475 5.475 0 0 0-2.781.754A5.527 5.527 0 0 0 5.22 7.277 5.475 5.475 0 0 0 4.5 10a5.475 5.475 0 0 0 .752 2.777 5.527 5.527 0 0 0 2.028 2.004c.802.458 1.73.719 2.72.719a5.474 5.474 0 0 0 2.78-.753 5.527 5.527 0 0 0 2.001-2.027c.458-.802.719-1.73.719-2.72a5.475 5.475 0 0 0-.753-2.78 5.528 5.528 0 0 0-2.028-2.002A5.475 5.475 0 0 0 10 4.5Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
|
||||
<?php ob_start(); ?>
|
||||
<?php echo e(__('Settings')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</a>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</ui-menu-radio-group>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<?php ob_start(); ?><div class="-mx-[.3125rem] my-[.3125rem] h-px" data-flux-menu-separator>
|
||||
<div data-orientation="horizontal" role="none" class="border-0 [print-color-adjust:exact] bg-zinc-800/15 dark:bg-white/20 h-px w-full dark:bg-zinc-600!" data-flux-separator></div>
|
||||
</div>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<form method="POST" action="<?php echo e(route('logout')); ?>" class="w-full">
|
||||
<?php echo csrf_field(); ?>
|
||||
<?php ob_start(); ?><button type="submit" class="flex items-center px-2 py-1.5 w-full focus:outline-hidden rounded-md text-start text-sm font-medium [&[disabled]]:opacity-50 text-zinc-800 data-active:bg-zinc-50 dark:text-white dark:data-active:bg-zinc-600 **:data-flux-menu-item-icon:text-zinc-400 dark:**:data-flux-menu-item-icon:text-white/60 [&[data-active]_[data-flux-menu-item-icon]]:text-current w-full cursor-pointer" data-flux-menu-item="data-flux-menu-item" data-flux-menu-item-has-icon="data-flux-menu-item-has-icon" data-test="logout-button">
|
||||
<svg class="shrink-0 [:where(&)]:size-5 me-2" data-flux-menu-item-icon="data-flux-menu-item-icon" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M3 4.25A2.25 2.25 0 0 1 5.25 2h5.5A2.25 2.25 0 0 1 13 4.25v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 0-.75-.75h-5.5a.75.75 0 0 0-.75.75v11.5c0 .414.336.75.75.75h5.5a.75.75 0 0 0 .75-.75v-2a.75.75 0 0 1 1.5 0v2A2.25 2.25 0 0 1 10.75 18h-5.5A2.25 2.25 0 0 1 3 15.75V4.25Z" clip-rule="evenodd"/>
|
||||
<path fill-rule="evenodd" d="M6 10a.75.75 0 0 1 .75-.75h9.546l-1.048-.943a.75.75 0 1 1 1.004-1.114l2.5 2.25a.75.75 0 0 1 0 1.114l-2.5 2.25a.75.75 0 1 1-1.004-1.114l1.048-.943H6.75A.75.75 0 0 1 6 10Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
|
||||
<?php ob_start(); ?>
|
||||
<?php echo e(__('Log out')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</form>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</ui-menu>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</ui-dropdown>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<?php ob_start(); ?><ui-dropdown position="top start" data-flux-dropdown>
|
||||
<?php ob_start(); ?>
|
||||
<button type="button" class="wms-user-rail-button" title="<?php echo e(__('Account')); ?>">
|
||||
<?php echo e(auth()->user()?->initials() ?? 'U'); ?>
|
||||
|
||||
</button>
|
||||
|
||||
<?php ob_start(); ?><ui-menu
|
||||
class="[:where(&)]:min-w-48 p-[.3125rem] rounded-lg shadow-xs border border-zinc-200 dark:border-zinc-600 bg-white dark:bg-zinc-700 focus:outline-hidden"
|
||||
popover="manual"
|
||||
data-flux-menu
|
||||
>
|
||||
<?php ob_start(); ?>
|
||||
<?php ob_start(); ?><a href="<?php echo e(route('profile.edit')); ?>" data-flux-menu-item="data-flux-menu-item" data-flux-menu-item-has-icon="data-flux-menu-item-has-icon" class="flex items-center px-2 py-1.5 w-full focus:outline-hidden rounded-md text-start text-sm font-medium [&[disabled]]:opacity-50 text-zinc-800 data-active:bg-zinc-50 dark:text-white dark:data-active:bg-zinc-600 **:data-flux-menu-item-icon:text-zinc-400 dark:**:data-flux-menu-item-icon:text-white/60 [&[data-active]_[data-flux-menu-item-icon]]:text-current" wire:navigate="">
|
||||
<svg class="shrink-0 [:where(&)]:size-5 me-2" data-flux-menu-item-icon="data-flux-menu-item-icon" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M13.024 9.25c.47 0 .827-.433.637-.863a4 4 0 0 0-4.094-2.364c-.468.05-.665.576-.43.984l1.08 1.868a.75.75 0 0 0 .649.375h2.158ZM7.84 7.758c-.236-.408-.79-.5-1.068-.12A3.982 3.982 0 0 0 6 10c0 .884.287 1.7.772 2.363.278.38.832.287 1.068-.12l1.078-1.868a.75.75 0 0 0 0-.75L7.839 7.758ZM9.138 12.993c-.235.408-.039.934.43.984a4 4 0 0 0 4.094-2.364c.19-.43-.168-.863-.638-.863h-2.158a.75.75 0 0 0-.65.375l-1.078 1.868Z"/>
|
||||
<path fill-rule="evenodd" d="m14.13 4.347.644-1.117a.75.75 0 0 0-1.299-.75l-.644 1.116a6.954 6.954 0 0 0-2.081-.556V1.75a.75.75 0 0 0-1.5 0v1.29a6.954 6.954 0 0 0-2.081.556L6.525 2.48a.75.75 0 1 0-1.3.75l.645 1.117A7.04 7.04 0 0 0 4.347 5.87L3.23 5.225a.75.75 0 1 0-.75 1.3l1.116.644A6.954 6.954 0 0 0 3.04 9.25H1.75a.75.75 0 0 0 0 1.5h1.29c.078.733.27 1.433.556 2.081l-1.116.645a.75.75 0 1 0 .75 1.298l1.117-.644a7.04 7.04 0 0 0 1.523 1.523l-.645 1.117a.75.75 0 1 0 1.3.75l.644-1.116a6.954 6.954 0 0 0 2.081.556v1.29a.75.75 0 0 0 1.5 0v-1.29a6.954 6.954 0 0 0 2.081-.556l.645 1.116a.75.75 0 0 0 1.299-.75l-.645-1.117a7.042 7.042 0 0 0 1.523-1.523l1.117.644a.75.75 0 0 0 .75-1.298l-1.116-.645a6.954 6.954 0 0 0 .556-2.081h1.29a.75.75 0 0 0 0-1.5h-1.29a6.954 6.954 0 0 0-.556-2.081l1.116-.644a.75.75 0 0 0-.75-1.3l-1.117.645a7.04 7.04 0 0 0-1.524-1.523ZM10 4.5a5.475 5.475 0 0 0-2.781.754A5.527 5.527 0 0 0 5.22 7.277 5.475 5.475 0 0 0 4.5 10a5.475 5.475 0 0 0 .752 2.777 5.527 5.527 0 0 0 2.028 2.004c.802.458 1.73.719 2.72.719a5.474 5.474 0 0 0 2.78-.753 5.527 5.527 0 0 0 2.001-2.027c.458-.802.719-1.73.719-2.72a5.475 5.475 0 0 0-.753-2.78 5.528 5.528 0 0 0-2.028-2.002A5.475 5.475 0 0 0 10 4.5Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
|
||||
<?php ob_start(); ?><?php echo e(__('Settings')); ?><?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</a>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php ob_start(); ?><div class="-mx-[.3125rem] my-[.3125rem] h-px" data-flux-menu-separator>
|
||||
<div data-orientation="horizontal" role="none" class="border-0 [print-color-adjust:exact] bg-zinc-800/15 dark:bg-white/20 h-px w-full dark:bg-zinc-600!" data-flux-separator></div>
|
||||
</div>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<form method="POST" action="<?php echo e(route('logout')); ?>" class="w-full">
|
||||
<?php echo csrf_field(); ?>
|
||||
<?php ob_start(); ?><button type="submit" class="flex items-center px-2 py-1.5 w-full focus:outline-hidden rounded-md text-start text-sm font-medium [&[disabled]]:opacity-50 text-zinc-800 data-active:bg-zinc-50 dark:text-white dark:data-active:bg-zinc-600 **:data-flux-menu-item-icon:text-zinc-400 dark:**:data-flux-menu-item-icon:text-white/60 [&[data-active]_[data-flux-menu-item-icon]]:text-current w-full cursor-pointer" data-flux-menu-item="data-flux-menu-item" data-flux-menu-item-has-icon="data-flux-menu-item-has-icon">
|
||||
<svg class="shrink-0 [:where(&)]:size-5 me-2" data-flux-menu-item-icon="data-flux-menu-item-icon" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M3 4.25A2.25 2.25 0 0 1 5.25 2h5.5A2.25 2.25 0 0 1 13 4.25v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 0-.75-.75h-5.5a.75.75 0 0 0-.75.75v11.5c0 .414.336.75.75.75h5.5a.75.75 0 0 0 .75-.75v-2a.75.75 0 0 1 1.5 0v2A2.25 2.25 0 0 1 10.75 18h-5.5A2.25 2.25 0 0 1 3 15.75V4.25Z" clip-rule="evenodd"/>
|
||||
<path fill-rule="evenodd" d="M6 10a.75.75 0 0 1 .75-.75h9.546l-1.048-.943a.75.75 0 1 1 1.004-1.114l2.5 2.25a.75.75 0 0 1 0 1.114l-2.5 2.25a.75.75 0 1 1-1.004-1.114l1.048-.943H6.75A.75.75 0 0 1 6 10Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
|
||||
<?php ob_start(); ?>
|
||||
<?php echo e(__('Log out')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</form>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</ui-menu>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</ui-dropdown>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</div>
|
||||
</aside>
|
||||
|
||||
<div class="wms-main-column">
|
||||
<header class="wms-mobile-header">
|
||||
<button type="button" class="wms-mobile-menu" data-wms-mobile-open aria-label="<?php echo e(__('Open navigation')); ?>">
|
||||
<i class="fa-solid fa-bars" aria-hidden="true"></i>
|
||||
</button>
|
||||
|
||||
<a href="<?php echo e(auth()->user()?->isMpbaPlatformAdmin() ? route('platform.dashboard') : route('dashboard')); ?>" wire:navigate class="wms-mobile-title">
|
||||
<?php echo e(__('Warehouse Management System')); ?>
|
||||
|
||||
</a>
|
||||
|
||||
<?php ob_start(); ?><ui-dropdown position="top end" data-flux-dropdown>
|
||||
<?php ob_start(); ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/profile.blade.php', $__blaze->compiledPath.'/986fb95c0ca2c23afb55cc89b1b07e48.php'); ?>
|
||||
<?php $__blaze->pushData(['initials' => auth()->user()?->initials() ?? 'U','iconTrailing' => 'chevron-down']); ?>
|
||||
<?php _986fb95c0ca2c23afb55cc89b1b07e48($__blaze, ['initials' => auth()->user()?->initials() ?? 'U','iconTrailing' => 'chevron-down'], [], ['initials'], ['iconTrailing' => 'icon-trailing'], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
|
||||
<?php ob_start(); ?><ui-menu
|
||||
class="[:where(&)]:min-w-48 p-[.3125rem] rounded-lg shadow-xs border border-zinc-200 dark:border-zinc-600 bg-white dark:bg-zinc-700 focus:outline-hidden"
|
||||
popover="manual"
|
||||
data-flux-menu
|
||||
>
|
||||
<?php ob_start(); ?>
|
||||
<?php ob_start(); ?><ui-menu-radio-group data-flux-menu-radio-group>
|
||||
<?php ob_start(); ?>
|
||||
<div class="p-0 text-sm font-normal">
|
||||
<div class="flex items-center gap-2 px-1 py-1.5 text-start text-sm">
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::avatar", ['name' => auth()->user()?->name ?? 'User', 'initials' => auth()->user()?->initials() ?? 'U']); ?><?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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/avatar/index.blade.php', $__blaze->compiledPath.'/110c1c2a55a80ff8b2b4fbed62b1a7d3.php'); ?>
|
||||
<?php $__blaze->pushData(['name' => auth()->user()?->name ?? 'User','initials' => auth()->user()?->initials() ?? 'U']); ?>
|
||||
<?php _110c1c2a55a80ff8b2b4fbed62b1a7d3($__blaze, ['name' => auth()->user()?->name ?? 'User','initials' => auth()->user()?->initials() ?? 'U'], [], ['name', 'initials'], [], $__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; ?>
|
||||
|
||||
<div class="grid flex-1 text-start text-sm leading-tight">
|
||||
<?php ob_start(); ?><div class="font-medium [:where(&)]:text-zinc-800 [:where(&)]:dark:text-white text-sm [&:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&]:mt-2 truncate" data-flux-heading><?php ob_start(); ?><?php echo e(auth()->user()?->name ?? __('User')); ?><?php echo trim(ob_get_clean()); ?></div>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php ob_start(); ?><p class="[:where(&)]:font-normal [:where(&)]:text-sm [:where(&)]:text-zinc-500 [:where(&)]:dark:text-white/70 truncate" data-flux-text ><?php ob_start(); ?><?php echo e(auth()->user()?->email ?? ''); ?><?php echo trim(ob_get_clean()); ?></p><?php echo ltrim(ob_get_clean()); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</ui-menu-radio-group>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<?php ob_start(); ?><div class="-mx-[.3125rem] my-[.3125rem] h-px" data-flux-menu-separator>
|
||||
<div data-orientation="horizontal" role="none" class="border-0 [print-color-adjust:exact] bg-zinc-800/15 dark:bg-white/20 h-px w-full dark:bg-zinc-600!" data-flux-separator></div>
|
||||
</div>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<?php ob_start(); ?><ui-menu-radio-group data-flux-menu-radio-group>
|
||||
<?php ob_start(); ?>
|
||||
<?php ob_start(); ?><a href="<?php echo e(route('profile.edit')); ?>" data-flux-menu-item="data-flux-menu-item" data-flux-menu-item-has-icon="data-flux-menu-item-has-icon" class="flex items-center px-2 py-1.5 w-full focus:outline-hidden rounded-md text-start text-sm font-medium [&[disabled]]:opacity-50 text-zinc-800 data-active:bg-zinc-50 dark:text-white dark:data-active:bg-zinc-600 **:data-flux-menu-item-icon:text-zinc-400 dark:**:data-flux-menu-item-icon:text-white/60 [&[data-active]_[data-flux-menu-item-icon]]:text-current" wire:navigate="">
|
||||
<svg class="shrink-0 [:where(&)]:size-5 me-2" data-flux-menu-item-icon="data-flux-menu-item-icon" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M13.024 9.25c.47 0 .827-.433.637-.863a4 4 0 0 0-4.094-2.364c-.468.05-.665.576-.43.984l1.08 1.868a.75.75 0 0 0 .649.375h2.158ZM7.84 7.758c-.236-.408-.79-.5-1.068-.12A3.982 3.982 0 0 0 6 10c0 .884.287 1.7.772 2.363.278.38.832.287 1.068-.12l1.078-1.868a.75.75 0 0 0 0-.75L7.839 7.758ZM9.138 12.993c-.235.408-.039.934.43.984a4 4 0 0 0 4.094-2.364c.19-.43-.168-.863-.638-.863h-2.158a.75.75 0 0 0-.65.375l-1.078 1.868Z"/>
|
||||
<path fill-rule="evenodd" d="m14.13 4.347.644-1.117a.75.75 0 0 0-1.299-.75l-.644 1.116a6.954 6.954 0 0 0-2.081-.556V1.75a.75.75 0 0 0-1.5 0v1.29a6.954 6.954 0 0 0-2.081.556L6.525 2.48a.75.75 0 1 0-1.3.75l.645 1.117A7.04 7.04 0 0 0 4.347 5.87L3.23 5.225a.75.75 0 1 0-.75 1.3l1.116.644A6.954 6.954 0 0 0 3.04 9.25H1.75a.75.75 0 0 0 0 1.5h1.29c.078.733.27 1.433.556 2.081l-1.116.645a.75.75 0 1 0 .75 1.298l1.117-.644a7.04 7.04 0 0 0 1.523 1.523l-.645 1.117a.75.75 0 1 0 1.3.75l.644-1.116a6.954 6.954 0 0 0 2.081.556v1.29a.75.75 0 0 0 1.5 0v-1.29a6.954 6.954 0 0 0 2.081-.556l.645 1.116a.75.75 0 0 0 1.299-.75l-.645-1.117a7.042 7.042 0 0 0 1.523-1.523l1.117.644a.75.75 0 0 0 .75-1.298l-1.116-.645a6.954 6.954 0 0 0 .556-2.081h1.29a.75.75 0 0 0 0-1.5h-1.29a6.954 6.954 0 0 0-.556-2.081l1.116-.644a.75.75 0 0 0-.75-1.3l-1.117.645a7.04 7.04 0 0 0-1.524-1.523ZM10 4.5a5.475 5.475 0 0 0-2.781.754A5.527 5.527 0 0 0 5.22 7.277 5.475 5.475 0 0 0 4.5 10a5.475 5.475 0 0 0 .752 2.777 5.527 5.527 0 0 0 2.028 2.004c.802.458 1.73.719 2.72.719a5.474 5.474 0 0 0 2.78-.753 5.527 5.527 0 0 0 2.001-2.027c.458-.802.719-1.73.719-2.72a5.475 5.475 0 0 0-.753-2.78 5.528 5.528 0 0 0-2.028-2.002A5.475 5.475 0 0 0 10 4.5Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
|
||||
<?php ob_start(); ?>
|
||||
<?php echo e(__('Settings')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</a>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</ui-menu-radio-group>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<?php ob_start(); ?><div class="-mx-[.3125rem] my-[.3125rem] h-px" data-flux-menu-separator>
|
||||
<div data-orientation="horizontal" role="none" class="border-0 [print-color-adjust:exact] bg-zinc-800/15 dark:bg-white/20 h-px w-full dark:bg-zinc-600!" data-flux-separator></div>
|
||||
</div>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<form method="POST" action="<?php echo e(route('logout')); ?>" class="w-full">
|
||||
<?php echo csrf_field(); ?>
|
||||
<?php ob_start(); ?><button type="submit" class="flex items-center px-2 py-1.5 w-full focus:outline-hidden rounded-md text-start text-sm font-medium [&[disabled]]:opacity-50 text-zinc-800 data-active:bg-zinc-50 dark:text-white dark:data-active:bg-zinc-600 **:data-flux-menu-item-icon:text-zinc-400 dark:**:data-flux-menu-item-icon:text-white/60 [&[data-active]_[data-flux-menu-item-icon]]:text-current w-full cursor-pointer" data-flux-menu-item="data-flux-menu-item" data-flux-menu-item-has-icon="data-flux-menu-item-has-icon" data-test="logout-button">
|
||||
<svg class="shrink-0 [:where(&)]:size-5 me-2" data-flux-menu-item-icon="data-flux-menu-item-icon" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M3 4.25A2.25 2.25 0 0 1 5.25 2h5.5A2.25 2.25 0 0 1 13 4.25v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 0-.75-.75h-5.5a.75.75 0 0 0-.75.75v11.5c0 .414.336.75.75.75h5.5a.75.75 0 0 0 .75-.75v-2a.75.75 0 0 1 1.5 0v2A2.25 2.25 0 0 1 10.75 18h-5.5A2.25 2.25 0 0 1 3 15.75V4.25Z" clip-rule="evenodd"/>
|
||||
<path fill-rule="evenodd" d="M6 10a.75.75 0 0 1 .75-.75h9.546l-1.048-.943a.75.75 0 1 1 1.004-1.114l2.5 2.25a.75.75 0 0 1 0 1.114l-2.5 2.25a.75.75 0 1 1-1.004-1.114l1.048-.943H6.75A.75.75 0 0 1 6 10Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
|
||||
<?php ob_start(); ?>
|
||||
<?php echo e(__('Log out')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</form>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</ui-menu>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</ui-dropdown>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</header>
|
||||
|
||||
<main class="wms-content">
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php app("livewire")->forceAssetInjection(); ?><div x-persist="<?php echo e('toast'); ?>">
|
||||
<?php ob_start(); ?><ui-toast-group x-data x-on:toast-show.document="$el.showToast($event.detail)" popover="manual" position="bottom end" wire:ignore>
|
||||
<?php ob_start(); ?>
|
||||
<?php ob_start(); ?><ui-toast x-data x-on:toast-show.document="! $el.closest('ui-toast-group') && $el.showToast($event.detail)" popover="manual" position="bottom end" wire:ignore>
|
||||
<template>
|
||||
<div class="max-w-sm in-[ui-toast-group]:max-w-auto in-[ui-toast-group]:w-xs sm:in-[ui-toast-group]:w-sm" data-variant="" data-flux-toast-dialog>
|
||||
<div class="p-2 flex rounded-xl shadow-lg bg-white border border-zinc-200 border-b-zinc-300/80 dark:bg-zinc-700 dark:border-zinc-600">
|
||||
<div class="flex-1 flex items-start gap-4 overflow-hidden">
|
||||
<div class="flex-1 py-1.5 ps-2.5 flex gap-2">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="hidden [[data-flux-toast-dialog][data-variant=success]_&]:block shrink-0 mt-0.5 size-4 text-lime-600 dark:text-lime-400">
|
||||
<path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm3.844-8.791a.75.75 0 0 0-1.188-.918l-3.7 4.79-1.649-1.833a.75.75 0 1 0-1.114 1.004l2.25 2.5a.75.75 0 0 0 1.15-.043l4.25-5.5Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="hidden [[data-flux-toast-dialog][data-variant=warning]_&]:block shrink-0 mt-0.5 size-4 text-amber-500 dark:text-amber-400">
|
||||
<path fill-rule="evenodd" d="M6.701 2.25c.577-1 2.02-1 2.598 0l5.196 9a1.5 1.5 0 0 1-1.299 2.25H2.804a1.5 1.5 0 0 1-1.3-2.25l5.197-9ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 1 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="hidden [[data-flux-toast-dialog][data-variant=info]_&]:block shrink-0 mt-0.5 size-4 text-cyan-500 dark:text-cyan-400">
|
||||
<path fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM9 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6.75 8a.75.75 0 0 0 0 1.5h.75v1.75a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8.25 8h-1.5Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="hidden [[data-flux-toast-dialog][data-variant=danger]_&]:block shrink-0 mt-0.5 size-4 text-rose-500 dark:text-rose-400">
|
||||
<path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
<div>
|
||||
|
||||
<div class="font-medium text-sm text-zinc-800 dark:text-white [&:not(:empty)+div]:font-normal [&:not(:empty)+div]:text-zinc-500 [&:not(:empty)+div]:dark:text-zinc-300 [&:not(:empty)]:pb-2"><slot name="heading"></slot></div>
|
||||
|
||||
|
||||
<div class="font-medium text-sm text-zinc-800 dark:text-white"><slot name="text"></slot></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<ui-close class="flex items-center">
|
||||
<button type="button" class="inline-flex items-center font-medium justify-center gap-2 truncate disabled:opacity-50 dark:disabled:opacity-75 disabled:cursor-default h-8 text-sm rounded-md w-8 bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-400 hover:text-zinc-800 dark:text-zinc-400 dark:hover:text-white" as="button">
|
||||
<div>
|
||||
<svg class="[:where(&)]:size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
</button>
|
||||
</ui-close>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</ui-toast>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</ui-toast-group>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</div>
|
||||
|
||||
<?php app('livewire')->forceAssetInjection(); ?>
|
||||
<?php echo app('flux')->scripts(); ?>
|
||||
|
||||
|
||||
<script>
|
||||
(function () {
|
||||
const STORAGE_KEY = 'wms-sidebar-state';
|
||||
|
||||
function applySidebarState() {
|
||||
const root = document.documentElement;
|
||||
const saved = localStorage.getItem(STORAGE_KEY) || 'expanded';
|
||||
|
||||
root.dataset.wmsSidebar = saved === 'collapsed' ? 'collapsed' : 'expanded';
|
||||
|
||||
document.querySelectorAll('[data-wms-sidebar-toggle]').forEach((button) => {
|
||||
const expanded = root.dataset.wmsSidebar !== 'collapsed';
|
||||
button.setAttribute('aria-expanded', expanded ? 'true' : 'false');
|
||||
button.setAttribute('aria-label', expanded ? '<?php echo e(__('Collapse sidebar')); ?>' : '<?php echo e(__('Expand sidebar')); ?>');
|
||||
});
|
||||
}
|
||||
|
||||
function closeMobileSidebar() {
|
||||
document.documentElement.dataset.wmsMobileSidebar = 'closed';
|
||||
}
|
||||
|
||||
function openMobileSidebar() {
|
||||
document.documentElement.dataset.wmsMobileSidebar = 'open';
|
||||
}
|
||||
|
||||
function bindSidebarControls() {
|
||||
applySidebarState();
|
||||
|
||||
document.querySelectorAll('[data-wms-sidebar-toggle]').forEach((button) => {
|
||||
if (button.dataset.wmsBound === '1') {
|
||||
return;
|
||||
}
|
||||
|
||||
button.dataset.wmsBound = '1';
|
||||
|
||||
button.addEventListener('click', function () {
|
||||
const root = document.documentElement;
|
||||
const next = root.dataset.wmsSidebar === 'collapsed' ? 'expanded' : 'collapsed';
|
||||
|
||||
root.dataset.wmsSidebar = next;
|
||||
localStorage.setItem(STORAGE_KEY, next);
|
||||
applySidebarState();
|
||||
});
|
||||
});
|
||||
|
||||
document.querySelectorAll('[data-wms-mobile-open]').forEach((button) => {
|
||||
if (button.dataset.wmsBound === '1') {
|
||||
return;
|
||||
}
|
||||
|
||||
button.dataset.wmsBound = '1';
|
||||
button.addEventListener('click', openMobileSidebar);
|
||||
});
|
||||
|
||||
document.querySelectorAll('[data-wms-mobile-close]').forEach((button) => {
|
||||
if (button.dataset.wmsBound === '1') {
|
||||
return;
|
||||
}
|
||||
|
||||
button.dataset.wmsBound = '1';
|
||||
button.addEventListener('click', closeMobileSidebar);
|
||||
});
|
||||
|
||||
document.querySelectorAll('.wms-sidebar-link[wire\\:navigate]').forEach((link) => {
|
||||
if (link.dataset.wmsMobileBound === '1') {
|
||||
return;
|
||||
}
|
||||
|
||||
link.dataset.wmsMobileBound = '1';
|
||||
link.addEventListener('click', closeMobileSidebar);
|
||||
});
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', bindSidebarControls);
|
||||
document.addEventListener('livewire:navigated', bindSidebarControls);
|
||||
})();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/layouts/app/sidebar.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
if (!function_exists('_3e67020b08ceeca960cbb88b2dabc310')):
|
||||
function _3e67020b08ceeca960cbb88b2dabc310($__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, [
|
||||
'tooltipPosition',
|
||||
'tooltipKbd',
|
||||
'tooltip',
|
||||
]));
|
||||
?>
|
||||
|
||||
<?php $tooltipPosition = $tooltipPosition ??= $attributes->pluck('tooltip:position'); ?>
|
||||
<?php $tooltipKbd = $tooltipKbd ??= $attributes->pluck('tooltip:kbd'); ?>
|
||||
<?php $tooltip = $tooltip ??= $attributes->pluck('tooltip'); ?>
|
||||
|
||||
<?php
|
||||
$__defaults = [
|
||||
'tooltipPosition' => 'top',
|
||||
'tooltipKbd' => null,
|
||||
'tooltip' => null,
|
||||
];
|
||||
$tooltipPosition ??= $attributes['tooltip-position'] ?? $attributes['tooltipPosition'] ?? $__defaults['tooltipPosition']; unset($attributes['tooltipPosition'], $attributes['tooltip-position']);
|
||||
$tooltipKbd ??= $attributes['tooltip-kbd'] ?? $attributes['tooltipKbd'] ?? $__defaults['tooltipKbd']; unset($attributes['tooltipKbd'], $attributes['tooltip-kbd']);
|
||||
$tooltip ??= $attributes['tooltip'] ?? $__defaults['tooltip']; unset($attributes['tooltip']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php if ($tooltip): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/tooltip/index.blade.php', $__blaze->compiledPath.'/d2493bdc3defe8869c6c05a47a680be0.php'); ?>
|
||||
<?php if (isset($__slotsd2493bdc3defe8869c6c05a47a680be0)) { $__slotsStackd2493bdc3defe8869c6c05a47a680be0[] = $__slotsd2493bdc3defe8869c6c05a47a680be0; } ?>
|
||||
<?php if (isset($__attrsd2493bdc3defe8869c6c05a47a680be0)) { $__attrsStackd2493bdc3defe8869c6c05a47a680be0[] = $__attrsd2493bdc3defe8869c6c05a47a680be0; } ?>
|
||||
<?php $__attrsd2493bdc3defe8869c6c05a47a680be0 = ['content' => $tooltip,'position' => $tooltipPosition,'kbd' => $tooltipKbd]; ?>
|
||||
<?php $__slotsd2493bdc3defe8869c6c05a47a680be0 = []; ?>
|
||||
<?php $__blaze->pushData($__attrsd2493bdc3defe8869c6c05a47a680be0); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
<?php $__slotsd2493bdc3defe8869c6c05a47a680be0['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__blaze->pushSlots($__slotsd2493bdc3defe8869c6c05a47a680be0); ?>
|
||||
<?php _d2493bdc3defe8869c6c05a47a680be0($__blaze, $__attrsd2493bdc3defe8869c6c05a47a680be0, $__slotsd2493bdc3defe8869c6c05a47a680be0, ['content', 'position', 'kbd'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStackd2493bdc3defe8869c6c05a47a680be0)) { $__slotsd2493bdc3defe8869c6c05a47a680be0 = array_pop($__slotsStackd2493bdc3defe8869c6c05a47a680be0); } ?>
|
||||
<?php if (! empty($__attrsStackd2493bdc3defe8869c6c05a47a680be0)) { $__attrsd2493bdc3defe8869c6c05a47a680be0 = array_pop($__attrsStackd2493bdc3defe8869c6c05a47a680be0); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php else: ?>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
echo ltrim(ob_get_clean());
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-tooltip.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if (!function_exists('_3feb8572f4b247ceb864938a4490c071')):
|
||||
function _3feb8572f4b247ceb864938a4490c071($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M12.53 16.28a.75.75 0 0 1-1.06 0l-7.5-7.5a.75.75 0 0 1 1.06-1.06L12 14.69l6.97-6.97a.75.75 0 1 1 1.06 1.06l-7.5 7.5Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo ltrim(ob_get_clean());
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/chevron-down.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php $__env->startSection('title', __('Forbidden')); ?>
|
||||
<?php $__env->startSection('code', '403'); ?>
|
||||
<?php $__env->startSection('message', __($exception->getMessage() ?: 'Forbidden')); ?>
|
||||
|
||||
<?php echo $__env->make('errors::minimal', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/errors/403.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,148 @@
|
||||
---
|
||||
name: livewire-development
|
||||
description: "Use for any task or question involving Livewire. Activate if user mentions Livewire, wire: directives, or Livewire-specific concepts like wire:model, wire:click, wire:sort, or islands, invoke this skill. Covers building new components, debugging reactivity issues, real-time form validation, drag-and-drop, loading states, migrating from Livewire 3 to 4, converting component formats (SFC/MFC/class-based), and performance optimization. Do not use for non-Livewire reactive UI (React, Vue, Alpine-only, Inertia.js) or standard Laravel forms without Livewire."
|
||||
license: MIT
|
||||
metadata:
|
||||
author: laravel
|
||||
---
|
||||
<?php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
?>
|
||||
# Livewire Development
|
||||
|
||||
## Documentation
|
||||
|
||||
Use ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ for detailed Livewire 4 patterns and documentation.
|
||||
|
||||
## Basic Usage
|
||||
|
||||
### Creating Components
|
||||
|
||||
___SINGLE_BACKTICK______SINGLE_BACKTICK______SINGLE_BACKTICK___bash
|
||||
# Single-file component (SFC - default in v4)
|
||||
# Creates: resources/views/components/⚡create-post.blade.php
|
||||
<?php echo e($assist->artisanCommand('make:livewire create-post')); ?>
|
||||
|
||||
|
||||
# Page component (SFC - Full Page in v4)
|
||||
# Creates: resources/views/pages/⚡create-post.blade.php
|
||||
<?php echo e($assist->artisanCommand('make:livewire pages::create-post')); ?>
|
||||
|
||||
|
||||
# Multi-file component (MFC)
|
||||
# Creates: resources/views/components/⚡create-post/create-post.php
|
||||
# resources/views/components/⚡create-post/create-post.blade.php
|
||||
<?php echo e($assist->artisanCommand('make:livewire create-post --mfc')); ?>
|
||||
|
||||
|
||||
# Class-based component (v3 style)
|
||||
# Creates: app/Livewire/CreatePost.php AND resources/views/livewire/create-post.blade.php
|
||||
<?php echo e($assist->artisanCommand('make:livewire create-post --class')); ?>
|
||||
|
||||
|
||||
# With namespace
|
||||
<?php echo e($assist->artisanCommand('make:livewire Posts/CreatePost')); ?>
|
||||
|
||||
___SINGLE_BACKTICK______SINGLE_BACKTICK______SINGLE_BACKTICK___
|
||||
|
||||
### Converting Between Formats
|
||||
|
||||
Use ___SINGLE_BACKTICK___<?php echo e($assist->artisanCommand('livewire:convert create-post')); ?>___SINGLE_BACKTICK___ to convert between single-file, multi-file, and class-based formats.
|
||||
|
||||
### Choosing a Component Format
|
||||
|
||||
> **Always follow the project's existing conventions first.** Before creating any component, inspect the project's existing Livewire components to determine the established format (SFC, MFC, or class-based) and directory structure. Check ___SINGLE_BACKTICK___<?php echo e($assist->appPath('Livewire/')); ?>___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___resources/views/components/___SINGLE_BACKTICK___, and ___SINGLE_BACKTICK___resources/views/livewire/___SINGLE_BACKTICK___ for existing components. If the project already uses a consistent format, **use that same format** — even if it differs from the Livewire v4 defaults below. Only fall back to the v4 defaults (SFC in ___SINGLE_BACKTICK___resources/views/components/___SINGLE_BACKTICK___) when no existing convention is established.
|
||||
|
||||
Also check ___SINGLE_BACKTICK___config/livewire.php___SINGLE_BACKTICK___ for ___SINGLE_BACKTICK___make_command.type___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___make_command.emoji___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___component_locations___SINGLE_BACKTICK___, and ___SINGLE_BACKTICK___component_namespaces___SINGLE_BACKTICK___ overrides, which change the default format and where files are stored.
|
||||
|
||||
### Component Format Reference
|
||||
|
||||
| Format | Flag | Class Path | View Path |
|
||||
|--------|------|------------|-----------|
|
||||
| Single-file (SFC) | default | — | ___SINGLE_BACKTICK___resources/views/components/⚡create-post.blade.php___SINGLE_BACKTICK___ (PHP + Blade in one file) |
|
||||
| Full Page SFC | ___SINGLE_BACKTICK___pages::name___SINGLE_BACKTICK___ | — | ___SINGLE_BACKTICK___resources/views/pages/⚡create-post.blade.php___SINGLE_BACKTICK___ |
|
||||
| Multi-file (MFC) | ___SINGLE_BACKTICK___--mfc___SINGLE_BACKTICK___ | ___SINGLE_BACKTICK___resources/views/components/⚡create-post/create-post.php___SINGLE_BACKTICK___ | ___SINGLE_BACKTICK___resources/views/components/⚡create-post/create-post.blade.php___SINGLE_BACKTICK___ |
|
||||
| Class-based | ___SINGLE_BACKTICK___--class___SINGLE_BACKTICK___ | ___SINGLE_BACKTICK___<?php echo e($assist->appPath('Livewire/CreatePost.php')); ?>___SINGLE_BACKTICK___ | ___SINGLE_BACKTICK___resources/views/livewire/create-post.blade.php___SINGLE_BACKTICK___ |
|
||||
| View-based | default (Blade-only) | — | ___SINGLE_BACKTICK___resources/views/components/⚡create-post.blade.php___SINGLE_BACKTICK___ (Blade-only with functional state) |
|
||||
|
||||
> **Important:** The ⚡ prefix shown above is the **default** behavior in Livewire v4 — it is **configurable**. Check ___SINGLE_BACKTICK___config/livewire.php___SINGLE_BACKTICK___ for the ___SINGLE_BACKTICK___make_command.emoji___SINGLE_BACKTICK___ setting. When ___SINGLE_BACKTICK___true___SINGLE_BACKTICK___ (default), always include the ⚡ prefix in filenames you create. When ___SINGLE_BACKTICK___false___SINGLE_BACKTICK___, omit the ⚡ prefix from all paths above.
|
||||
|
||||
Namespaced components map to subdirectories: ___SINGLE_BACKTICK___make:livewire Posts/CreatePost___SINGLE_BACKTICK___ creates ___SINGLE_BACKTICK___resources/views/components/posts/⚡create-post.blade.php___SINGLE_BACKTICK___ (single-file by default). Use ___SINGLE_BACKTICK___make:livewire Posts/CreatePost --mfc___SINGLE_BACKTICK___ for multi-file output at ___SINGLE_BACKTICK___resources/views/components/posts/⚡create-post/create-post.php___SINGLE_BACKTICK___ and ___SINGLE_BACKTICK___resources/views/components/posts/⚡create-post/create-post.blade.php___SINGLE_BACKTICK___.
|
||||
|
||||
### Single-File Component Example
|
||||
|
||||
___BOOST_SNIPPET_0___
|
||||
|
||||
## Livewire 4 Specifics
|
||||
|
||||
### Key Changes From Livewire 3
|
||||
|
||||
These things changed in Livewire 4, but may not have been updated in this application. Verify this application's setup to ensure you follow existing conventions.
|
||||
|
||||
- Use ___SINGLE_BACKTICK___Route::livewire()___SINGLE_BACKTICK___ for full-page components (e.g., ___SINGLE_BACKTICK___Route::livewire('/posts/create', CreatePost::class)___SINGLE_BACKTICK___); config keys renamed: ___SINGLE_BACKTICK___layout___SINGLE_BACKTICK___ → ___SINGLE_BACKTICK___component_layout___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___lazy_placeholder___SINGLE_BACKTICK___ → ___SINGLE_BACKTICK___component_placeholder___SINGLE_BACKTICK___.
|
||||
- ___SINGLE_BACKTICK___wire:model___SINGLE_BACKTICK___ now ignores child events by default (use ___SINGLE_BACKTICK___wire:model.deep___SINGLE_BACKTICK___ for old behavior); ___SINGLE_BACKTICK___wire:scroll___SINGLE_BACKTICK___ renamed to ___SINGLE_BACKTICK___wire:navigate:scroll___SINGLE_BACKTICK___.
|
||||
- Component tags must be properly closed; ___SINGLE_BACKTICK___wire:transition___SINGLE_BACKTICK___ now uses View Transitions API (modifiers removed).
|
||||
- JavaScript: ___SINGLE_BACKTICK___$wire.$js('name', fn)___SINGLE_BACKTICK___ → ___SINGLE_BACKTICK___$wire.$js.name = fn___SINGLE_BACKTICK___; ___SINGLE_BACKTICK___commit___SINGLE_BACKTICK___/___SINGLE_BACKTICK___request___SINGLE_BACKTICK___ hooks → ___SINGLE_BACKTICK___interceptMessage()___SINGLE_BACKTICK___/___SINGLE_BACKTICK___interceptRequest()___SINGLE_BACKTICK___.
|
||||
|
||||
### New Features
|
||||
|
||||
- Component formats: single-file (SFC), multi-file (MFC), view-based components.
|
||||
- Islands (___SINGLE_BACKTICK___@island___SINGLE_BACKTICK___) for isolated updates; async actions (___SINGLE_BACKTICK___wire:click.async___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___#[Async]___SINGLE_BACKTICK___) for parallel execution.
|
||||
- Deferred/bundled loading: ___SINGLE_BACKTICK___defer___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___lazy.bundle___SINGLE_BACKTICK___ for optimized component loading.
|
||||
|
||||
| Feature | Usage | Purpose |
|
||||
|---------|-------|---------|
|
||||
| Islands | ___SINGLE_BACKTICK___@island(name: 'stats')___SINGLE_BACKTICK___ | Isolated update regions |
|
||||
| Async | ___SINGLE_BACKTICK___wire:click.async___SINGLE_BACKTICK___ or ___SINGLE_BACKTICK___#[Async]___SINGLE_BACKTICK___ | Non-blocking actions |
|
||||
| Deferred | ___SINGLE_BACKTICK___defer___SINGLE_BACKTICK___ attribute | Load after page render |
|
||||
| Bundled | ___SINGLE_BACKTICK___lazy.bundle___SINGLE_BACKTICK___ | Load multiple together |
|
||||
|
||||
### New Directives
|
||||
|
||||
- ___SINGLE_BACKTICK___wire:sort___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___wire:intersect___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___wire:ref___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___.renderless___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___.preserve-scroll___SINGLE_BACKTICK___ are available for use.
|
||||
- ___SINGLE_BACKTICK___data-loading___SINGLE_BACKTICK___ attribute automatically added to elements triggering network requests.
|
||||
|
||||
| Directive | Purpose |
|
||||
|-----------|---------|
|
||||
| ___SINGLE_BACKTICK___wire:sort___SINGLE_BACKTICK___ | Drag-and-drop sorting |
|
||||
| ___SINGLE_BACKTICK___wire:intersect___SINGLE_BACKTICK___ | Viewport intersection detection |
|
||||
| ___SINGLE_BACKTICK___wire:ref___SINGLE_BACKTICK___ | Element references for JS |
|
||||
| ___SINGLE_BACKTICK___.renderless___SINGLE_BACKTICK___ | Component without rendering |
|
||||
| ___SINGLE_BACKTICK___.preserve-scroll___SINGLE_BACKTICK___ | Preserve scroll position |
|
||||
|
||||
## Best Practices
|
||||
|
||||
- Always use ___SINGLE_BACKTICK___wire:key___SINGLE_BACKTICK___ in loops
|
||||
- Use ___SINGLE_BACKTICK___wire:loading___SINGLE_BACKTICK___ for loading states
|
||||
- Use ___SINGLE_BACKTICK___wire:model.live___SINGLE_BACKTICK___ for instant updates (default is debounced)
|
||||
- Validate and authorize in actions (treat like HTTP requests)
|
||||
|
||||
## Configuration
|
||||
|
||||
- ___SINGLE_BACKTICK___smart_wire_keys___SINGLE_BACKTICK___ defaults to ___SINGLE_BACKTICK___true___SINGLE_BACKTICK___; new configs: ___SINGLE_BACKTICK___component_locations___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___component_namespaces___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___make_command___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___csp_safe___SINGLE_BACKTICK___.
|
||||
|
||||
## Alpine & JavaScript
|
||||
|
||||
- ___SINGLE_BACKTICK___wire:transition___SINGLE_BACKTICK___ uses browser View Transitions API; ___SINGLE_BACKTICK___$errors___SINGLE_BACKTICK___ and ___SINGLE_BACKTICK___$intercept___SINGLE_BACKTICK___ magic properties available.
|
||||
- Non-blocking ___SINGLE_BACKTICK___wire:poll___SINGLE_BACKTICK___ and parallel ___SINGLE_BACKTICK___wire:model.live___SINGLE_BACKTICK___ updates improve performance.
|
||||
|
||||
For interceptors and hooks, see [reference/javascript-hooks.md](reference/javascript-hooks.md).
|
||||
|
||||
## Testing
|
||||
|
||||
___BOOST_SNIPPET_1___
|
||||
|
||||
## Verification
|
||||
|
||||
1. Browser console: Check for JS errors
|
||||
2. Network tab: Verify Livewire requests return 200
|
||||
3. Ensure ___SINGLE_BACKTICK___wire:key___SINGLE_BACKTICK___ on all ___SINGLE_BACKTICK___@foreach___SINGLE_BACKTICK___ loops
|
||||
|
||||
## Common Pitfalls
|
||||
|
||||
- Missing ___SINGLE_BACKTICK___wire:key___SINGLE_BACKTICK___ in loops → unexpected re-rendering
|
||||
- Expecting ___SINGLE_BACKTICK___wire:model___SINGLE_BACKTICK___ real-time → use ___SINGLE_BACKTICK___wire:model.live___SINGLE_BACKTICK___
|
||||
- Unclosed component tags → syntax errors in v4
|
||||
- Using deprecated config keys or JS hooks
|
||||
- Including Alpine.js separately (already bundled in Livewire 4)
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/storage/framework/views/ad752539cb081521e34bf58da7d63fe0.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,64 @@
|
||||
---
|
||||
name: fluxui-development
|
||||
description: "Use this skill for Flux UI development in Livewire applications only. Trigger when working with <flux:*> components, building or customizing Livewire component UIs, creating forms, modals, tables, or other interactive elements. Covers: flux: components (buttons, inputs, modals, forms, tables, date-pickers, kanban, badges, tooltips, etc.), component composition, Tailwind CSS styling, Heroicons/Lucide icon integration, validation patterns, responsive design, and theming. Do not use for non-Livewire frameworks or non-component styling."
|
||||
license: MIT
|
||||
metadata:
|
||||
author: laravel
|
||||
---
|
||||
@php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
@endphp
|
||||
# Flux UI Development
|
||||
|
||||
## Documentation
|
||||
|
||||
Use ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ for detailed Flux UI patterns and documentation.
|
||||
|
||||
## Basic Usage
|
||||
|
||||
This project uses the free edition of Flux UI, which includes all free components and variants but not Pro components.
|
||||
|
||||
Flux UI is a component library for Livewire built with Tailwind CSS. It provides components that are easy to use and customize.
|
||||
|
||||
Use Flux UI components when available. Fall back to standard Blade components when no Flux component exists for your needs.
|
||||
|
||||
___BOOST_SNIPPET_0___
|
||||
|
||||
## Available Components (Free Edition)
|
||||
|
||||
Available: avatar, badge, brand, breadcrumbs, button, callout, card, checkbox, dropdown, field, heading, icon, input, modal, navbar, otp-input, pagination, profile, progress, radio, select, separator, skeleton, switch, table, text, textarea, toast, tooltip
|
||||
|
||||
## Icons
|
||||
|
||||
Flux includes [Heroicons](https://heroicons.com/) as its default icon set. Search for exact icon names on the Heroicons site - do not guess or invent icon names.
|
||||
|
||||
___BOOST_SNIPPET_1___
|
||||
|
||||
For icons not available in Heroicons, use [Lucide](https://lucide.dev/). Import the icons you need with the Artisan command:
|
||||
|
||||
___SINGLE_BACKTICK______SINGLE_BACKTICK______SINGLE_BACKTICK___bash
|
||||
{{ $assist->artisanCommand('flux:icon crown grip-vertical github') }}
|
||||
___SINGLE_BACKTICK______SINGLE_BACKTICK______SINGLE_BACKTICK___
|
||||
|
||||
## Common Patterns
|
||||
|
||||
### Form Fields
|
||||
|
||||
___BOOST_SNIPPET_2___
|
||||
|
||||
### Modals
|
||||
|
||||
___BOOST_SNIPPET_3___
|
||||
|
||||
## Verification
|
||||
|
||||
1. Check component renders correctly
|
||||
2. Test interactive states
|
||||
3. Verify mobile responsiveness
|
||||
|
||||
## Common Pitfalls
|
||||
|
||||
- Trying to use Pro-only components in the free edition
|
||||
- Not checking if a Flux component exists before creating custom implementations
|
||||
- Forgetting to use the ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ tool for component-specific documentation
|
||||
- Not following existing project patterns for Flux usage
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
if (!function_exists('_50d7e9e02b0a09ef19c84ebdf6a22b69')):
|
||||
function _50d7e9e02b0a09ef19c84ebdf6a22b69($__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
|
||||
$__defaults = [
|
||||
'icon' => null,
|
||||
'name' => null,
|
||||
];
|
||||
$icon ??= $attributes['icon'] ?? $__defaults['icon']; unset($attributes['icon']);
|
||||
$name ??= $attributes['name'] ?? $__defaults['name']; unset($attributes['name']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$icon = $name ?? $icon;
|
||||
?>
|
||||
|
||||
<?php $__resolved = $__blaze->resolve('flux::' . 'icon.' . $icon); ?>
|
||||
<?php $__blaze->pushData($attributes->all()); ?>
|
||||
<?php if ($__resolved !== false): ?>
|
||||
<?php if (isset($__slotsa4ee29fd1f7dc8668566bb29201d64b5)) { $__slotsStacka4ee29fd1f7dc8668566bb29201d64b5[] = $__slotsa4ee29fd1f7dc8668566bb29201d64b5; } ?>
|
||||
<?php $__slotsa4ee29fd1f7dc8668566bb29201d64b5 = []; ?>
|
||||
<?php ob_start(); ?><?php echo e($slot); ?><?php $__slotsa4ee29fd1f7dc8668566bb29201d64b5['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__slotsa4ee29fd1f7dc8668566bb29201d64b5 = array_merge($__blaze->mergedComponentSlots(), $__slotsa4ee29fd1f7dc8668566bb29201d64b5); ?>
|
||||
<?php ('_' . $__resolved)($__blaze, $attributes->all(), $__slotsa4ee29fd1f7dc8668566bb29201d64b5, [], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStacka4ee29fd1f7dc8668566bb29201d64b5)) { $__slotsa4ee29fd1f7dc8668566bb29201d64b5 = array_pop($__slotsStacka4ee29fd1f7dc8668566bb29201d64b5); } ?>
|
||||
<?php else: ?>
|
||||
<?php if (!Flux::componentExists($name = 'icon.' . $icon)) throw new \Exception("Flux component [{$name}] does not exist."); ?><?php if (isset($component)) { $__componentOriginal99f5bdde02e072cb5fe2c95dd124b389 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal99f5bdde02e072cb5fe2c95dd124b389 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve([
|
||||
'view' => (app()->version() >= 12 ? hash('xxh128', 'flux') : md5('flux')) . '::' . 'icon.' . $icon,
|
||||
'data' => $__env->getCurrentComponentData(),
|
||||
] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('flux::' . 'icon.' . $icon); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php $component->withAttributes($attributes->getAttributes()); ?><?php echo e($slot); ?> <?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal99f5bdde02e072cb5fe2c95dd124b389)): ?>
|
||||
<?php $attributes = $__attributesOriginal99f5bdde02e072cb5fe2c95dd124b389; ?>
|
||||
<?php unset($__attributesOriginal99f5bdde02e072cb5fe2c95dd124b389); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal99f5bdde02e072cb5fe2c95dd124b389)): ?>
|
||||
<?php $component = $__componentOriginal99f5bdde02e072cb5fe2c95dd124b389; ?>
|
||||
<?php unset($__componentOriginal99f5bdde02e072cb5fe2c95dd124b389); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php unset($__resolved) ?>
|
||||
<?php
|
||||
echo ltrim(ob_get_clean());
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,6 @@
|
||||
# Livewire
|
||||
|
||||
- Livewire allow to build dynamic, reactive interfaces in PHP without writing JavaScript.
|
||||
- You can use Alpine.js for client-side interactions instead of JavaScript frameworks.
|
||||
- Keep state server-side so the UI reflects it. Validate and authorize in actions as you would in HTTP requests.
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/storage/framework/views/535d56990e285f39e3e99bf188f787e4.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,5 @@
|
||||
# Livewire
|
||||
|
||||
- Livewire allow to build dynamic, reactive interfaces in PHP without writing JavaScript.
|
||||
- You can use Alpine.js for client-side interactions instead of JavaScript frameworks.
|
||||
- Keep state server-side so the UI reflects it. Validate and authorize in actions as you would in HTTP requests.
|
||||
@@ -0,0 +1,45 @@
|
||||
@php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
@endphp
|
||||
# Laravel Boost Guidelines
|
||||
|
||||
The Laravel Boost guidelines are specifically curated by Laravel maintainers for this application. These guidelines should be followed closely to ensure the best experience when building Laravel applications.
|
||||
|
||||
## Foundational Context
|
||||
This application is a Laravel application and its main Laravel ecosystems package & versions are below. You are an expert with them all. Ensure you abide by these specific packages & versions.
|
||||
|
||||
- php - {{ PHP_MAJOR_VERSION }}.{{ PHP_MINOR_VERSION }}
|
||||
@foreach (app(\Laravel\Roster\Roster::class)->packages()->unique(fn ($package) => $package->rawName()) as $package)
|
||||
- {{ $package->rawName() }} ({{ $package->name() }}) - v{{ $package->majorVersion() }}
|
||||
@endforeach
|
||||
|
||||
@if (! empty(config('boost.purpose')))
|
||||
Application purpose: {!! config('boost.purpose') !!}
|
||||
|
||||
@endif
|
||||
|
||||
@if($assist->hasSkillsEnabled())
|
||||
## Skills Activation
|
||||
This project has domain-specific skills available in ___SINGLE_BACKTICK___**/skills/**___SINGLE_BACKTICK___. You MUST activate the relevant skill whenever you work in that domain—don't wait until you're stuck.
|
||||
@endif
|
||||
|
||||
## Conventions
|
||||
- You must follow all existing code conventions used in this application. When creating or editing a file, check sibling files for the correct structure, approach, and naming.
|
||||
- Use descriptive names for variables and methods. For example, ___SINGLE_BACKTICK___isRegisteredForDiscounts___SINGLE_BACKTICK___, not ___SINGLE_BACKTICK___discount()___SINGLE_BACKTICK___.
|
||||
- Check for existing components to reuse before writing a new one.
|
||||
|
||||
## Verification Scripts
|
||||
- Do not create verification scripts or tinker when tests cover that functionality and prove they work. Unit and feature tests are more important.
|
||||
|
||||
## Application Structure & Architecture
|
||||
- Stick to existing directory structure; don't create new base folders without approval.
|
||||
- Do not change the application's dependencies without approval.
|
||||
|
||||
## Frontend Bundling
|
||||
- If the user doesn't see a frontend change reflected in the UI, it could mean they need to run ___SINGLE_BACKTICK___{{ $assist->nodePackageManagerCommand('run build') }}___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___{{ $assist->nodePackageManagerCommand('run dev') }}___SINGLE_BACKTICK___, or ___SINGLE_BACKTICK___{{ $assist->composerCommand('run dev') }}___SINGLE_BACKTICK___. Ask them.
|
||||
|
||||
## Documentation Files
|
||||
- You must only create documentation files if explicitly requested by the user.
|
||||
|
||||
## Replies
|
||||
- Be concise in your explanations - focus on what's important rather than explaining obvious details.
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php if (isset($component)) { $__componentOriginal81a506f898233b9e7d58286e6bea3c18 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal81a506f898233b9e7d58286e6bea3c18 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f4ac99e09542ff494432bc959d4fee61::app','data' => ['title' => __('Payments')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('layouts::app'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Payments'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<div class="space-y-6">
|
||||
<div class="rounded-3xl bg-white p-6 shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800">
|
||||
<h1 class="text-2xl font-bold">Payments and overrides</h1>
|
||||
<form method="POST" action="<?php echo e(route('platform.payments.store')); ?>" class="mt-5 grid gap-4 md:grid-cols-6">
|
||||
<?php echo csrf_field(); ?>
|
||||
<select name="company_id" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950"><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $companies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $company): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?><option value="<?php echo e($company->id); ?>"><?php echo e($company->name); ?></option><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?></select>
|
||||
<input name="amount" type="number" value="0" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||
<input name="currency" value="gbp" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950" required>
|
||||
<select name="status" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950"><option>paid</option><option>pending</option><option>failed</option><option>refunded</option><option>override</option></select>
|
||||
<input name="description" placeholder="Description" class="rounded-xl border-zinc-300 dark:border-zinc-700 dark:bg-zinc-950">
|
||||
<button class="rounded-xl bg-zinc-900 px-4 py-2 font-semibold text-white dark:bg-white dark:text-zinc-900">Add</button>
|
||||
</form>
|
||||
</div>
|
||||
<div class="overflow-x-auto rounded-2xl bg-white shadow-sm ring-1 ring-zinc-200 dark:bg-zinc-900 dark:ring-zinc-800"><table class="min-w-full text-sm"><thead><tr class="border-b"><th class="p-4 text-left">Company</th><th class="p-4 text-left">Amount</th><th class="p-4 text-left">Status</th><th class="p-4 text-left">Description</th></tr></thead><tbody><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = $payments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $payment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?><tr class="border-b border-zinc-100 dark:border-zinc-800"><td class="p-4"><?php echo e($payment->company->name); ?></td><td class="p-4 font-semibold"><?php echo e(strtoupper($payment->currency)); ?> <?php echo e(number_format($payment->amount / 100, 2)); ?></td><td class="p-4"><?php echo e($payment->status); ?></td><td class="p-4"><?php echo e($payment->description); ?></td></tr><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?></tbody></table></div>
|
||||
<?php echo e($payments->links()); ?>
|
||||
|
||||
</div>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal81a506f898233b9e7d58286e6bea3c18)): ?>
|
||||
<?php $attributes = $__attributesOriginal81a506f898233b9e7d58286e6bea3c18; ?>
|
||||
<?php unset($__attributesOriginal81a506f898233b9e7d58286e6bea3c18); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal81a506f898233b9e7d58286e6bea3c18)): ?>
|
||||
<?php $component = $__componentOriginal81a506f898233b9e7d58286e6bea3c18; ?>
|
||||
<?php unset($__componentOriginal81a506f898233b9e7d58286e6bea3c18); ?>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/modules/Platform/Providers/../resources/views/payments/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,121 @@
|
||||
<?php # [BlazeFolded]:{flux::heading}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/heading.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::subheading}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/subheading.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::button}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::modal.trigger}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/modal/trigger.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::heading}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/heading.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::subheading}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/subheading.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::button}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::modal.close}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/modal/close.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::button}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::modal}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/modal/index.blade.php}:{1776985208} ?>
|
||||
<section class="mt-10 space-y-6">
|
||||
<div class="relative mb-5">
|
||||
<?php ob_start(); ?><div class="font-medium [:where(&)]:text-zinc-800 [:where(&)]:dark:text-white text-sm [&:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&]:mt-2" data-flux-heading><?php ob_start(); ?><?php echo e(__('Delete account')); ?><?php echo trim(ob_get_clean()); ?></div>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php ob_start(); ?><div class="text-sm [:where(&)]:text-zinc-500 [:where(&)]:dark:text-white/70" data-flux-subheading>
|
||||
<?php ob_start(); ?><?php echo e(__('Delete your account and all of its resources')); ?><?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</div>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</div>
|
||||
|
||||
<?php ob_start(); ?><div
|
||||
class="contents"
|
||||
x-data
|
||||
x-on:click="$el.querySelector('button[disabled]') || $dispatch('modal-show', { name: 'confirm-user-deletion' })"
|
||||
data-flux-modal-trigger
|
||||
>
|
||||
<?php ob_start(); ?>
|
||||
<?php ob_start(); ?><button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-10 text-sm rounded-lg ps-4 pe-4 inline-flex bg-red-500 hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-500 text-white shadow-[inset_0px_1px_var(--color-red-500),inset_0px_2px_--theme(--color-white/.15)] dark:shadow-none [[data-flux-button-group]_&]:border-e [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 [[data-flux-button-group]_&]:border-red-600 dark:[[data-flux-button-group]_&]:border-red-900/25" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" x-data="" x-on:click.prevent="$dispatch('open-modal', 'confirm-user-deletion')">
|
||||
<?php ob_start(); ?>
|
||||
<?php echo e(__('Delete account')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</div>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<?php ob_start(); ?><ui-modal <?php if (($__blazeAttr = $errors->isNotEmpty()) !== false && !is_null($__blazeAttr)): ?>show="<?php echo e($__blazeAttr === true ? 'show' : $__blazeAttr); ?>"<?php endif; unset($__blazeAttr); ?> focusable="focusable" data-flux-modal>
|
||||
|
||||
<dialog
|
||||
wire:ignore.self
|
||||
class="p-6 [:where(&)]:max-w-xl [:where(&)]:min-w-xs shadow-lg rounded-xl bg-white dark:bg-zinc-800 ring ring-black/5 dark:ring-zinc-700 shadow-lg rounded-xl max-w-lg"
|
||||
data-modal="confirm-user-deletion" <?php if (isset($scope)) $__scope = $scope; ?><?php $scope = array (
|
||||
'name' => 'confirm-user-deletion',
|
||||
); ?>
|
||||
x-data="fluxModal(<?php echo \Illuminate\Support\Js::from($scope['name'])->toHtml() ?>, <?php echo \Illuminate\Support\Js::from(isset($__livewire) ? $__livewire->getId() : null)->toHtml() ?>)"
|
||||
<?php if (isset($__scope)) { $scope = $__scope; unset($__scope); } ?>
|
||||
x-on:modal-show.document="handleShow($event)"
|
||||
x-on:modal-close.document="handleClose($event)"
|
||||
>
|
||||
<?php ob_start(); ?>
|
||||
<form method="POST" wire:submit="deleteUser" class="space-y-6">
|
||||
<div>
|
||||
<?php ob_start(); ?><div class="font-medium [:where(&)]:text-zinc-800 [:where(&)]:dark:text-white text-base [&:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&]:mt-2" data-flux-heading><?php ob_start(); ?><?php echo e(__('Are you sure you want to delete your account?')); ?><?php echo trim(ob_get_clean()); ?></div>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<?php ob_start(); ?><div class="text-sm [:where(&)]:text-zinc-500 [:where(&)]:dark:text-white/70" data-flux-subheading>
|
||||
<?php ob_start(); ?>
|
||||
<?php echo e(__('Once your account is deleted, all of its resources and data will be permanently deleted. Please enter your password to confirm you would like to permanently delete your account.')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</div>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</div>
|
||||
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/index.blade.php', $__blaze->compiledPath.'/0895d97ac72dcf2060e8a83465f0c2ce.php'); ?>
|
||||
<?php $__blaze->pushData(['wire:model' => 'password','label' => __('Password'),'type' => 'password','viewable' => true]); ?>
|
||||
<?php _0895d97ac72dcf2060e8a83465f0c2ce($__blaze, ['wire:model' => 'password','label' => __('Password'),'type' => 'password','viewable' => true], [], ['label', 'viewable'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
|
||||
<div class="flex justify-end space-x-2 rtl:space-x-reverse">
|
||||
<?php ob_start(); ?><ui-close data-flux-modal-close >
|
||||
<?php ob_start(); ?>
|
||||
<?php ob_start(); ?><button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-10 text-sm rounded-lg ps-4 pe-4 inline-flex bg-zinc-800/5 hover:bg-zinc-800/10 dark:bg-white/10 dark:hover:bg-white/20 text-zinc-800 dark:text-white [[data-flux-button-group]_&]:border-e [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 [[data-flux-button-group]_&]:border-zinc-200/80 dark:[[data-flux-button-group]_&]:border-zinc-900/50" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target">
|
||||
<?php ob_start(); ?><?php echo e(__('Cancel')); ?><?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</ui-close>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
|
||||
<?php ob_start(); ?><button type="submit" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-10 text-sm rounded-lg ps-4 pe-4 inline-flex bg-red-500 hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-500 text-white shadow-[inset_0px_1px_var(--color-red-500),inset_0px_2px_--theme(--color-white/.15)] dark:shadow-none [[data-flux-button-group]_&]:border-e [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 [[data-flux-button-group]_&]:border-red-600 dark:[[data-flux-button-group]_&]:border-red-900/25 *:transition-opacity [&[disabled]>:not([data-flux-loading-indicator])]:opacity-0 [&[disabled]>[data-flux-loading-indicator]]:opacity-100 [&[disabled]]:pointer-events-none" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target">
|
||||
<div class="absolute inset-0 flex items-center justify-center opacity-0" data-flux-loading-indicator>
|
||||
<svg class="shrink-0 [:where(&)]:size-4 animate-spin" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
|
||||
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
||||
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<span><?php ob_start(); ?><?php echo e(__('Delete account')); ?><?php echo trim(ob_get_clean()); ?></span>
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</div>
|
||||
</form>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
|
||||
<div class="absolute top-0 end-0 mt-4 me-4">
|
||||
<ui-close data-flux-modal-close >
|
||||
<button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-8 text-sm rounded-md w-8 inline-flex bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-800 dark:text-white text-zinc-400! hover:text-zinc-800! dark:text-zinc-500! dark:hover:text-white!" data-flux-button="data-flux-button" aria-label="Close modal">
|
||||
<svg class="shrink-0 [:where(&)]:size-5" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"/>
|
||||
</svg>
|
||||
</button>
|
||||
</ui-close>
|
||||
</div>
|
||||
</dialog>
|
||||
</ui-modal>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</section>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/livewire/settings/delete-user-form.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,121 @@
|
||||
<?php # [BlazeFolded]:{flux::button}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php}:{1776985208} ?>
|
||||
<?php if (isset($component)) { $__componentOriginal08b8a564843783787e0bee3357e24f38 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal08b8a564843783787e0bee3357e24f38 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f4ac99e09542ff494432bc959d4fee61::auth','data' => ['title' => __('Confirm password')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('layouts::auth'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Confirm password'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<div class="flex flex-col gap-6">
|
||||
<?php if (isset($component)) { $__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.auth-header','data' => ['title' => __('Confirm password'),'description' => __('This is a secure area of the application. Please confirm your password before continuing.')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('auth-header'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Confirm password')),'description' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('This is a secure area of the application. Please confirm your password before continuing.'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd)): ?>
|
||||
<?php $attributes = $__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd; ?>
|
||||
<?php unset($__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd)): ?>
|
||||
<?php $component = $__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd; ?>
|
||||
<?php unset($__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.auth-session-status','data' => ['class' => 'text-center','status' => session('status')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('auth-session-status'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['class' => 'text-center','status' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(session('status'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5)): ?>
|
||||
<?php $attributes = $__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5; ?>
|
||||
<?php unset($__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5)): ?>
|
||||
<?php $component = $__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5; ?>
|
||||
<?php unset($__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal360dec750a5c22110ff2b6afe54f0581 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal360dec750a5c22110ff2b6afe54f0581 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.passkey-verify','data' => ['optionsRoute' => 'passkey.confirm-options','submitRoute' => 'passkey.confirm','label' => __('Confirm with passkey'),'loadingLabel' => __('Confirming...'),'separator' => __('Or confirm with password')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('passkey-verify'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['options-route' => 'passkey.confirm-options','submit-route' => 'passkey.confirm','label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Confirm with passkey')),'loading-label' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Confirming...')),'separator' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Or confirm with password'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal360dec750a5c22110ff2b6afe54f0581)): ?>
|
||||
<?php $attributes = $__attributesOriginal360dec750a5c22110ff2b6afe54f0581; ?>
|
||||
<?php unset($__attributesOriginal360dec750a5c22110ff2b6afe54f0581); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal360dec750a5c22110ff2b6afe54f0581)): ?>
|
||||
<?php $component = $__componentOriginal360dec750a5c22110ff2b6afe54f0581; ?>
|
||||
<?php unset($__componentOriginal360dec750a5c22110ff2b6afe54f0581); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="POST" action="<?php echo e(route('password.confirm.store')); ?>" class="flex flex-col gap-6">
|
||||
<?php echo csrf_field(); ?>
|
||||
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/index.blade.php', $__blaze->compiledPath.'/0895d97ac72dcf2060e8a83465f0c2ce.php'); ?>
|
||||
<?php $__blaze->pushData(['name' => 'password','label' => __('Password'),'type' => 'password','required' => true,'autocomplete' => 'current-password','placeholder' => __('Password'),'viewable' => true]); ?>
|
||||
<?php _0895d97ac72dcf2060e8a83465f0c2ce($__blaze, ['name' => 'password','label' => __('Password'),'type' => 'password','required' => true,'autocomplete' => 'current-password','placeholder' => __('Password'),'viewable' => true], [], ['label', 'required', 'placeholder', 'viewable'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
|
||||
<?php ob_start(); ?><button type="submit" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-10 text-sm rounded-lg ps-4 pe-4 inline-flex bg-[var(--color-accent)] hover:bg-[color-mix(in_oklab,_var(--color-accent),_transparent_10%)] text-[var(--color-accent-foreground)] border border-black/10 dark:border-0 shadow-[inset_0px_1px_--theme(--color-white/.2)] [[data-flux-button-group]_&]:border-e-0 [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-[1px] dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-s-[1px] [:is([data-flux-button-group]>&:not(:first-child),_[data-flux-button-group]_:not(:first-child)>&)]:border-s-[color-mix(in_srgb,var(--color-accent-foreground),transparent_85%)] *:transition-opacity [&[disabled]>:not([data-flux-loading-indicator])]:opacity-0 [&[disabled]>[data-flux-loading-indicator]]:opacity-100 [&[disabled]]:pointer-events-none w-full" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" data-test="confirm-password-button">
|
||||
<div class="absolute inset-0 flex items-center justify-center opacity-0" data-flux-loading-indicator>
|
||||
<svg class="shrink-0 [:where(&)]:size-4 animate-spin" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
|
||||
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
||||
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<span><?php ob_start(); ?>
|
||||
<?php echo e(__('Confirm')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?></span>
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</form>
|
||||
</div>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal08b8a564843783787e0bee3357e24f38)): ?>
|
||||
<?php $attributes = $__attributesOriginal08b8a564843783787e0bee3357e24f38; ?>
|
||||
<?php unset($__attributesOriginal08b8a564843783787e0bee3357e24f38); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal08b8a564843783787e0bee3357e24f38)): ?>
|
||||
<?php $component = $__componentOriginal08b8a564843783787e0bee3357e24f38; ?>
|
||||
<?php unset($__componentOriginal08b8a564843783787e0bee3357e24f38); ?>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/livewire/auth/confirm-password.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,66 @@
|
||||
---
|
||||
name: fluxui-development
|
||||
description: "Use this skill for Flux UI development in Livewire applications only. Trigger when working with <flux:*> components, building or customizing Livewire component UIs, creating forms, modals, tables, or other interactive elements. Covers: flux: components (buttons, inputs, modals, forms, tables, date-pickers, kanban, badges, tooltips, etc.), component composition, Tailwind CSS styling, Heroicons/Lucide icon integration, validation patterns, responsive design, and theming. Do not use for non-Livewire frameworks or non-component styling."
|
||||
license: MIT
|
||||
metadata:
|
||||
author: laravel
|
||||
---
|
||||
<?php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
?>
|
||||
# Flux UI Development
|
||||
|
||||
## Documentation
|
||||
|
||||
Use ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ for detailed Flux UI patterns and documentation.
|
||||
|
||||
## Basic Usage
|
||||
|
||||
This project uses the free edition of Flux UI, which includes all free components and variants but not Pro components.
|
||||
|
||||
Flux UI is a component library for Livewire built with Tailwind CSS. It provides components that are easy to use and customize.
|
||||
|
||||
Use Flux UI components when available. Fall back to standard Blade components when no Flux component exists for your needs.
|
||||
|
||||
___BOOST_SNIPPET_0___
|
||||
|
||||
## Available Components (Free Edition)
|
||||
|
||||
Available: avatar, badge, brand, breadcrumbs, button, callout, card, checkbox, dropdown, field, heading, icon, input, modal, navbar, otp-input, pagination, profile, progress, radio, select, separator, skeleton, switch, table, text, textarea, toast, tooltip
|
||||
|
||||
## Icons
|
||||
|
||||
Flux includes [Heroicons](https://heroicons.com/) as its default icon set. Search for exact icon names on the Heroicons site - do not guess or invent icon names.
|
||||
|
||||
___BOOST_SNIPPET_1___
|
||||
|
||||
For icons not available in Heroicons, use [Lucide](https://lucide.dev/). Import the icons you need with the Artisan command:
|
||||
|
||||
___SINGLE_BACKTICK______SINGLE_BACKTICK______SINGLE_BACKTICK___bash
|
||||
<?php echo e($assist->artisanCommand('flux:icon crown grip-vertical github')); ?>
|
||||
|
||||
___SINGLE_BACKTICK______SINGLE_BACKTICK______SINGLE_BACKTICK___
|
||||
|
||||
## Common Patterns
|
||||
|
||||
### Form Fields
|
||||
|
||||
___BOOST_SNIPPET_2___
|
||||
|
||||
### Modals
|
||||
|
||||
___BOOST_SNIPPET_3___
|
||||
|
||||
## Verification
|
||||
|
||||
1. Check component renders correctly
|
||||
2. Test interactive states
|
||||
3. Verify mobile responsiveness
|
||||
|
||||
## Common Pitfalls
|
||||
|
||||
- Trying to use Pro-only components in the free edition
|
||||
- Not checking if a Flux component exists before creating custom implementations
|
||||
- Forgetting to use the ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ tool for component-specific documentation
|
||||
- Not following existing project patterns for Flux usage
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/storage/framework/views/4ac1e3a0546377b4cde6befc3251bc22.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,110 @@
|
||||
<?php # [BlazeFolded]:{flux::toast}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/toast/index.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::toast.group}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/toast/group.blade.php}:{1776985208} ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?php echo e(str_replace('_', '-', app()->getLocale())); ?>" class="dark">
|
||||
<head>
|
||||
<?php echo $__env->make('partials.head', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
|
||||
</head>
|
||||
<body class="min-h-screen bg-white antialiased dark:bg-linear-to-b dark:from-neutral-950 dark:to-neutral-900">
|
||||
<div class="bg-background flex min-h-svh flex-col items-center justify-center gap-6 p-6 md:p-10">
|
||||
<div class="flex w-full max-w-sm flex-col gap-2">
|
||||
<a href="<?php echo e(route('home')); ?>" class="flex flex-col items-center gap-2 font-medium" wire:navigate>
|
||||
<span class="flex h-9 w-9 mb-1 items-center justify-center rounded-md">
|
||||
<?php if (isset($component)) { $__componentOriginal159d6670770cb479b1921cea6416c26c = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal159d6670770cb479b1921cea6416c26c = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.app-logo-icon','data' => ['class' => 'size-9 fill-current text-black dark:text-white']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('app-logo-icon'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['class' => 'size-9 fill-current text-black dark:text-white']); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal159d6670770cb479b1921cea6416c26c)): ?>
|
||||
<?php $attributes = $__attributesOriginal159d6670770cb479b1921cea6416c26c; ?>
|
||||
<?php unset($__attributesOriginal159d6670770cb479b1921cea6416c26c); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal159d6670770cb479b1921cea6416c26c)): ?>
|
||||
<?php $component = $__componentOriginal159d6670770cb479b1921cea6416c26c; ?>
|
||||
<?php unset($__componentOriginal159d6670770cb479b1921cea6416c26c); ?>
|
||||
<?php endif; ?>
|
||||
</span>
|
||||
<span class="sr-only"><?php echo e(config('app.name', 'Laravel')); ?></span>
|
||||
</a>
|
||||
<div class="flex flex-col gap-6">
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php app("livewire")->forceAssetInjection(); ?><div x-persist="<?php echo e('toast'); ?>">
|
||||
<?php ob_start(); ?><ui-toast-group x-data x-on:toast-show.document="$el.showToast($event.detail)" popover="manual" position="bottom end" wire:ignore>
|
||||
<?php ob_start(); ?>
|
||||
<?php ob_start(); ?><ui-toast x-data x-on:toast-show.document="! $el.closest('ui-toast-group') && $el.showToast($event.detail)" popover="manual" position="bottom end" wire:ignore>
|
||||
<template>
|
||||
<div class="max-w-sm in-[ui-toast-group]:max-w-auto in-[ui-toast-group]:w-xs sm:in-[ui-toast-group]:w-sm" data-variant="" data-flux-toast-dialog>
|
||||
<div class="p-2 flex rounded-xl shadow-lg bg-white border border-zinc-200 border-b-zinc-300/80 dark:bg-zinc-700 dark:border-zinc-600">
|
||||
<div class="flex-1 flex items-start gap-4 overflow-hidden">
|
||||
<div class="flex-1 py-1.5 ps-2.5 flex gap-2">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="hidden [[data-flux-toast-dialog][data-variant=success]_&]:block shrink-0 mt-0.5 size-4 text-lime-600 dark:text-lime-400">
|
||||
<path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm3.844-8.791a.75.75 0 0 0-1.188-.918l-3.7 4.79-1.649-1.833a.75.75 0 1 0-1.114 1.004l2.25 2.5a.75.75 0 0 0 1.15-.043l4.25-5.5Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="hidden [[data-flux-toast-dialog][data-variant=warning]_&]:block shrink-0 mt-0.5 size-4 text-amber-500 dark:text-amber-400">
|
||||
<path fill-rule="evenodd" d="M6.701 2.25c.577-1 2.02-1 2.598 0l5.196 9a1.5 1.5 0 0 1-1.299 2.25H2.804a1.5 1.5 0 0 1-1.3-2.25l5.197-9ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 1 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="hidden [[data-flux-toast-dialog][data-variant=info]_&]:block shrink-0 mt-0.5 size-4 text-cyan-500 dark:text-cyan-400">
|
||||
<path fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM9 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6.75 8a.75.75 0 0 0 0 1.5h.75v1.75a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8.25 8h-1.5Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="hidden [[data-flux-toast-dialog][data-variant=danger]_&]:block shrink-0 mt-0.5 size-4 text-rose-500 dark:text-rose-400">
|
||||
<path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
<div>
|
||||
|
||||
<div class="font-medium text-sm text-zinc-800 dark:text-white [&:not(:empty)+div]:font-normal [&:not(:empty)+div]:text-zinc-500 [&:not(:empty)+div]:dark:text-zinc-300 [&:not(:empty)]:pb-2"><slot name="heading"></slot></div>
|
||||
|
||||
|
||||
<div class="font-medium text-sm text-zinc-800 dark:text-white"><slot name="text"></slot></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<ui-close class="flex items-center">
|
||||
<button type="button" class="inline-flex items-center font-medium justify-center gap-2 truncate disabled:opacity-50 dark:disabled:opacity-75 disabled:cursor-default h-8 text-sm rounded-md w-8 bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-400 hover:text-zinc-800 dark:text-zinc-400 dark:hover:text-white" as="button">
|
||||
<div>
|
||||
<svg class="[:where(&)]:size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
</button>
|
||||
</ui-close>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</ui-toast>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<?php echo trim(ob_get_clean()); ?>
|
||||
|
||||
</ui-toast-group>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</div>
|
||||
|
||||
<?php app('livewire')->forceAssetInjection(); ?>
|
||||
<?php echo app('flux')->scripts(); ?>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/layouts/auth/simple.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if (!function_exists('_5ec778b1aa882f8b7aabac54709aa20e')):
|
||||
function _5ec778b1aa882f8b7aabac54709aa20e($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M12 9v3.75m-9.303 3.376c-.866 1.5.217 3.374 1.948 3.374h14.71c1.73 0 2.813-1.874 1.948-3.374L13.949 3.378c-.866-1.5-3.032-1.5-3.898 0L2.697 16.126ZM12 15.75h.007v.008H12v-.008Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495ZM10 5a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 10 5Zm0 9a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M6.701 2.25c.577-1 2.02-1 2.598 0l5.196 9a1.5 1.5 0 0 1-1.299 2.25H2.804a1.5 1.5 0 0 1-1.3-2.25l5.197-9ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 1 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo ltrim(ob_get_clean());
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/exclamation-triangle.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
if (!function_exists('_690ba2faedbff09a45948cdea5004741')):
|
||||
function _690ba2faedbff09a45948cdea5004741($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
$errors = $__blaze->errors;
|
||||
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
|
||||
$__defaults = [
|
||||
'icon' => 'exclamation-triangle',
|
||||
'bag' => 'default',
|
||||
'message' => null,
|
||||
'deep' => true,
|
||||
'nested' => true,
|
||||
'name' => null,
|
||||
];
|
||||
$icon ??= $attributes['icon'] ?? $__defaults['icon']; unset($attributes['icon']);
|
||||
$bag ??= $attributes['bag'] ?? $__defaults['bag']; unset($attributes['bag']);
|
||||
$message ??= $attributes['message'] ?? $__defaults['message']; unset($attributes['message']);
|
||||
$deep ??= $attributes['deep'] ?? $__defaults['deep']; unset($attributes['deep']);
|
||||
$nested ??= $attributes['nested'] ?? $__defaults['nested']; unset($attributes['nested']);
|
||||
$name ??= $attributes['name'] ?? $__defaults['name']; unset($attributes['name']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$errorBag = $errors->getBag($bag);
|
||||
$message ??= $name ? $errorBag->first($name) : null;
|
||||
|
||||
// Backwards compatibility...
|
||||
if ($nested === false) {
|
||||
$deep = false;
|
||||
}
|
||||
|
||||
if ($name && (is_null($message) || $message === '') && filter_var($deep, FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE) !== false) {
|
||||
$message = $errorBag->first($name . '.*');
|
||||
}
|
||||
|
||||
$classes = Flux::classes('mt-3 text-sm font-medium text-red-500 dark:text-red-400')
|
||||
->add($message ? '' : 'hidden');
|
||||
?>
|
||||
|
||||
<div role="alert" aria-live="polite" aria-atomic="true" <?php echo e($attributes->class($classes)); ?> data-flux-error>
|
||||
<?php if ($message) : ?>
|
||||
<?php if ($icon) : ?>
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['name' => $icon, 'variant' => 'mini', 'class' => 'inline']); ?><?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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['name' => $icon,'variant' => 'mini','class' => 'inline']); ?>
|
||||
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['name' => $icon,'variant' => 'mini','class' => 'inline'], [], ['name'], [], $__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 endif; ?>
|
||||
|
||||
<?php echo e($message); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php
|
||||
echo ltrim(ob_get_clean());
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/error.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,125 @@
|
||||
<?php
|
||||
if (!function_exists('_6d9b56edd9c9c8e51fa8e057a8020521')):
|
||||
function _6d9b56edd9c9c8e51fa8e057a8020521($__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, [
|
||||
'name',
|
||||
'descriptionTrailing',
|
||||
'description',
|
||||
'label',
|
||||
'badge',
|
||||
]));
|
||||
?>
|
||||
|
||||
<?php $descriptionTrailing = $descriptionTrailing ??= $attributes->pluck('description:trailing'); ?>
|
||||
|
||||
<?php
|
||||
$__defaults = [
|
||||
'name' => $attributes->whereStartsWith('wire:model')->first(),
|
||||
'descriptionTrailing' => null,
|
||||
'description' => null,
|
||||
'label' => null,
|
||||
'badge' => null,
|
||||
];
|
||||
$name ??= $attributes['name'] ?? $__defaults['name']; unset($attributes['name']);
|
||||
$descriptionTrailing ??= $attributes['description-trailing'] ?? $attributes['descriptionTrailing'] ?? $__defaults['descriptionTrailing']; unset($attributes['descriptionTrailing'], $attributes['description-trailing']);
|
||||
$description ??= $attributes['description'] ?? $__defaults['description']; unset($attributes['description']);
|
||||
$label ??= $attributes['label'] ?? $__defaults['label']; unset($attributes['label']);
|
||||
$badge ??= $attributes['badge'] ?? $__defaults['badge']; unset($attributes['badge']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php if (isset($label) || isset($description)): ?>
|
||||
<?php
|
||||
|
||||
$fieldAttributes = Flux::attributesAfter('field:', $attributes, []);
|
||||
$labelAttributes = Flux::attributesAfter('label:', $attributes, ['badge' => $badge]);
|
||||
$descriptionAttributes = Flux::attributesAfter('description:', $attributes, []);
|
||||
$errorAttributes = Flux::attributesAfter('error:', $attributes, ['name' => $name]);
|
||||
?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/field.blade.php', $__blaze->compiledPath.'/fb217b67c45072adcf77500afdd69d1a.php'); ?>
|
||||
<?php if (isset($__slotsfb217b67c45072adcf77500afdd69d1a)) { $__slotsStackfb217b67c45072adcf77500afdd69d1a[] = $__slotsfb217b67c45072adcf77500afdd69d1a; } ?>
|
||||
<?php if (isset($__attrsfb217b67c45072adcf77500afdd69d1a)) { $__attrsStackfb217b67c45072adcf77500afdd69d1a[] = $__attrsfb217b67c45072adcf77500afdd69d1a; } ?>
|
||||
<?php $__attrsfb217b67c45072adcf77500afdd69d1a = ['attributes' => $fieldAttributes]; ?>
|
||||
<?php $__slotsfb217b67c45072adcf77500afdd69d1a = []; ?>
|
||||
<?php $__blaze->pushData($__attrsfb217b67c45072adcf77500afdd69d1a); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php if (isset($label)): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/label.blade.php', $__blaze->compiledPath.'/f677e0126eb302fcb55ee4e72ad0d7c5.php'); ?>
|
||||
<?php if (isset($__slotsf677e0126eb302fcb55ee4e72ad0d7c5)) { $__slotsStackf677e0126eb302fcb55ee4e72ad0d7c5[] = $__slotsf677e0126eb302fcb55ee4e72ad0d7c5; } ?>
|
||||
<?php if (isset($__attrsf677e0126eb302fcb55ee4e72ad0d7c5)) { $__attrsStackf677e0126eb302fcb55ee4e72ad0d7c5[] = $__attrsf677e0126eb302fcb55ee4e72ad0d7c5; } ?>
|
||||
<?php $__attrsf677e0126eb302fcb55ee4e72ad0d7c5 = ['attributes' => $labelAttributes]; ?>
|
||||
<?php $__slotsf677e0126eb302fcb55ee4e72ad0d7c5 = []; ?>
|
||||
<?php $__blaze->pushData($__attrsf677e0126eb302fcb55ee4e72ad0d7c5); ?>
|
||||
<?php ob_start(); ?><?php echo e($label); ?><?php $__slotsf677e0126eb302fcb55ee4e72ad0d7c5['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__blaze->pushSlots($__slotsf677e0126eb302fcb55ee4e72ad0d7c5); ?>
|
||||
<?php _f677e0126eb302fcb55ee4e72ad0d7c5($__blaze, $__attrsf677e0126eb302fcb55ee4e72ad0d7c5, $__slotsf677e0126eb302fcb55ee4e72ad0d7c5, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStackf677e0126eb302fcb55ee4e72ad0d7c5)) { $__slotsf677e0126eb302fcb55ee4e72ad0d7c5 = array_pop($__slotsStackf677e0126eb302fcb55ee4e72ad0d7c5); } ?>
|
||||
<?php if (! empty($__attrsStackf677e0126eb302fcb55ee4e72ad0d7c5)) { $__attrsf677e0126eb302fcb55ee4e72ad0d7c5 = array_pop($__attrsStackf677e0126eb302fcb55ee4e72ad0d7c5); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($description)): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/description.blade.php', $__blaze->compiledPath.'/702ed166cbd8171f216fd13166b9bad7.php'); ?>
|
||||
<?php if (isset($__slots702ed166cbd8171f216fd13166b9bad7)) { $__slotsStack702ed166cbd8171f216fd13166b9bad7[] = $__slots702ed166cbd8171f216fd13166b9bad7; } ?>
|
||||
<?php if (isset($__attrs702ed166cbd8171f216fd13166b9bad7)) { $__attrsStack702ed166cbd8171f216fd13166b9bad7[] = $__attrs702ed166cbd8171f216fd13166b9bad7; } ?>
|
||||
<?php $__attrs702ed166cbd8171f216fd13166b9bad7 = ['attributes' => $descriptionAttributes]; ?>
|
||||
<?php $__slots702ed166cbd8171f216fd13166b9bad7 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs702ed166cbd8171f216fd13166b9bad7); ?>
|
||||
<?php ob_start(); ?><?php echo e($description); ?><?php $__slots702ed166cbd8171f216fd13166b9bad7['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots702ed166cbd8171f216fd13166b9bad7); ?>
|
||||
<?php _702ed166cbd8171f216fd13166b9bad7($__blaze, $__attrs702ed166cbd8171f216fd13166b9bad7, $__slots702ed166cbd8171f216fd13166b9bad7, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack702ed166cbd8171f216fd13166b9bad7)) { $__slots702ed166cbd8171f216fd13166b9bad7 = array_pop($__slotsStack702ed166cbd8171f216fd13166b9bad7); } ?>
|
||||
<?php if (! empty($__attrsStack702ed166cbd8171f216fd13166b9bad7)) { $__attrs702ed166cbd8171f216fd13166b9bad7 = array_pop($__attrsStack702ed166cbd8171f216fd13166b9bad7); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
|
||||
|
||||
<?php $__getScope = fn($scope = []) => $scope; ?><?php if (isset($scope)) $__scope = $scope; ?><?php $scope = $__getScope(scope: ['attributes' => $errorAttributes->getAttributes()]); ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/error.blade.php', $__blaze->compiledPath.'/690ba2faedbff09a45948cdea5004741.php'); ?>
|
||||
<?php $__blaze->pushData(['attributes' => new \Illuminate\View\ComponentAttributeBag($scope['attributes'])]); ?>
|
||||
<?php _690ba2faedbff09a45948cdea5004741($__blaze, ['attributes' => new \Illuminate\View\ComponentAttributeBag($scope['attributes'])], [], ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php if (isset($__scope)) { $scope = $__scope; unset($__scope); } ?>
|
||||
|
||||
<?php if (isset($descriptionTrailing)): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/description.blade.php', $__blaze->compiledPath.'/702ed166cbd8171f216fd13166b9bad7.php'); ?>
|
||||
<?php if (isset($__slots702ed166cbd8171f216fd13166b9bad7)) { $__slotsStack702ed166cbd8171f216fd13166b9bad7[] = $__slots702ed166cbd8171f216fd13166b9bad7; } ?>
|
||||
<?php if (isset($__attrs702ed166cbd8171f216fd13166b9bad7)) { $__attrsStack702ed166cbd8171f216fd13166b9bad7[] = $__attrs702ed166cbd8171f216fd13166b9bad7; } ?>
|
||||
<?php $__attrs702ed166cbd8171f216fd13166b9bad7 = ['attributes' => $descriptionAttributes]; ?>
|
||||
<?php $__slots702ed166cbd8171f216fd13166b9bad7 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs702ed166cbd8171f216fd13166b9bad7); ?>
|
||||
<?php ob_start(); ?><?php echo e($descriptionTrailing); ?><?php $__slots702ed166cbd8171f216fd13166b9bad7['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots702ed166cbd8171f216fd13166b9bad7); ?>
|
||||
<?php _702ed166cbd8171f216fd13166b9bad7($__blaze, $__attrs702ed166cbd8171f216fd13166b9bad7, $__slots702ed166cbd8171f216fd13166b9bad7, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack702ed166cbd8171f216fd13166b9bad7)) { $__slots702ed166cbd8171f216fd13166b9bad7 = array_pop($__slotsStack702ed166cbd8171f216fd13166b9bad7); } ?>
|
||||
<?php if (! empty($__attrsStack702ed166cbd8171f216fd13166b9bad7)) { $__attrs702ed166cbd8171f216fd13166b9bad7 = array_pop($__attrsStack702ed166cbd8171f216fd13166b9bad7); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php endif; ?>
|
||||
<?php $__slotsfb217b67c45072adcf77500afdd69d1a['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__blaze->pushSlots($__slotsfb217b67c45072adcf77500afdd69d1a); ?>
|
||||
<?php _fb217b67c45072adcf77500afdd69d1a($__blaze, $__attrsfb217b67c45072adcf77500afdd69d1a, $__slotsfb217b67c45072adcf77500afdd69d1a, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStackfb217b67c45072adcf77500afdd69d1a)) { $__slotsfb217b67c45072adcf77500afdd69d1a = array_pop($__slotsStackfb217b67c45072adcf77500afdd69d1a); } ?>
|
||||
<?php if (! empty($__attrsStackfb217b67c45072adcf77500afdd69d1a)) { $__attrsfb217b67c45072adcf77500afdd69d1a = array_pop($__attrsStackfb217b67c45072adcf77500afdd69d1a); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php else: ?>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
echo ltrim(ob_get_clean());
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-field.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php $__env->startSection('title', __('Payment Required')); ?>
|
||||
<?php $__env->startSection('code', '402'); ?>
|
||||
<?php $__env->startSection('message', __('Payment Required')); ?>
|
||||
|
||||
<?php echo $__env->make('errors::minimal', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/errors/402.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
if (!function_exists('_761a32ced1f2edf086260d80db5b2d36')):
|
||||
function _761a32ced1f2edf086260d80db5b2d36($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M2.036 12.322a1.012 1.012 0 0 1 0-.639C3.423 7.51 7.36 4.5 12 4.5c4.638 0 8.573 3.007 9.963 7.178.07.207.07.431 0 .639C20.577 16.49 16.64 19.5 12 19.5c-4.638 0-8.573-3.007-9.963-7.178Z"/>
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M15 12a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z"/>
|
||||
<path fill-rule="evenodd" d="M1.323 11.447C2.811 6.976 7.028 3.75 12.001 3.75c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113-1.487 4.471-5.705 7.697-10.677 7.697-4.97 0-9.186-3.223-10.675-7.69a1.762 1.762 0 0 1 0-1.113ZM17.25 12a5.25 5.25 0 1 1-10.5 0 5.25 5.25 0 0 1 10.5 0Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M10 12.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"/>
|
||||
<path fill-rule="evenodd" d="M.664 10.59a1.651 1.651 0 0 1 0-1.186A10.004 10.004 0 0 1 10 3c4.257 0 7.893 2.66 9.336 6.41.147.381.146.804 0 1.186A10.004 10.004 0 0 1 10 17c-4.257 0-7.893-2.66-9.336-6.41ZM14 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M8 9.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"/>
|
||||
<path fill-rule="evenodd" d="M1.38 8.28a.87.87 0 0 1 0-.566 7.003 7.003 0 0 1 13.238.006.87.87 0 0 1 0 .566A7.003 7.003 0 0 1 1.379 8.28ZM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo ltrim(ob_get_clean());
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/eye.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,106 @@
|
||||
<?php # [BlazeFolded]:{flux::button}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php}:{1776985208} ?>
|
||||
<?php # [BlazeFolded]:{flux::link}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/link.blade.php}:{1776985208} ?>
|
||||
<?php if (isset($component)) { $__componentOriginal08b8a564843783787e0bee3357e24f38 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal08b8a564843783787e0bee3357e24f38 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f4ac99e09542ff494432bc959d4fee61::auth','data' => ['title' => __('Forgot password')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('layouts::auth'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Forgot password'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<div class="flex flex-col gap-6">
|
||||
<?php if (isset($component)) { $__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.auth-header','data' => ['title' => __('Forgot password'),'description' => __('Enter your email to receive a password reset link')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('auth-header'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Forgot password')),'description' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Enter your email to receive a password reset link'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd)): ?>
|
||||
<?php $attributes = $__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd; ?>
|
||||
<?php unset($__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd)): ?>
|
||||
<?php $component = $__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd; ?>
|
||||
<?php unset($__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Session Status -->
|
||||
<?php if (isset($component)) { $__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.auth-session-status','data' => ['class' => 'text-center','status' => session('status')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('auth-session-status'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['class' => 'text-center','status' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(session('status'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5)): ?>
|
||||
<?php $attributes = $__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5; ?>
|
||||
<?php unset($__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5)): ?>
|
||||
<?php $component = $__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5; ?>
|
||||
<?php unset($__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="POST" action="<?php echo e(route('password.email')); ?>" class="flex flex-col gap-6">
|
||||
<?php echo csrf_field(); ?>
|
||||
|
||||
<!-- Email Address -->
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/index.blade.php', $__blaze->compiledPath.'/0895d97ac72dcf2060e8a83465f0c2ce.php'); ?>
|
||||
<?php $__blaze->pushData(['name' => 'email','label' => __('Email address'),'type' => 'email','required' => true,'autofocus' => true,'placeholder' => 'email@example.com']); ?>
|
||||
<?php _0895d97ac72dcf2060e8a83465f0c2ce($__blaze, ['name' => 'email','label' => __('Email address'),'type' => 'email','required' => true,'autofocus' => true,'placeholder' => 'email@example.com'], [], ['label', 'required', 'autofocus'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
|
||||
<?php ob_start(); ?><button type="submit" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-10 text-sm rounded-lg ps-4 pe-4 inline-flex bg-[var(--color-accent)] hover:bg-[color-mix(in_oklab,_var(--color-accent),_transparent_10%)] text-[var(--color-accent-foreground)] border border-black/10 dark:border-0 shadow-[inset_0px_1px_--theme(--color-white/.2)] [[data-flux-button-group]_&]:border-e-0 [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-[1px] dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-s-[1px] [:is([data-flux-button-group]>&:not(:first-child),_[data-flux-button-group]_:not(:first-child)>&)]:border-s-[color-mix(in_srgb,var(--color-accent-foreground),transparent_85%)] *:transition-opacity [&[disabled]>:not([data-flux-loading-indicator])]:opacity-0 [&[disabled]>[data-flux-loading-indicator]]:opacity-100 [&[disabled]]:pointer-events-none w-full" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" data-test="email-password-reset-link-button">
|
||||
<div class="absolute inset-0 flex items-center justify-center opacity-0" data-flux-loading-indicator>
|
||||
<svg class="shrink-0 [:where(&)]:size-4 animate-spin" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
|
||||
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
||||
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<span><?php ob_start(); ?>
|
||||
<?php echo e(__('Email password reset link')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?></span>
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</form>
|
||||
|
||||
<div class="space-x-1 rtl:space-x-reverse text-center text-sm text-zinc-400">
|
||||
<span><?php echo e(__('Or, return to')); ?></span>
|
||||
<?php ob_start(); ?><a class="inline font-medium underline-offset-[6px] hover:decoration-current underline [[data-color]>&]:text-inherit [[data-color]>&]:decoration-current/20 dark:[[data-color]>&]:decoration-current/50 [[data-color]>&]:hover:decoration-current text-[var(--color-accent-content)] decoration-[color-mix(in_oklab,var(--color-accent-content),transparent_80%)]" <?php if (($__blazeAttr = route('login')) !== false && !is_null($__blazeAttr)): ?>href="<?php echo e($__blazeAttr === true ? 'href' : $__blazeAttr); ?>"<?php endif; unset($__blazeAttr); ?> wire:navigate="" data-flux-link ><?php ob_start(); ?><?php echo e(__('log in')); ?><?php echo trim(ob_get_clean()); ?></a><?php echo ltrim(ob_get_clean()); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal08b8a564843783787e0bee3357e24f38)): ?>
|
||||
<?php $attributes = $__attributesOriginal08b8a564843783787e0bee3357e24f38; ?>
|
||||
<?php unset($__attributesOriginal08b8a564843783787e0bee3357e24f38); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal08b8a564843783787e0bee3357e24f38)): ?>
|
||||
<?php $component = $__componentOriginal08b8a564843783787e0bee3357e24f38; ?>
|
||||
<?php unset($__componentOriginal08b8a564843783787e0bee3357e24f38); ?>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/livewire/auth/forgot-password.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,116 @@
|
||||
<?php # [BlazeFolded]:{flux::button}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php}:{1776985208} ?>
|
||||
<?php if (isset($component)) { $__componentOriginal08b8a564843783787e0bee3357e24f38 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal08b8a564843783787e0bee3357e24f38 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f4ac99e09542ff494432bc959d4fee61::auth','data' => ['title' => __('Reset password')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('layouts::auth'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Reset password'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<div class="flex flex-col gap-6">
|
||||
<?php if (isset($component)) { $__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.auth-header','data' => ['title' => __('Reset password'),'description' => __('Please enter your new password below')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('auth-header'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Reset password')),'description' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Please enter your new password below'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd)): ?>
|
||||
<?php $attributes = $__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd; ?>
|
||||
<?php unset($__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd)): ?>
|
||||
<?php $component = $__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd; ?>
|
||||
<?php unset($__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<!-- Session Status -->
|
||||
<?php if (isset($component)) { $__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.auth-session-status','data' => ['class' => 'text-center','status' => session('status')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('auth-session-status'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['class' => 'text-center','status' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(session('status'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5)): ?>
|
||||
<?php $attributes = $__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5; ?>
|
||||
<?php unset($__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5)): ?>
|
||||
<?php $component = $__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5; ?>
|
||||
<?php unset($__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="POST" action="<?php echo e(route('password.update')); ?>" class="flex flex-col gap-6">
|
||||
<?php echo csrf_field(); ?>
|
||||
<!-- Token -->
|
||||
<input type="hidden" name="token" value="<?php echo e(request()->route('token')); ?>">
|
||||
|
||||
<!-- Email Address -->
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/index.blade.php', $__blaze->compiledPath.'/0895d97ac72dcf2060e8a83465f0c2ce.php'); ?>
|
||||
<?php $__blaze->pushData(['name' => 'email','value' => e(request('email')),'label' => __('Email'),'type' => 'email','required' => true,'autocomplete' => 'email']); ?>
|
||||
<?php _0895d97ac72dcf2060e8a83465f0c2ce($__blaze, ['name' => 'email','value' => e(request('email')),'label' => __('Email'),'type' => 'email','required' => true,'autocomplete' => 'email'], [], ['label', 'required'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
|
||||
<!-- Password -->
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/index.blade.php', $__blaze->compiledPath.'/0895d97ac72dcf2060e8a83465f0c2ce.php'); ?>
|
||||
<?php $__blaze->pushData(['name' => 'password','label' => __('Password'),'type' => 'password','required' => true,'autocomplete' => 'new-password','placeholder' => __('Password'),'passwordrules' => e(\Illuminate\Validation\Rules\Password::defaults()->toPasswordRulesString()),'viewable' => true]); ?>
|
||||
<?php _0895d97ac72dcf2060e8a83465f0c2ce($__blaze, ['name' => 'password','label' => __('Password'),'type' => 'password','required' => true,'autocomplete' => 'new-password','placeholder' => __('Password'),'passwordrules' => e(\Illuminate\Validation\Rules\Password::defaults()->toPasswordRulesString()),'viewable' => true], [], ['label', 'required', 'placeholder', 'viewable'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
|
||||
<!-- Confirm Password -->
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/index.blade.php', $__blaze->compiledPath.'/0895d97ac72dcf2060e8a83465f0c2ce.php'); ?>
|
||||
<?php $__blaze->pushData(['name' => 'password_confirmation','label' => __('Confirm password'),'type' => 'password','required' => true,'autocomplete' => 'new-password','placeholder' => __('Confirm password'),'passwordrules' => e(\Illuminate\Validation\Rules\Password::defaults()->toPasswordRulesString()),'viewable' => true]); ?>
|
||||
<?php _0895d97ac72dcf2060e8a83465f0c2ce($__blaze, ['name' => 'password_confirmation','label' => __('Confirm password'),'type' => 'password','required' => true,'autocomplete' => 'new-password','placeholder' => __('Confirm password'),'passwordrules' => e(\Illuminate\Validation\Rules\Password::defaults()->toPasswordRulesString()),'viewable' => true], [], ['label', 'required', 'placeholder', 'viewable'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
|
||||
<div class="flex items-center justify-end">
|
||||
<?php ob_start(); ?><button type="submit" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-10 text-sm rounded-lg ps-4 pe-4 inline-flex bg-[var(--color-accent)] hover:bg-[color-mix(in_oklab,_var(--color-accent),_transparent_10%)] text-[var(--color-accent-foreground)] border border-black/10 dark:border-0 shadow-[inset_0px_1px_--theme(--color-white/.2)] [[data-flux-button-group]_&]:border-e-0 [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-[1px] dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-s-[1px] [:is([data-flux-button-group]>&:not(:first-child),_[data-flux-button-group]_:not(:first-child)>&)]:border-s-[color-mix(in_srgb,var(--color-accent-foreground),transparent_85%)] *:transition-opacity [&[disabled]>:not([data-flux-loading-indicator])]:opacity-0 [&[disabled]>[data-flux-loading-indicator]]:opacity-100 [&[disabled]]:pointer-events-none w-full" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" data-test="reset-password-button">
|
||||
<div class="absolute inset-0 flex items-center justify-center opacity-0" data-flux-loading-indicator>
|
||||
<svg class="shrink-0 [:where(&)]:size-4 animate-spin" data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
|
||||
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
||||
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<span><?php ob_start(); ?>
|
||||
<?php echo e(__('Reset password')); ?>
|
||||
|
||||
<?php echo trim(ob_get_clean()); ?></span>
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal08b8a564843783787e0bee3357e24f38)): ?>
|
||||
<?php $attributes = $__attributesOriginal08b8a564843783787e0bee3357e24f38; ?>
|
||||
<?php unset($__attributesOriginal08b8a564843783787e0bee3357e24f38); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal08b8a564843783787e0bee3357e24f38)): ?>
|
||||
<?php $component = $__componentOriginal08b8a564843783787e0bee3357e24f38; ?>
|
||||
<?php unset($__componentOriginal08b8a564843783787e0bee3357e24f38); ?>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/livewire/auth/reset-password.blade.php ENDPATH**/ ?>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,143 @@
|
||||
<?php if (isset($component)) { $__componentOriginal08b8a564843783787e0bee3357e24f38 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal08b8a564843783787e0bee3357e24f38 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f4ac99e09542ff494432bc959d4fee61::auth','data' => ['title' => __('Log in')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('layouts::auth'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Log in'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<div class="flex flex-col gap-6">
|
||||
<?php if (isset($component)) { $__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.auth-header','data' => ['title' => __('Log in to your account'),'description' => __('Enter your email and password below to log in')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('auth-header'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Log in to your account')),'description' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(__('Enter your email and password below to log in'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd)): ?>
|
||||
<?php $attributes = $__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd; ?>
|
||||
<?php unset($__attributesOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd)): ?>
|
||||
<?php $component = $__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd; ?>
|
||||
<?php unset($__componentOriginale5d2f2831f58fdbe96ad6d7cbd41a7dd); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.auth-session-status','data' => ['class' => 'text-center','status' => session('status')]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('auth-session-status'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['class' => 'text-center','status' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute(session('status'))]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5)): ?>
|
||||
<?php $attributes = $__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5; ?>
|
||||
<?php unset($__attributesOriginal7c1bf3a9346f208f66ee83b06b607fb5); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5)): ?>
|
||||
<?php $component = $__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5; ?>
|
||||
<?php unset($__componentOriginal7c1bf3a9346f208f66ee83b06b607fb5); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($component)) { $__componentOriginal360dec750a5c22110ff2b6afe54f0581 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal360dec750a5c22110ff2b6afe54f0581 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.passkey-verify','data' => []] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('passkey-verify'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes([]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal360dec750a5c22110ff2b6afe54f0581)): ?>
|
||||
<?php $attributes = $__attributesOriginal360dec750a5c22110ff2b6afe54f0581; ?>
|
||||
<?php unset($__attributesOriginal360dec750a5c22110ff2b6afe54f0581); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal360dec750a5c22110ff2b6afe54f0581)): ?>
|
||||
<?php $component = $__componentOriginal360dec750a5c22110ff2b6afe54f0581; ?>
|
||||
<?php unset($__componentOriginal360dec750a5c22110ff2b6afe54f0581); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<form method="POST" action="<?php echo e(route('login.store')); ?>" class="flex flex-col gap-6">
|
||||
<?php echo csrf_field(); ?>
|
||||
|
||||
<div class="grid gap-2">
|
||||
<label for="email" class="text-sm font-medium text-zinc-800 dark:text-zinc-200"><?php echo e(__('Email address')); ?></label>
|
||||
<input id="email" name="email" type="email" value="<?php echo e(old('email')); ?>" required autofocus autocomplete="email" placeholder="email@example.com" class="w-full rounded-xl border border-zinc-300 bg-white px-3 py-2.5 text-sm text-zinc-900 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-cyan-500 focus:ring-2 focus:ring-cyan-200 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-cyan-400 dark:focus:ring-cyan-900" />
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['email'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?><p class="text-sm text-red-600 dark:text-red-400"><?php echo e($message); ?></p><?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</div>
|
||||
|
||||
<div class="grid gap-2">
|
||||
<div class="flex items-center justify-between gap-3">
|
||||
<label for="password" class="text-sm font-medium text-zinc-800 dark:text-zinc-200"><?php echo e(__('Password')); ?></label>
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(Route::has('password.request')): ?>
|
||||
<a class="text-sm font-medium text-cyan-700 underline underline-offset-4 hover:text-cyan-900 dark:text-cyan-300" href="<?php echo e(route('password.request')); ?>" wire:navigate><?php echo e(__('Forgot your password?')); ?></a>
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</div>
|
||||
<input id="password" name="password" type="password" required autocomplete="current-password" placeholder="<?php echo e(__('Password')); ?>" class="w-full rounded-xl border border-zinc-300 bg-white px-3 py-2.5 text-sm text-zinc-900 shadow-sm outline-none transition placeholder:text-zinc-400 focus:border-cyan-500 focus:ring-2 focus:ring-cyan-200 dark:border-zinc-700 dark:bg-zinc-950 dark:text-white dark:placeholder:text-zinc-500 dark:focus:border-cyan-400 dark:focus:ring-cyan-900" />
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__errorArgs = ['password'];
|
||||
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
|
||||
if ($__bag->has($__errorArgs[0])) :
|
||||
if (isset($message)) { $__messageOriginal = $message; }
|
||||
$message = $__bag->first($__errorArgs[0]); ?><p class="text-sm text-red-600 dark:text-red-400"><?php echo e($message); ?></p><?php unset($message);
|
||||
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
|
||||
endif;
|
||||
unset($__errorArgs, $__bag); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
</div>
|
||||
|
||||
<label class="flex items-center gap-2 text-sm text-zinc-700 dark:text-zinc-300">
|
||||
<input name="remember" type="checkbox" value="1" <?php if(old('remember')): echo 'checked'; endif; ?> class="rounded border-zinc-300 text-cyan-600 focus:ring-cyan-500 dark:border-zinc-700 dark:bg-zinc-950" />
|
||||
<span><?php echo e(__('Remember me')); ?></span>
|
||||
</label>
|
||||
|
||||
<button type="submit" class="w-full rounded-xl bg-zinc-950 px-4 py-2.5 text-sm font-semibold text-white shadow-sm transition hover:bg-zinc-800 focus:outline-none focus:ring-2 focus:ring-cyan-400 dark:bg-white dark:text-zinc-950 dark:hover:bg-zinc-200" data-test="login-button">
|
||||
<?php echo e(__('Log in')); ?>
|
||||
|
||||
</button>
|
||||
</form>
|
||||
|
||||
<div class="space-x-1 text-center text-sm text-zinc-600 rtl:space-x-reverse dark:text-zinc-400">
|
||||
<span><?php echo e(__('Don\'t have an account?')); ?></span>
|
||||
<a href="<?php echo e(route('register')); ?>" wire:navigate class="font-medium text-cyan-700 underline underline-offset-4 hover:text-cyan-900 dark:text-cyan-300"><?php echo e(__('Sign up')); ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal08b8a564843783787e0bee3357e24f38)): ?>
|
||||
<?php $attributes = $__attributesOriginal08b8a564843783787e0bee3357e24f38; ?>
|
||||
<?php unset($__attributesOriginal08b8a564843783787e0bee3357e24f38); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal08b8a564843783787e0bee3357e24f38)): ?>
|
||||
<?php $component = $__componentOriginal08b8a564843783787e0bee3357e24f38; ?>
|
||||
<?php unset($__componentOriginal08b8a564843783787e0bee3357e24f38); ?>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/livewire/auth/login.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,275 @@
|
||||
<?php
|
||||
if (!function_exists('_8f4a3847ec957ea9ec88204cbc200391')):
|
||||
function _8f4a3847ec957ea9ec88204cbc200391($__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 $iconLeading ??= $attributes->pluck('icon:leading'); ?>
|
||||
<?php $iconVariant ??= $attributes->pluck('icon:variant'); ?>
|
||||
|
||||
<?php
|
||||
$__defaults = [
|
||||
'iconTrailing' => null,
|
||||
'variant' => 'outline',
|
||||
'iconVariant' => null,
|
||||
'iconLeading' => null,
|
||||
'type' => 'button',
|
||||
'loading' => null,
|
||||
'align' => 'center',
|
||||
'size' => 'base',
|
||||
'square' => null,
|
||||
'color' => null,
|
||||
'inset' => null,
|
||||
'icon' => null,
|
||||
'kbd' => null,
|
||||
];
|
||||
$iconTrailing ??= $attributes['icon-trailing'] ?? $attributes['iconTrailing'] ?? $__defaults['iconTrailing']; unset($attributes['iconTrailing'], $attributes['icon-trailing']);
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
$iconVariant ??= $attributes['icon-variant'] ?? $attributes['iconVariant'] ?? $__defaults['iconVariant']; unset($attributes['iconVariant'], $attributes['icon-variant']);
|
||||
$iconLeading ??= $attributes['icon-leading'] ?? $attributes['iconLeading'] ?? $__defaults['iconLeading']; unset($attributes['iconLeading'], $attributes['icon-leading']);
|
||||
$type ??= $attributes['type'] ?? $__defaults['type']; unset($attributes['type']);
|
||||
$loading ??= $attributes['loading'] ?? $__defaults['loading']; unset($attributes['loading']);
|
||||
$align ??= $attributes['align'] ?? $__defaults['align']; unset($attributes['align']);
|
||||
$size ??= $attributes['size'] ?? $__defaults['size']; unset($attributes['size']);
|
||||
$square ??= $attributes['square'] ?? $__defaults['square']; unset($attributes['square']);
|
||||
$color ??= $attributes['color'] ?? $__defaults['color']; unset($attributes['color']);
|
||||
$inset ??= $attributes['inset'] ?? $__defaults['inset']; unset($attributes['inset']);
|
||||
$icon ??= $attributes['icon'] ?? $__defaults['icon']; unset($attributes['icon']);
|
||||
$kbd ??= $attributes['kbd'] ?? $__defaults['kbd']; unset($attributes['kbd']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$iconLeading = $icon ??= $iconLeading;
|
||||
|
||||
// Button should be a square if it has no text contents...
|
||||
$square ??= $slot->isEmpty();
|
||||
|
||||
// Size-up icons in square/icon-only buttons... (xs buttons just get micro size/style...)
|
||||
$iconVariant ??= ($size === 'xs')
|
||||
? ($square ? 'micro' : 'micro')
|
||||
: ($square ? 'mini' : 'micro');
|
||||
|
||||
$iconTrailingVariant ??= $attributes->pluck('icon-trailing:variant', $iconVariant);
|
||||
|
||||
// When using the outline icon variant, we need to size it down to match the default icon sizes...
|
||||
$iconClasses = Flux::classes()
|
||||
->add($iconVariant === 'outline' ? ($square && $size !== 'xs' ? 'size-5' : 'size-4') : '')
|
||||
->add($attributes->pluck('icon:class'))
|
||||
;
|
||||
|
||||
$iconTrailingClasses = Flux::classes()
|
||||
->add($iconTrailingVariant === 'outline' ? ($square && $size !== 'xs' ? 'size-5' : 'size-4') : '')
|
||||
->add($attributes->pluck('icon-trailing:class'))
|
||||
;
|
||||
|
||||
$isTypeSubmitAndNotDisabledOnRender = $type === 'submit' && ! $attributes->has('disabled');
|
||||
|
||||
$isJsMethod = str_starts_with($attributes->whereStartsWith('wire:click')->first() ?? '', '$js.');
|
||||
|
||||
$loading ??= $loading ?? ($isTypeSubmitAndNotDisabledOnRender || $attributes->whereStartsWith('wire:click')->isNotEmpty() && ! $isJsMethod);
|
||||
|
||||
if ($loading && $type !== 'submit' && ! $isJsMethod) {
|
||||
$attributes = $attributes->merge(['wire:loading.attr' => 'data-flux-loading']);
|
||||
|
||||
// We need to add `wire:target` here because without it the loading indicator won't be scoped
|
||||
// by method params, causing multiple buttons with the same method but different params to
|
||||
// trigger each other's loading indicators...
|
||||
if (! $attributes->has('wire:target') && $target = $attributes->whereStartsWith('wire:click')->first()) {
|
||||
$attributes = $attributes->merge(['wire:target' => $target], escape: false);
|
||||
}
|
||||
}
|
||||
|
||||
$classes = Flux::classes()
|
||||
->add('relative items-center font-medium justify-center gap-2 whitespace-nowrap')
|
||||
->add('disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none')
|
||||
->add(match ($align) {
|
||||
'start' => 'justify-start',
|
||||
'center' => 'justify-center',
|
||||
'end' => 'justify-end',
|
||||
})
|
||||
->add(match ($size) { // Size...
|
||||
'base' => 'h-10 text-sm rounded-lg' . ' ' . (
|
||||
$square
|
||||
? 'w-10'
|
||||
// If we have an icon, we want to reduce the padding on the side that has the icon...
|
||||
: ($iconLeading && $iconLeading !== '' ? 'ps-3' : 'ps-4') . ' ' . ($iconTrailing && $iconTrailing !== '' ? 'pe-3' : 'pe-4')
|
||||
),
|
||||
'sm' => 'h-8 text-sm rounded-md' . ' ' . ($square ? 'w-8' : 'px-3'),
|
||||
'xs' => 'h-6 text-xs rounded-md' . ' ' . ($square ? 'w-6' : 'px-2'),
|
||||
})
|
||||
->add('inline-flex') // Buttons are inline by default but links are blocks, so inline-flex is needed here to ensure link-buttons are displayed the same as buttons...
|
||||
->add($inset ? match ($size) { // Inset...
|
||||
'base' => $square
|
||||
? Flux::applyInset($inset, top: '-mt-2.5', right: '-me-2.5', bottom: '-mb-2.5', left: '-ms-2.5')
|
||||
: Flux::applyInset($inset, top: '-mt-2.5', right: '-me-4', bottom: '-mb-3', left: '-ms-4'),
|
||||
'sm' => $square
|
||||
? Flux::applyInset($inset, top: '-mt-1.5', right: '-me-1.5', bottom: '-mb-1.5', left: '-ms-1.5')
|
||||
: Flux::applyInset($inset, top: '-mt-1.5', right: '-me-3', bottom: '-mb-1.5', left: '-ms-3'),
|
||||
'xs' => $square
|
||||
? Flux::applyInset($inset, top: '-mt-1', right: '-me-1', bottom: '-mb-1', left: '-ms-1')
|
||||
: Flux::applyInset($inset, top: '-mt-1', right: '-me-2', bottom: '-mb-1', left: '-ms-2'),
|
||||
} : '')
|
||||
->add(match ($variant) { // Background color...
|
||||
'primary' => 'bg-[var(--color-accent)] hover:bg-[color-mix(in_oklab,_var(--color-accent),_transparent_10%)]',
|
||||
'filled' => 'bg-zinc-800/5 hover:bg-zinc-800/10 dark:bg-white/10 dark:hover:bg-white/20',
|
||||
'outline' => 'bg-white hover:bg-zinc-50 dark:bg-zinc-700 dark:hover:bg-zinc-600/75',
|
||||
'danger' => 'bg-red-500 hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-500',
|
||||
'ghost' => 'bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15',
|
||||
'subtle' => 'bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15',
|
||||
})
|
||||
->add(match ($variant) { // Text color...
|
||||
'primary' => 'text-[var(--color-accent-foreground)]',
|
||||
'filled' => 'text-zinc-800 dark:text-white',
|
||||
'outline' => 'text-zinc-800 dark:text-white',
|
||||
'danger' => 'text-white',
|
||||
'ghost' => 'text-zinc-800 dark:text-white',
|
||||
'subtle' => 'text-zinc-500 hover:text-zinc-800 dark:text-zinc-400 dark:hover:text-white',
|
||||
})
|
||||
->add(match ($variant) { // Border color...
|
||||
'primary' => 'border border-black/10 dark:border-0',
|
||||
'outline' => 'border border-zinc-200 hover:border-zinc-200 border-b-zinc-300/80 dark:border-zinc-600 dark:hover:border-zinc-600',
|
||||
default => '',
|
||||
})
|
||||
->add(match ($variant) { // Shadows...
|
||||
'primary' => 'shadow-[inset_0px_1px_--theme(--color-white/.2)]',
|
||||
'danger' => 'shadow-[inset_0px_1px_var(--color-red-500),inset_0px_2px_--theme(--color-white/.15)] dark:shadow-none',
|
||||
'outline' => match ($size) {
|
||||
'base' => 'shadow-xs',
|
||||
'sm' => 'shadow-xs',
|
||||
'xs' => 'shadow-none',
|
||||
},
|
||||
default => '',
|
||||
})
|
||||
->add(match ($variant) { // Grouped border treatments...
|
||||
'ghost' => '',
|
||||
'subtle' => '',
|
||||
'outline' => '[[data-flux-button-group]_&]:border-s-0 [:is([data-flux-button-group]>&:first-child,_[data-flux-button-group]_:first-child>&)]:border-s-[1px]',
|
||||
'filled' => '[[data-flux-button-group]_&]:border-e [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 [[data-flux-button-group]_&]:border-zinc-200/80 dark:[[data-flux-button-group]_&]:border-zinc-900/50',
|
||||
'danger' => '[[data-flux-button-group]_&]:border-e [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 [[data-flux-button-group]_&]:border-red-600 dark:[[data-flux-button-group]_&]:border-red-900/25',
|
||||
'primary' => '[[data-flux-button-group]_&]:border-e-0 [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-[1px] dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-s-[1px] [:is([data-flux-button-group]>&:not(:first-child),_[data-flux-button-group]_:not(:first-child)>&)]:border-s-[color-mix(in_srgb,var(--color-accent-foreground),transparent_85%)]',
|
||||
})
|
||||
->add($loading ? [ // Loading states...
|
||||
'*:transition-opacity',
|
||||
$type === 'submit' ? '[&[disabled]>:not([data-flux-loading-indicator])]:opacity-0' : '[&[data-loading]>:not([data-flux-loading-indicator])]:opacity-0 [&[data-flux-loading]>:not([data-flux-loading-indicator])]:opacity-0',
|
||||
$type === 'submit' ? '[&[disabled]>[data-flux-loading-indicator]]:opacity-100' : '[&[data-loading]>[data-flux-loading-indicator]]:opacity-100 [&[data-flux-loading]>[data-flux-loading-indicator]]:opacity-100',
|
||||
$type === 'submit' ? '[&[disabled]]:pointer-events-none' : 'data-loading:pointer-events-none data-flux-loading:pointer-events-none',
|
||||
] : [])
|
||||
->add($variant === 'primary' ? match ($color) {
|
||||
'slate' => '[--color-accent:var(--color-slate-800)] [--color-accent-content:var(--color-slate-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-slate-800)]',
|
||||
'gray' => '[--color-accent:var(--color-gray-800)] [--color-accent-content:var(--color-gray-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-gray-800)]',
|
||||
'zinc' => '[--color-accent:var(--color-zinc-800)] [--color-accent-content:var(--color-zinc-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-zinc-800)]',
|
||||
'neutral' => '[--color-accent:var(--color-neutral-800)] [--color-accent-content:var(--color-neutral-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-neutral-800)]',
|
||||
'stone' => '[--color-accent:var(--color-stone-800)] [--color-accent-content:var(--color-stone-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-stone-800)]',
|
||||
'mauve' => '[--color-accent:var(--color-mauve-800)] [--color-accent-content:var(--color-mauve-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-mauve-800)]',
|
||||
'olive' => '[--color-accent:var(--color-olive-800)] [--color-accent-content:var(--color-olive-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-olive-800)]',
|
||||
'mist' => '[--color-accent:var(--color-mist-800)] [--color-accent-content:var(--color-mist-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-mist-800)]',
|
||||
'taupe' => '[--color-accent:var(--color-taupe-800)] [--color-accent-content:var(--color-taupe-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-taupe-800)]',
|
||||
'red' => '[--color-accent:var(--color-red-500)] [--color-accent-content:var(--color-red-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-red-500)] dark:[--color-accent-content:var(--color-red-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'orange' => '[--color-accent:var(--color-orange-500)] [--color-accent-content:var(--color-orange-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-orange-400)] dark:[--color-accent-content:var(--color-orange-400)] dark:[--color-accent-foreground:var(--color-orange-950)]',
|
||||
'amber' => '[--color-accent:var(--color-amber-400)] [--color-accent-content:var(--color-amber-600)] [--color-accent-foreground:var(--color-amber-950)] dark:[--color-accent:var(--color-amber-400)] dark:[--color-accent-content:var(--color-amber-400)] dark:[--color-accent-foreground:var(--color-amber-950)]',
|
||||
'yellow' => '[--color-accent:var(--color-yellow-400)] [--color-accent-content:var(--color-yellow-600)] [--color-accent-foreground:var(--color-yellow-950)] dark:[--color-accent:var(--color-yellow-400)] dark:[--color-accent-content:var(--color-yellow-400)] dark:[--color-accent-foreground:var(--color-yellow-950)]',
|
||||
'lime' => '[--color-accent:var(--color-lime-400)] [--color-accent-content:var(--color-lime-600)] [--color-accent-foreground:var(--color-lime-900)] dark:[--color-accent:var(--color-lime-400)] dark:[--color-accent-content:var(--color-lime-400)] dark:[--color-accent-foreground:var(--color-lime-950)]',
|
||||
'green' => '[--color-accent:var(--color-green-600)] [--color-accent-content:var(--color-green-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-green-600)] dark:[--color-accent-content:var(--color-green-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'emerald' => '[--color-accent:var(--color-emerald-600)] [--color-accent-content:var(--color-emerald-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-emerald-600)] dark:[--color-accent-content:var(--color-emerald-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'teal' => '[--color-accent:var(--color-teal-600)] [--color-accent-content:var(--color-teal-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-teal-600)] dark:[--color-accent-content:var(--color-teal-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'cyan' => '[--color-accent:var(--color-cyan-600)] [--color-accent-content:var(--color-cyan-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-cyan-600)] dark:[--color-accent-content:var(--color-cyan-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'sky' => '[--color-accent:var(--color-sky-600)] [--color-accent-content:var(--color-sky-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-sky-600)] dark:[--color-accent-content:var(--color-sky-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'blue' => '[--color-accent:var(--color-blue-500)] [--color-accent-content:var(--color-blue-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-blue-500)] dark:[--color-accent-content:var(--color-blue-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'indigo' => '[--color-accent:var(--color-indigo-500)] [--color-accent-content:var(--color-indigo-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-indigo-500)] dark:[--color-accent-content:var(--color-indigo-300)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'violet' => '[--color-accent:var(--color-violet-500)] [--color-accent-content:var(--color-violet-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-violet-500)] dark:[--color-accent-content:var(--color-violet-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'purple' => '[--color-accent:var(--color-purple-500)] [--color-accent-content:var(--color-purple-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-purple-500)] dark:[--color-accent-content:var(--color-purple-300)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'fuchsia' => '[--color-accent:var(--color-fuchsia-600)] [--color-accent-content:var(--color-fuchsia-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-fuchsia-600)] dark:[--color-accent-content:var(--color-fuchsia-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'pink' => '[--color-accent:var(--color-pink-600)] [--color-accent-content:var(--color-pink-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-pink-600)] dark:[--color-accent-content:var(--color-pink-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'rose' => '[--color-accent:var(--color-rose-500)] [--color-accent-content:var(--color-rose-500)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-rose-500)] dark:[--color-accent-content:var(--color-rose-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
default => '',
|
||||
} : '')
|
||||
;
|
||||
|
||||
// Exempt subtle and ghost buttons from receiving border roundness overrides from button.group...
|
||||
$attributes = $attributes->merge([
|
||||
'data-flux-group-target' => ! in_array($variant, ['subtle', 'ghost']),
|
||||
]);
|
||||
?>
|
||||
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-tooltip.blade.php', $__blaze->compiledPath.'/3e67020b08ceeca960cbb88b2dabc310.php'); ?>
|
||||
<?php if (isset($__slots3e67020b08ceeca960cbb88b2dabc310)) { $__slotsStack3e67020b08ceeca960cbb88b2dabc310[] = $__slots3e67020b08ceeca960cbb88b2dabc310; } ?>
|
||||
<?php if (isset($__attrs3e67020b08ceeca960cbb88b2dabc310)) { $__attrsStack3e67020b08ceeca960cbb88b2dabc310[] = $__attrs3e67020b08ceeca960cbb88b2dabc310; } ?>
|
||||
<?php $__attrs3e67020b08ceeca960cbb88b2dabc310 = ['attributes' => $attributes]; ?>
|
||||
<?php $__slots3e67020b08ceeca960cbb88b2dabc310 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs3e67020b08ceeca960cbb88b2dabc310); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button-or-link-pure.blade.php', $__blaze->compiledPath.'/a0ec3a97dd1bc9937073b6e6643ed4b8.php'); ?>
|
||||
<?php if (isset($__slotsa0ec3a97dd1bc9937073b6e6643ed4b8)) { $__slotsStacka0ec3a97dd1bc9937073b6e6643ed4b8[] = $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8; } ?>
|
||||
<?php if (isset($__attrsa0ec3a97dd1bc9937073b6e6643ed4b8)) { $__attrsStacka0ec3a97dd1bc9937073b6e6643ed4b8[] = $__attrsa0ec3a97dd1bc9937073b6e6643ed4b8; } ?>
|
||||
<?php $__attrsa0ec3a97dd1bc9937073b6e6643ed4b8 = ['type' => $type,'attributes' => $attributes->class($classes),'dataFluxButton' => true]; ?>
|
||||
<?php $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8 = []; ?>
|
||||
<?php $__blaze->pushData($__attrsa0ec3a97dd1bc9937073b6e6643ed4b8); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php if ($loading): ?>
|
||||
<div class="absolute inset-0 flex items-center justify-center opacity-0" data-flux-loading-indicator>
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['icon' => 'loading', '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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => 'loading','variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => 'loading','variant' => $iconVariant,'class' => $iconClasses], [], ['variant', 'class'], [], $__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; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (is_string($iconLeading) && $iconLeading !== ''): ?>
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['icon' => $iconLeading, '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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconLeading,'variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconLeading,'variant' => $iconVariant,'class' => $iconClasses], [], ['icon', 'variant', 'class'], [], $__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 ($iconLeading): ?>
|
||||
<?php echo e($iconLeading); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (($loading || $iconLeading || $iconTrailing) && ! $slot->isEmpty()): ?>
|
||||
|
||||
|
||||
<span><?php echo e($slot); ?></span>
|
||||
<?php else: ?>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($kbd): ?>
|
||||
<div class="text-xs text-zinc-400 dark:text-zinc-400"><?php echo e($kbd); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (is_string($iconTrailing) && $iconTrailing !== ''): ?>
|
||||
|
||||
<?php $iconClasses->add($square ? '' : '-ms-1'); ?>
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['icon' => $iconTrailing, 'variant' => $iconTrailingVariant, 'class' => $iconTrailingClasses]); ?><?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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconTrailing,'variant' => $iconTrailingVariant,'class' => $iconTrailingClasses]); ?>
|
||||
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconTrailing,'variant' => $iconTrailingVariant,'class' => $iconTrailingClasses], [], ['icon', 'variant', 'class'], [], $__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 $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__blaze->pushSlots($__slotsa0ec3a97dd1bc9937073b6e6643ed4b8); ?>
|
||||
<?php _a0ec3a97dd1bc9937073b6e6643ed4b8($__blaze, $__attrsa0ec3a97dd1bc9937073b6e6643ed4b8, $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8, ['type', 'attributes', 'dataFluxButton'], ['dataFluxButton' => 'data-flux-button'], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStacka0ec3a97dd1bc9937073b6e6643ed4b8)) { $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8 = array_pop($__slotsStacka0ec3a97dd1bc9937073b6e6643ed4b8); } ?>
|
||||
<?php if (! empty($__attrsStacka0ec3a97dd1bc9937073b6e6643ed4b8)) { $__attrsa0ec3a97dd1bc9937073b6e6643ed4b8 = array_pop($__attrsStacka0ec3a97dd1bc9937073b6e6643ed4b8); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php $__slots3e67020b08ceeca960cbb88b2dabc310['slot'] = new \Illuminate\View\ComponentSlot(trim(ob_get_clean()), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots3e67020b08ceeca960cbb88b2dabc310); ?>
|
||||
<?php _3e67020b08ceeca960cbb88b2dabc310($__blaze, $__attrs3e67020b08ceeca960cbb88b2dabc310, $__slots3e67020b08ceeca960cbb88b2dabc310, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack3e67020b08ceeca960cbb88b2dabc310)) { $__slots3e67020b08ceeca960cbb88b2dabc310 = array_pop($__slotsStack3e67020b08ceeca960cbb88b2dabc310); } ?>
|
||||
<?php if (! empty($__attrsStack3e67020b08ceeca960cbb88b2dabc310)) { $__attrs3e67020b08ceeca960cbb88b2dabc310 = array_pop($__attrsStack3e67020b08ceeca960cbb88b2dabc310); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php
|
||||
echo ltrim(ob_get_clean());
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
$__split = function ($name, $params = []) {
|
||||
return [$name, $params];
|
||||
};
|
||||
[$__name, $__params] = $__split($name, $params);
|
||||
|
||||
$__keyOuter = $__key ?? null;
|
||||
|
||||
$__key = null;
|
||||
$__componentSlots = [];
|
||||
|
||||
$__key ??= \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::generateKey('lw-321469559-0', $__key);
|
||||
|
||||
$__html = app('livewire')->mount($__name, $__params, $__key, $__componentSlots);
|
||||
|
||||
echo $__html;
|
||||
|
||||
unset($__html);
|
||||
unset($__key);
|
||||
$__key = $__keyOuter;
|
||||
unset($__keyOuter);
|
||||
unset($__name);
|
||||
unset($__params);
|
||||
unset($__componentSlots);
|
||||
unset($__split);
|
||||
?><?php /**PATH /Users/mag/Sites/WMS/Core/storage/framework/views/a168b0ebcff266df6b662fc4b6d06e88.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
if (!function_exists('_986fb95c0ca2c23afb55cc89b1b07e48')):
|
||||
function _986fb95c0ca2c23afb55cc89b1b07e48($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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 $iconVariant ??= $attributes->pluck('icon:variant'); ?>
|
||||
<?php $iconTrailing ??= $attributes->pluck('icon:trailing'); ?>
|
||||
|
||||
<?php
|
||||
$__defaults = [
|
||||
'iconVariant' => 'micro',
|
||||
'iconTrailing' => null,
|
||||
'initials' => null,
|
||||
'chevron' => true,
|
||||
'circle' => null,
|
||||
'avatar' => null,
|
||||
'name' => 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']);
|
||||
$initials ??= $attributes['initials'] ?? $__defaults['initials']; unset($attributes['initials']);
|
||||
$chevron ??= $attributes['chevron'] ?? $__defaults['chevron']; unset($attributes['chevron']);
|
||||
$circle ??= $attributes['circle'] ?? $__defaults['circle']; unset($attributes['circle']);
|
||||
$avatar ??= $attributes['avatar'] ?? $__defaults['avatar']; unset($attributes['avatar']);
|
||||
$name ??= $attributes['name'] ?? $__defaults['name']; unset($attributes['name']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$iconTrailing = $iconTrailing ?? ($chevron ? 'chevron-down' : null);
|
||||
|
||||
// When using the outline icon variant, we need to size it down to match the default icon sizes...
|
||||
$iconClasses = Flux::classes('text-zinc-400 dark:text-white/80 group-hover:text-zinc-800 dark:group-hover:text-white')
|
||||
->add($iconVariant === 'outline' ? 'size-4' : '');
|
||||
|
||||
$classes = Flux::classes()
|
||||
->add('group flex items-center')
|
||||
->add('rounded-lg has-data-[circle=true]:rounded-full')
|
||||
->add('[ui-dropdown>&]:w-full') // Without this, the "name" won't get truncated in a sidebar dropdown...
|
||||
->add('p-1 hover:bg-zinc-800/5 dark:hover:bg-white/15')
|
||||
;
|
||||
?>
|
||||
|
||||
<button type="button" <?php echo e($attributes->class($classes)); ?> data-flux-profile>
|
||||
<div class="shrink-0">
|
||||
<?php if ($avatar instanceof \Illuminate\View\ComponentSlot): ?>
|
||||
<?php echo e($avatar); ?>
|
||||
|
||||
<?php else: ?>
|
||||
<?php $avatarAttributes = Flux::attributesAfter('avatar:', $attributes, ['src' => $avatar, 'size' => 'sm', 'circle' => $circle, 'name' => $name, 'initials' => $initials]); ?>
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::avatar", ['attributes' => $avatarAttributes]); ?><?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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/avatar/index.blade.php', $__blaze->compiledPath.'/110c1c2a55a80ff8b2b4fbed62b1a7d3.php'); ?>
|
||||
<?php $__blaze->pushData(['attributes' => $avatarAttributes]); ?>
|
||||
<?php _110c1c2a55a80ff8b2b4fbed62b1a7d3($__blaze, ['attributes' => $avatarAttributes], [], ['attributes'], [], $__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 endif; ?>
|
||||
</div>
|
||||
|
||||
<?php if ($name): ?>
|
||||
<span class="mx-2 text-sm text-zinc-500 dark:text-white/80 group-hover:text-zinc-800 dark:group-hover:text-white font-medium truncate">
|
||||
<?php echo e($name); ?>
|
||||
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (is_string($iconTrailing) && $iconTrailing !== ''): ?>
|
||||
<div class="shrink-0 ms-auto size-8 flex justify-center items-center">
|
||||
<?php $blaze_memoized_key = \Livewire\Blaze\Memoizer\Memo::key("flux::icon", ['icon' => $iconTrailing, '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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php _50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $iconClasses], [], ['icon', 'variant', 'class'], [], $__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; ?>
|
||||
</div>
|
||||
<?php elseif ($iconTrailing): ?>
|
||||
<?php echo e($iconTrailing); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</button>
|
||||
<?php
|
||||
echo ltrim(ob_get_clean());
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/profile.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
if (!function_exists('_a0ec3a97dd1bc9937073b6e6643ed4b8')):
|
||||
function _a0ec3a97dd1bc9937073b6e6643ed4b8($__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/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button-or-link-pure.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php $layout->viewContext->mergeIntoNewEnvironment($__env); ?>
|
||||
|
||||
<?php $__env->startComponent($layout->view, $layout->params); ?>
|
||||
<?php $__env->slot($layout->slotOrSection); ?>
|
||||
<?php echo $content; ?>
|
||||
|
||||
<?php $__env->endSlot(); ?>
|
||||
|
||||
<?php
|
||||
// Manually forward slots defined in the Livewire template into the layout component...
|
||||
foreach ($layout->viewContext->slots[-1] ?? [] as $name => $slot) {
|
||||
$__env->slot($name, attributes: $slot->attributes->getAttributes());
|
||||
echo $slot->toHtml();
|
||||
$__env->endSlot();
|
||||
}
|
||||
?>
|
||||
<?php echo $__env->renderComponent(); ?><?php /**PATH /Users/mag/Sites/WMS/Core/storage/framework/views/4943bc92ebba41e8b0e508149542e0ad.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,58 @@
|
||||
---
|
||||
name: configuring-horizon
|
||||
description: "Use this skill whenever the user mentions Horizon by name in a Laravel context. Covers the full Horizon lifecycle: installing Horizon (horizon:install, Sail setup), configuring config/horizon.php (supervisor blocks, queue assignments, balancing strategies, minProcesses/maxProcesses), fixing the dashboard (authorization via Gate::define viewHorizon, blank metrics, horizon:snapshot scheduling), and troubleshooting production issues (worker crashes, timeout chain ordering, LongWaitDetected notifications, waits config). Also covers job tagging and silencing. Do not use for generic Laravel queues without Horizon, SQS or database drivers, standalone Redis setup, Linux supervisord, Telescope, or job batching."
|
||||
license: MIT
|
||||
metadata:
|
||||
author: laravel
|
||||
---
|
||||
@php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
@endphp
|
||||
# Horizon Configuration
|
||||
|
||||
## Documentation
|
||||
|
||||
Use ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ for detailed Horizon patterns and documentation covering configuration, supervisors, balancing, dashboard authorization, tags, notifications, metrics, and deployment.
|
||||
|
||||
For deeper guidance on specific topics, read the relevant reference file before implementing:
|
||||
|
||||
- ___SINGLE_BACKTICK___references/supervisors.md___SINGLE_BACKTICK___ covers supervisor blocks, balancing strategies, multi-queue setups, and auto-scaling
|
||||
- ___SINGLE_BACKTICK___references/notifications.md___SINGLE_BACKTICK___ covers LongWaitDetected alerts, notification routing, and the ___SINGLE_BACKTICK___waits___SINGLE_BACKTICK___ config
|
||||
- ___SINGLE_BACKTICK___references/tags.md___SINGLE_BACKTICK___ covers job tagging, dashboard filtering, and silencing noisy jobs
|
||||
- ___SINGLE_BACKTICK___references/metrics.md___SINGLE_BACKTICK___ covers the blank metrics dashboard, snapshot scheduling, and retention config
|
||||
|
||||
## Basic Usage
|
||||
|
||||
### Installation
|
||||
|
||||
___SINGLE_BACKTICK______SINGLE_BACKTICK______SINGLE_BACKTICK___bash
|
||||
{{ $assist->artisanCommand('horizon:install') }}
|
||||
___SINGLE_BACKTICK______SINGLE_BACKTICK______SINGLE_BACKTICK___
|
||||
|
||||
### Supervisor Configuration
|
||||
|
||||
Define supervisors in ___SINGLE_BACKTICK___config/horizon.php___SINGLE_BACKTICK___. The ___SINGLE_BACKTICK___environments___SINGLE_BACKTICK___ array merges into ___SINGLE_BACKTICK___defaults___SINGLE_BACKTICK___ and does not replace the whole supervisor block:
|
||||
|
||||
___BOOST_SNIPPET_0___
|
||||
|
||||
### Dashboard Authorization
|
||||
|
||||
Restrict access in ___SINGLE_BACKTICK___App\Providers\HorizonServiceProvider___SINGLE_BACKTICK___:
|
||||
|
||||
___BOOST_SNIPPET_1___
|
||||
|
||||
## Verification
|
||||
|
||||
1. Run ___SINGLE_BACKTICK___{{ $assist->artisanCommand('horizon') }}___SINGLE_BACKTICK___ and visit ___SINGLE_BACKTICK___/horizon___SINGLE_BACKTICK___
|
||||
2. Confirm dashboard access is restricted as expected
|
||||
3. Check that metrics populate after scheduling ___SINGLE_BACKTICK___horizon:snapshot___SINGLE_BACKTICK___
|
||||
|
||||
## Common Pitfalls
|
||||
|
||||
- Horizon only works with the Redis queue driver. Other drivers such as database and SQS are not supported.
|
||||
- Redis Cluster is not supported. Horizon requires a standalone Redis connection.
|
||||
- Always check ___SINGLE_BACKTICK___config/horizon.php___SINGLE_BACKTICK___ before making changes to understand the current supervisor and environment configuration.
|
||||
- The ___SINGLE_BACKTICK___environments___SINGLE_BACKTICK___ array overrides only the keys you specify. It merges into ___SINGLE_BACKTICK___defaults___SINGLE_BACKTICK___ and does not replace it.
|
||||
- The timeout chain must be ordered: job ___SINGLE_BACKTICK___timeout___SINGLE_BACKTICK___ less than supervisor ___SINGLE_BACKTICK___timeout___SINGLE_BACKTICK___ less than ___SINGLE_BACKTICK___retry_after___SINGLE_BACKTICK___. The wrong order can cause jobs to be retried before Horizon finishes timing them out.
|
||||
- The metrics dashboard stays blank until ___SINGLE_BACKTICK___horizon:snapshot___SINGLE_BACKTICK___ is scheduled. Running ___SINGLE_BACKTICK___{{ $assist->artisanCommand('horizon') }}___SINGLE_BACKTICK___ alone does not populate metrics.
|
||||
- Always use ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ for the latest Horizon documentation rather than relying on this skill alone.
|
||||
@@ -0,0 +1,9 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 42" <?php echo e($attributes); ?>>
|
||||
<path
|
||||
fill="currentColor"
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M17.2 5.633 8.6.855 0 5.633v26.51l16.2 9 16.2-9v-8.442l7.6-4.223V9.856l-8.6-4.777-8.6 4.777V18.3l-5.6 3.111V5.633ZM38 18.301l-5.6 3.11v-6.157l5.6-3.11V18.3Zm-1.06-7.856-5.54 3.078-5.54-3.079 5.54-3.078 5.54 3.079ZM24.8 18.3v-6.157l5.6 3.111v6.158L24.8 18.3Zm-1 1.732 5.54 3.078-13.14 7.302-5.54-3.078 13.14-7.3v-.002Zm-16.2 7.89 7.6 4.222V38.3L2 30.966V7.92l5.6 3.111v16.892ZM8.6 9.3 3.06 6.222 8.6 3.143l5.54 3.08L8.6 9.3Zm21.8 15.51-13.2 7.334V38.3l13.2-7.334v-6.156ZM9.6 11.034l5.6-3.11v14.6l-5.6 3.11v-14.6Z"
|
||||
/>
|
||||
</svg>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/components/app-logo-icon.blade.php ENDPATH**/ ?>
|
||||
|
After Width: | Height: | Size: 830 B |
@@ -0,0 +1,17 @@
|
||||
@php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
@endphp
|
||||
# PHPUnit
|
||||
|
||||
- This application uses PHPUnit for testing. All tests must be written as PHPUnit classes. Use ___SINGLE_BACKTICK___{{ $assist->artisanCommand('make:test --phpunit {name}') }}___SINGLE_BACKTICK___ to create a new test.
|
||||
- If you see a test using "Pest", convert it to PHPUnit.
|
||||
- Every time a test has been updated, run that singular test.
|
||||
- When the tests relating to your feature are passing, ask the user if they would like to also run the entire test suite to make sure everything is still passing.
|
||||
- Tests should cover all happy paths, failure paths, and edge cases.
|
||||
- You must not remove any tests or test files from the tests directory without approval. These are not temporary or helper files; these are core to the application.
|
||||
|
||||
## Running Tests
|
||||
- Run the minimal number of tests, using an appropriate filter, before finalizing.
|
||||
- To run all tests: ___SINGLE_BACKTICK___{{ $assist->artisanCommand('test --compact') }}___SINGLE_BACKTICK___.
|
||||
- To run all tests in a file: ___SINGLE_BACKTICK___{{ $assist->artisanCommand('test --compact tests/Feature/ExampleTest.php') }}___SINGLE_BACKTICK___.
|
||||
- To filter on a particular test name: ___SINGLE_BACKTICK___{{ $assist->artisanCommand('test --compact --filter=testName') }}___SINGLE_BACKTICK___ (recommended after making a change to a related file).
|
||||
@@ -0,0 +1,142 @@
|
||||
---
|
||||
name: livewire-development
|
||||
description: "Use for any task or question involving Livewire. Activate if user mentions Livewire, wire: directives, or Livewire-specific concepts like wire:model, wire:click, wire:sort, or islands, invoke this skill. Covers building new components, debugging reactivity issues, real-time form validation, drag-and-drop, loading states, migrating from Livewire 3 to 4, converting component formats (SFC/MFC/class-based), and performance optimization. Do not use for non-Livewire reactive UI (React, Vue, Alpine-only, Inertia.js) or standard Laravel forms without Livewire."
|
||||
license: MIT
|
||||
metadata:
|
||||
author: laravel
|
||||
---
|
||||
@php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
@endphp
|
||||
# Livewire Development
|
||||
|
||||
## Documentation
|
||||
|
||||
Use ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ for detailed Livewire 4 patterns and documentation.
|
||||
|
||||
## Basic Usage
|
||||
|
||||
### Creating Components
|
||||
|
||||
___SINGLE_BACKTICK______SINGLE_BACKTICK______SINGLE_BACKTICK___bash
|
||||
# Single-file component (SFC - default in v4)
|
||||
# Creates: resources/views/components/⚡create-post.blade.php
|
||||
{{ $assist->artisanCommand('make:livewire create-post') }}
|
||||
|
||||
# Page component (SFC - Full Page in v4)
|
||||
# Creates: resources/views/pages/⚡create-post.blade.php
|
||||
{{ $assist->artisanCommand('make:livewire pages::create-post') }}
|
||||
|
||||
# Multi-file component (MFC)
|
||||
# Creates: resources/views/components/⚡create-post/create-post.php
|
||||
# resources/views/components/⚡create-post/create-post.blade.php
|
||||
{{ $assist->artisanCommand('make:livewire create-post --mfc') }}
|
||||
|
||||
# Class-based component (v3 style)
|
||||
# Creates: app/Livewire/CreatePost.php AND resources/views/livewire/create-post.blade.php
|
||||
{{ $assist->artisanCommand('make:livewire create-post --class') }}
|
||||
|
||||
# With namespace
|
||||
{{ $assist->artisanCommand('make:livewire Posts/CreatePost') }}
|
||||
___SINGLE_BACKTICK______SINGLE_BACKTICK______SINGLE_BACKTICK___
|
||||
|
||||
### Converting Between Formats
|
||||
|
||||
Use ___SINGLE_BACKTICK___{{ $assist->artisanCommand('livewire:convert create-post') }}___SINGLE_BACKTICK___ to convert between single-file, multi-file, and class-based formats.
|
||||
|
||||
### Choosing a Component Format
|
||||
|
||||
> **Always follow the project's existing conventions first.** Before creating any component, inspect the project's existing Livewire components to determine the established format (SFC, MFC, or class-based) and directory structure. Check ___SINGLE_BACKTICK___{{ $assist->appPath('Livewire/') }}___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___resources/views/components/___SINGLE_BACKTICK___, and ___SINGLE_BACKTICK___resources/views/livewire/___SINGLE_BACKTICK___ for existing components. If the project already uses a consistent format, **use that same format** — even if it differs from the Livewire v4 defaults below. Only fall back to the v4 defaults (SFC in ___SINGLE_BACKTICK___resources/views/components/___SINGLE_BACKTICK___) when no existing convention is established.
|
||||
|
||||
Also check ___SINGLE_BACKTICK___config/livewire.php___SINGLE_BACKTICK___ for ___SINGLE_BACKTICK___make_command.type___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___make_command.emoji___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___component_locations___SINGLE_BACKTICK___, and ___SINGLE_BACKTICK___component_namespaces___SINGLE_BACKTICK___ overrides, which change the default format and where files are stored.
|
||||
|
||||
### Component Format Reference
|
||||
|
||||
| Format | Flag | Class Path | View Path |
|
||||
|--------|------|------------|-----------|
|
||||
| Single-file (SFC) | default | — | ___SINGLE_BACKTICK___resources/views/components/⚡create-post.blade.php___SINGLE_BACKTICK___ (PHP + Blade in one file) |
|
||||
| Full Page SFC | ___SINGLE_BACKTICK___pages::name___SINGLE_BACKTICK___ | — | ___SINGLE_BACKTICK___resources/views/pages/⚡create-post.blade.php___SINGLE_BACKTICK___ |
|
||||
| Multi-file (MFC) | ___SINGLE_BACKTICK___--mfc___SINGLE_BACKTICK___ | ___SINGLE_BACKTICK___resources/views/components/⚡create-post/create-post.php___SINGLE_BACKTICK___ | ___SINGLE_BACKTICK___resources/views/components/⚡create-post/create-post.blade.php___SINGLE_BACKTICK___ |
|
||||
| Class-based | ___SINGLE_BACKTICK___--class___SINGLE_BACKTICK___ | ___SINGLE_BACKTICK___{{ $assist->appPath('Livewire/CreatePost.php') }}___SINGLE_BACKTICK___ | ___SINGLE_BACKTICK___resources/views/livewire/create-post.blade.php___SINGLE_BACKTICK___ |
|
||||
| View-based | default (Blade-only) | — | ___SINGLE_BACKTICK___resources/views/components/⚡create-post.blade.php___SINGLE_BACKTICK___ (Blade-only with functional state) |
|
||||
|
||||
> **Important:** The ⚡ prefix shown above is the **default** behavior in Livewire v4 — it is **configurable**. Check ___SINGLE_BACKTICK___config/livewire.php___SINGLE_BACKTICK___ for the ___SINGLE_BACKTICK___make_command.emoji___SINGLE_BACKTICK___ setting. When ___SINGLE_BACKTICK___true___SINGLE_BACKTICK___ (default), always include the ⚡ prefix in filenames you create. When ___SINGLE_BACKTICK___false___SINGLE_BACKTICK___, omit the ⚡ prefix from all paths above.
|
||||
|
||||
Namespaced components map to subdirectories: ___SINGLE_BACKTICK___make:livewire Posts/CreatePost___SINGLE_BACKTICK___ creates ___SINGLE_BACKTICK___resources/views/components/posts/⚡create-post.blade.php___SINGLE_BACKTICK___ (single-file by default). Use ___SINGLE_BACKTICK___make:livewire Posts/CreatePost --mfc___SINGLE_BACKTICK___ for multi-file output at ___SINGLE_BACKTICK___resources/views/components/posts/⚡create-post/create-post.php___SINGLE_BACKTICK___ and ___SINGLE_BACKTICK___resources/views/components/posts/⚡create-post/create-post.blade.php___SINGLE_BACKTICK___.
|
||||
|
||||
### Single-File Component Example
|
||||
|
||||
___BOOST_SNIPPET_0___
|
||||
|
||||
## Livewire 4 Specifics
|
||||
|
||||
### Key Changes From Livewire 3
|
||||
|
||||
These things changed in Livewire 4, but may not have been updated in this application. Verify this application's setup to ensure you follow existing conventions.
|
||||
|
||||
- Use ___SINGLE_BACKTICK___Route::livewire()___SINGLE_BACKTICK___ for full-page components (e.g., ___SINGLE_BACKTICK___Route::livewire('/posts/create', CreatePost::class)___SINGLE_BACKTICK___); config keys renamed: ___SINGLE_BACKTICK___layout___SINGLE_BACKTICK___ → ___SINGLE_BACKTICK___component_layout___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___lazy_placeholder___SINGLE_BACKTICK___ → ___SINGLE_BACKTICK___component_placeholder___SINGLE_BACKTICK___.
|
||||
- ___SINGLE_BACKTICK___wire:model___SINGLE_BACKTICK___ now ignores child events by default (use ___SINGLE_BACKTICK___wire:model.deep___SINGLE_BACKTICK___ for old behavior); ___SINGLE_BACKTICK___wire:scroll___SINGLE_BACKTICK___ renamed to ___SINGLE_BACKTICK___wire:navigate:scroll___SINGLE_BACKTICK___.
|
||||
- Component tags must be properly closed; ___SINGLE_BACKTICK___wire:transition___SINGLE_BACKTICK___ now uses View Transitions API (modifiers removed).
|
||||
- JavaScript: ___SINGLE_BACKTICK___$wire.$js('name', fn)___SINGLE_BACKTICK___ → ___SINGLE_BACKTICK___$wire.$js.name = fn___SINGLE_BACKTICK___; ___SINGLE_BACKTICK___commit___SINGLE_BACKTICK___/___SINGLE_BACKTICK___request___SINGLE_BACKTICK___ hooks → ___SINGLE_BACKTICK___interceptMessage()___SINGLE_BACKTICK___/___SINGLE_BACKTICK___interceptRequest()___SINGLE_BACKTICK___.
|
||||
|
||||
### New Features
|
||||
|
||||
- Component formats: single-file (SFC), multi-file (MFC), view-based components.
|
||||
- Islands (___SINGLE_BACKTICK___@island___SINGLE_BACKTICK___) for isolated updates; async actions (___SINGLE_BACKTICK___wire:click.async___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___#[Async]___SINGLE_BACKTICK___) for parallel execution.
|
||||
- Deferred/bundled loading: ___SINGLE_BACKTICK___defer___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___lazy.bundle___SINGLE_BACKTICK___ for optimized component loading.
|
||||
|
||||
| Feature | Usage | Purpose |
|
||||
|---------|-------|---------|
|
||||
| Islands | ___SINGLE_BACKTICK___@island(name: 'stats')___SINGLE_BACKTICK___ | Isolated update regions |
|
||||
| Async | ___SINGLE_BACKTICK___wire:click.async___SINGLE_BACKTICK___ or ___SINGLE_BACKTICK___#[Async]___SINGLE_BACKTICK___ | Non-blocking actions |
|
||||
| Deferred | ___SINGLE_BACKTICK___defer___SINGLE_BACKTICK___ attribute | Load after page render |
|
||||
| Bundled | ___SINGLE_BACKTICK___lazy.bundle___SINGLE_BACKTICK___ | Load multiple together |
|
||||
|
||||
### New Directives
|
||||
|
||||
- ___SINGLE_BACKTICK___wire:sort___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___wire:intersect___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___wire:ref___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___.renderless___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___.preserve-scroll___SINGLE_BACKTICK___ are available for use.
|
||||
- ___SINGLE_BACKTICK___data-loading___SINGLE_BACKTICK___ attribute automatically added to elements triggering network requests.
|
||||
|
||||
| Directive | Purpose |
|
||||
|-----------|---------|
|
||||
| ___SINGLE_BACKTICK___wire:sort___SINGLE_BACKTICK___ | Drag-and-drop sorting |
|
||||
| ___SINGLE_BACKTICK___wire:intersect___SINGLE_BACKTICK___ | Viewport intersection detection |
|
||||
| ___SINGLE_BACKTICK___wire:ref___SINGLE_BACKTICK___ | Element references for JS |
|
||||
| ___SINGLE_BACKTICK___.renderless___SINGLE_BACKTICK___ | Component without rendering |
|
||||
| ___SINGLE_BACKTICK___.preserve-scroll___SINGLE_BACKTICK___ | Preserve scroll position |
|
||||
|
||||
## Best Practices
|
||||
|
||||
- Always use ___SINGLE_BACKTICK___wire:key___SINGLE_BACKTICK___ in loops
|
||||
- Use ___SINGLE_BACKTICK___wire:loading___SINGLE_BACKTICK___ for loading states
|
||||
- Use ___SINGLE_BACKTICK___wire:model.live___SINGLE_BACKTICK___ for instant updates (default is debounced)
|
||||
- Validate and authorize in actions (treat like HTTP requests)
|
||||
|
||||
## Configuration
|
||||
|
||||
- ___SINGLE_BACKTICK___smart_wire_keys___SINGLE_BACKTICK___ defaults to ___SINGLE_BACKTICK___true___SINGLE_BACKTICK___; new configs: ___SINGLE_BACKTICK___component_locations___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___component_namespaces___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___make_command___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___csp_safe___SINGLE_BACKTICK___.
|
||||
|
||||
## Alpine & JavaScript
|
||||
|
||||
- ___SINGLE_BACKTICK___wire:transition___SINGLE_BACKTICK___ uses browser View Transitions API; ___SINGLE_BACKTICK___$errors___SINGLE_BACKTICK___ and ___SINGLE_BACKTICK___$intercept___SINGLE_BACKTICK___ magic properties available.
|
||||
- Non-blocking ___SINGLE_BACKTICK___wire:poll___SINGLE_BACKTICK___ and parallel ___SINGLE_BACKTICK___wire:model.live___SINGLE_BACKTICK___ updates improve performance.
|
||||
|
||||
For interceptors and hooks, see [reference/javascript-hooks.md](reference/javascript-hooks.md).
|
||||
|
||||
## Testing
|
||||
|
||||
___BOOST_SNIPPET_1___
|
||||
|
||||
## Verification
|
||||
|
||||
1. Browser console: Check for JS errors
|
||||
2. Network tab: Verify Livewire requests return 200
|
||||
3. Ensure ___SINGLE_BACKTICK___wire:key___SINGLE_BACKTICK___ on all ___SINGLE_BACKTICK___@foreach___SINGLE_BACKTICK___ loops
|
||||
|
||||
## Common Pitfalls
|
||||
|
||||
- Missing ___SINGLE_BACKTICK___wire:key___SINGLE_BACKTICK___ in loops → unexpected re-rendering
|
||||
- Expecting ___SINGLE_BACKTICK___wire:model___SINGLE_BACKTICK___ real-time → use ___SINGLE_BACKTICK___wire:model.live___SINGLE_BACKTICK___
|
||||
- Unclosed component tags → syntax errors in v4
|
||||
- Using deprecated config keys or JS hooks
|
||||
- Including Alpine.js separately (already bundled in Livewire 4)
|
||||
@@ -0,0 +1,9 @@
|
||||
|
||||
|
||||
|
||||
|
||||
## Media Library
|
||||
|
||||
- ___SINGLE_BACKTICK___spatie/laravel-medialibrary___SINGLE_BACKTICK___ associates files with Eloquent models, with support for collections, conversions, and responsive images.
|
||||
- Always activate the ___SINGLE_BACKTICK___medialibrary-development___SINGLE_BACKTICK___ skill when working with media uploads, conversions, collections, responsive images, or any code that uses the ___SINGLE_BACKTICK___HasMedia___SINGLE_BACKTICK___ interface or ___SINGLE_BACKTICK___InteractsWithMedia___SINGLE_BACKTICK___ trait.
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/storage/framework/views/bcf59257f6020c74ea42048c26530074.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
?>
|
||||
# PHPUnit
|
||||
|
||||
- This application uses PHPUnit for testing. All tests must be written as PHPUnit classes. Use ___SINGLE_BACKTICK___<?php echo e($assist->artisanCommand('make:test --phpunit {name}')); ?>___SINGLE_BACKTICK___ to create a new test.
|
||||
- If you see a test using "Pest", convert it to PHPUnit.
|
||||
- Every time a test has been updated, run that singular test.
|
||||
- When the tests relating to your feature are passing, ask the user if they would like to also run the entire test suite to make sure everything is still passing.
|
||||
- Tests should cover all happy paths, failure paths, and edge cases.
|
||||
- You must not remove any tests or test files from the tests directory without approval. These are not temporary or helper files; these are core to the application.
|
||||
|
||||
## Running Tests
|
||||
- Run the minimal number of tests, using an appropriate filter, before finalizing.
|
||||
- To run all tests: ___SINGLE_BACKTICK___<?php echo e($assist->artisanCommand('test --compact')); ?>___SINGLE_BACKTICK___.
|
||||
- To run all tests in a file: ___SINGLE_BACKTICK___<?php echo e($assist->artisanCommand('test --compact tests/Feature/ExampleTest.php')); ?>___SINGLE_BACKTICK___.
|
||||
- To filter on a particular test name: ___SINGLE_BACKTICK___<?php echo e($assist->artisanCommand('test --compact --filter=testName')); ?>___SINGLE_BACKTICK___ (recommended after making a change to a related file).
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/storage/framework/views/ad027bc1f4f77db585097342990de57b.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,252 @@
|
||||
## Filament
|
||||
|
||||
- Filament is a Laravel UI framework built on Livewire, Alpine.js, and Tailwind CSS. UIs are defined in PHP via fluent, chainable components. Follow existing conventions in this app.
|
||||
- Use the ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ tool for official documentation on Artisan commands, code examples, testing, relationships, and idiomatic practices. If ___SINGLE_BACKTICK___search-docs___SINGLE_BACKTICK___ is unavailable, refer to https://filamentphp.com/docs.
|
||||
|
||||
### Artisan
|
||||
|
||||
- Always use Filament-specific Artisan commands to create files. Find available commands with the ___SINGLE_BACKTICK___list-artisan-commands___SINGLE_BACKTICK___ tool, or run ___SINGLE_BACKTICK___php artisan --help___SINGLE_BACKTICK___.
|
||||
- Inspect required options before running, and always pass ___SINGLE_BACKTICK___--no-interaction___SINGLE_BACKTICK___.
|
||||
|
||||
### Patterns
|
||||
|
||||
Always use static ___SINGLE_BACKTICK___make()___SINGLE_BACKTICK___ methods to initialize components. Most configuration methods accept a ___SINGLE_BACKTICK___Closure___SINGLE_BACKTICK___ for dynamic values.
|
||||
|
||||
Use ___SINGLE_BACKTICK___Get $get___SINGLE_BACKTICK___ to read other form field values for conditional logic:
|
||||
|
||||
|
||||
<code-snippet name="Conditional form field visibility" lang="php">
|
||||
use Filament\Forms\Components\Select;
|
||||
use Filament\Forms\Components\TextInput;
|
||||
use Filament\Schemas\Components\Utilities\Get;
|
||||
|
||||
Select::make('type')
|
||||
->options(CompanyType::class)
|
||||
->required()
|
||||
->live(),
|
||||
|
||||
TextInput::make('company_name')
|
||||
->required()
|
||||
->visible(fn (Get $get): bool => $get('type') === 'business'),
|
||||
|
||||
</code-snippet>
|
||||
|
||||
|
||||
Use ___SINGLE_BACKTICK___Set $set___SINGLE_BACKTICK___ inside ___SINGLE_BACKTICK___->afterStateUpdated()___SINGLE_BACKTICK___ on a ___SINGLE_BACKTICK___->live()___SINGLE_BACKTICK___ field to mutate another field reactively. Prefer ___SINGLE_BACKTICK___->live(onBlur: true)___SINGLE_BACKTICK___ on text inputs to avoid per-keystroke updates:
|
||||
|
||||
|
||||
<code-snippet name="Reactive field update" lang="php">
|
||||
use Filament\Schemas\Components\Utilities\Set;
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
TextInput::make('title')
|
||||
->required()
|
||||
->live(onBlur: true)
|
||||
->afterStateUpdated(fn (Set $set, ?string $state) => $set(
|
||||
'slug',
|
||||
Str::slug($state ?? ''),
|
||||
)),
|
||||
|
||||
TextInput::make('slug')
|
||||
->required(),
|
||||
|
||||
</code-snippet>
|
||||
|
||||
|
||||
Compose layout by nesting ___SINGLE_BACKTICK___Section___SINGLE_BACKTICK___ and ___SINGLE_BACKTICK___Grid___SINGLE_BACKTICK___. Children need explicit ___SINGLE_BACKTICK___->columnSpan()___SINGLE_BACKTICK___ or ___SINGLE_BACKTICK___->columnSpanFull()___SINGLE_BACKTICK___:
|
||||
|
||||
|
||||
<code-snippet name="Section and Grid layout" lang="php">
|
||||
use Filament\Schemas\Components\Grid;
|
||||
use Filament\Schemas\Components\Section;
|
||||
|
||||
Section::make('Details')
|
||||
->schema([
|
||||
Grid::make(2)->schema([
|
||||
TextInput::make('first_name')
|
||||
->columnSpan(1),
|
||||
TextInput::make('last_name')
|
||||
->columnSpan(1),
|
||||
TextInput::make('bio')
|
||||
->columnSpanFull(),
|
||||
]),
|
||||
]),
|
||||
|
||||
</code-snippet>
|
||||
|
||||
|
||||
Use ___SINGLE_BACKTICK___Repeater___SINGLE_BACKTICK___ for inline ___SINGLE_BACKTICK___HasMany___SINGLE_BACKTICK___ management. ___SINGLE_BACKTICK___->relationship()___SINGLE_BACKTICK___ with no args binds to the relationship matching the field name:
|
||||
|
||||
|
||||
<code-snippet name="Repeater for HasMany" lang="php">
|
||||
use Filament\Forms\Components\Repeater;
|
||||
|
||||
Repeater::make('qualifications')
|
||||
->relationship()
|
||||
->schema([
|
||||
TextInput::make('institution')
|
||||
->required(),
|
||||
TextInput::make('qualification')
|
||||
->required(),
|
||||
])
|
||||
->columns(2),
|
||||
|
||||
</code-snippet>
|
||||
|
||||
|
||||
Use ___SINGLE_BACKTICK___state()___SINGLE_BACKTICK___ with a ___SINGLE_BACKTICK___Closure___SINGLE_BACKTICK___ to compute derived column values:
|
||||
|
||||
|
||||
<code-snippet name="Computed table column value" lang="php">
|
||||
use Filament\Tables\Columns\TextColumn;
|
||||
|
||||
TextColumn::make('full_name')
|
||||
->state(fn (User $record): string => "{$record->first_name} {$record->last_name}"),
|
||||
|
||||
</code-snippet>
|
||||
|
||||
|
||||
Use ___SINGLE_BACKTICK___SelectFilter___SINGLE_BACKTICK___ for enum or relationship filters, and ___SINGLE_BACKTICK___Filter___SINGLE_BACKTICK___ with a ___SINGLE_BACKTICK___->query()___SINGLE_BACKTICK___ closure for custom logic:
|
||||
|
||||
|
||||
<code-snippet name="Table filters" lang="php">
|
||||
use Filament\Tables\Filters\Filter;
|
||||
use Filament\Tables\Filters\SelectFilter;
|
||||
use Illuminate\Database\Eloquent\Builder;
|
||||
|
||||
SelectFilter::make('status')
|
||||
->options(UserStatus::class),
|
||||
|
||||
SelectFilter::make('author')
|
||||
->relationship('author', 'name'),
|
||||
|
||||
Filter::make('verified')
|
||||
->query(fn (Builder $query) => $query->whereNotNull('email_verified_at')),
|
||||
|
||||
</code-snippet>
|
||||
|
||||
|
||||
Actions are buttons that encapsulate optional modal forms and behavior:
|
||||
|
||||
|
||||
<code-snippet name="Action with modal form" lang="php">
|
||||
use Filament\Actions\Action;
|
||||
|
||||
Action::make('updateEmail')
|
||||
->schema([
|
||||
TextInput::make('email')
|
||||
->email()
|
||||
->required(),
|
||||
])
|
||||
->action(fn (array $data, User $record) => $record->update($data)),
|
||||
|
||||
</code-snippet>
|
||||
|
||||
|
||||
### Testing
|
||||
|
||||
Testing setup (requires ___SINGLE_BACKTICK___pestphp/pest-plugin-livewire___SINGLE_BACKTICK___ in ___SINGLE_BACKTICK___composer.json___SINGLE_BACKTICK___):
|
||||
|
||||
- Always call ___SINGLE_BACKTICK___$this->actingAs(User::factory()->create())___SINGLE_BACKTICK___ before testing panel functionality.
|
||||
- For edit pages, pass ___SINGLE_BACKTICK___['record' => $user->id]___SINGLE_BACKTICK___, use ___SINGLE_BACKTICK___->call('save')___SINGLE_BACKTICK___ (not ___SINGLE_BACKTICK___->call('create')___SINGLE_BACKTICK___), and do not assert ___SINGLE_BACKTICK___->assertRedirect()___SINGLE_BACKTICK___ (edit pages do not redirect after save).
|
||||
|
||||
|
||||
<code-snippet name="Table test" lang="php">
|
||||
use function Pest\Livewire\livewire;
|
||||
|
||||
livewire(ListUsers::class)
|
||||
->assertCanSeeTableRecords($users)
|
||||
->searchTable($users->first()->name)
|
||||
->assertCanSeeTableRecords($users->take(1))
|
||||
->assertCanNotSeeTableRecords($users->skip(1));
|
||||
|
||||
</code-snippet>
|
||||
|
||||
<code-snippet name="Create resource test" lang="php">
|
||||
use function Pest\Laravel\assertDatabaseHas;
|
||||
|
||||
livewire(CreateUser::class)
|
||||
->fillForm([
|
||||
'name' => 'Test',
|
||||
'email' => 'test@example.com',
|
||||
])
|
||||
->call('create')
|
||||
->assertNotified()
|
||||
->assertHasNoFormErrors()
|
||||
->assertRedirect();
|
||||
|
||||
assertDatabaseHas(User::class, [
|
||||
'name' => 'Test',
|
||||
'email' => 'test@example.com',
|
||||
]);
|
||||
|
||||
</code-snippet>
|
||||
|
||||
<code-snippet name="Edit resource test" lang="php">
|
||||
livewire(EditUser::class, ['record' => $user->id])
|
||||
->fillForm(['name' => 'Updated'])
|
||||
->call('save')
|
||||
->assertNotified()
|
||||
->assertHasNoFormErrors();
|
||||
|
||||
assertDatabaseHas(User::class, [
|
||||
'id' => $user->id,
|
||||
'name' => 'Updated',
|
||||
]);
|
||||
|
||||
</code-snippet>
|
||||
|
||||
<code-snippet name="Testing validation" lang="php">
|
||||
livewire(CreateUser::class)
|
||||
->fillForm([
|
||||
'name' => null,
|
||||
'email' => 'invalid-email',
|
||||
])
|
||||
->call('create')
|
||||
->assertHasFormErrors([
|
||||
'name' => 'required',
|
||||
'email' => 'email',
|
||||
])
|
||||
->assertNotNotified();
|
||||
|
||||
</code-snippet>
|
||||
|
||||
|
||||
Use ___SINGLE_BACKTICK___->callAction(DeleteAction::class)___SINGLE_BACKTICK___ for page actions, or ___SINGLE_BACKTICK___->callAction(TestAction::make('name')->table($record))___SINGLE_BACKTICK___ for table actions:
|
||||
|
||||
|
||||
<code-snippet name="Calling actions" lang="php">
|
||||
use Filament\Actions\Testing\TestAction;
|
||||
|
||||
livewire(ListUsers::class)
|
||||
->callAction(TestAction::make('promote')->table($user), [
|
||||
'role' => 'admin',
|
||||
])
|
||||
->assertNotified();
|
||||
|
||||
</code-snippet>
|
||||
|
||||
|
||||
### Correct Namespaces
|
||||
|
||||
- Form fields (___SINGLE_BACKTICK___TextInput___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___Select___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___Repeater___SINGLE_BACKTICK___, etc.): ___SINGLE_BACKTICK___Filament\Forms\Components\___SINGLE_BACKTICK___
|
||||
- Infolist entries (___SINGLE_BACKTICK___TextEntry___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___IconEntry___SINGLE_BACKTICK___, etc.): ___SINGLE_BACKTICK___Filament\Infolists\Components\___SINGLE_BACKTICK___
|
||||
- Layout components (___SINGLE_BACKTICK___Grid___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___Section___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___Fieldset___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___Tabs___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___Wizard___SINGLE_BACKTICK___, etc.): ___SINGLE_BACKTICK___Filament\Schemas\Components\___SINGLE_BACKTICK___
|
||||
- Schema utilities (___SINGLE_BACKTICK___Get___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___Set___SINGLE_BACKTICK___, etc.): ___SINGLE_BACKTICK___Filament\Schemas\Components\Utilities\___SINGLE_BACKTICK___
|
||||
- Table columns (___SINGLE_BACKTICK___TextColumn___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___IconColumn___SINGLE_BACKTICK___, etc.): ___SINGLE_BACKTICK___Filament\Tables\Columns\___SINGLE_BACKTICK___
|
||||
- Table filters (___SINGLE_BACKTICK___SelectFilter___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___Filter___SINGLE_BACKTICK___, etc.): ___SINGLE_BACKTICK___Filament\Tables\Filters\___SINGLE_BACKTICK___
|
||||
- Actions (___SINGLE_BACKTICK___DeleteAction___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___CreateAction___SINGLE_BACKTICK___, etc.): ___SINGLE_BACKTICK___Filament\Actions\___SINGLE_BACKTICK___. Never use ___SINGLE_BACKTICK___Filament\Tables\Actions\___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___Filament\Forms\Actions\___SINGLE_BACKTICK___, or any other sub-namespace for actions.
|
||||
- Icons: ___SINGLE_BACKTICK___Filament\Support\Icons\Heroicon___SINGLE_BACKTICK___ enum (e.g., ___SINGLE_BACKTICK___Heroicon::PencilSquare___SINGLE_BACKTICK___)
|
||||
|
||||
### Common Mistakes
|
||||
|
||||
- **Never assume public file visibility.** File visibility is ___SINGLE_BACKTICK___private___SINGLE_BACKTICK___ by default. Always use ___SINGLE_BACKTICK___->visibility('public')___SINGLE_BACKTICK___ when public access is needed.
|
||||
- **Never assume full-width layout.** ___SINGLE_BACKTICK___Grid___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___Section___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___Fieldset___SINGLE_BACKTICK___, and ___SINGLE_BACKTICK___Repeater___SINGLE_BACKTICK___ do not span all columns by default.
|
||||
- **Use ___SINGLE_BACKTICK___Select::make('author_id')->relationship('author', 'name')___SINGLE_BACKTICK___ for BelongsTo fields.** ___SINGLE_BACKTICK___BelongsToSelect___SINGLE_BACKTICK___ does not exist in v4.
|
||||
- **___SINGLE_BACKTICK___Repeater___SINGLE_BACKTICK___ uses ___SINGLE_BACKTICK___->schema()___SINGLE_BACKTICK___, not ___SINGLE_BACKTICK___->fields()___SINGLE_BACKTICK___.**
|
||||
- **Never add ___SINGLE_BACKTICK___->dehydrated(false)___SINGLE_BACKTICK___ to fields that need to be saved.** It strips the value from form state before ___SINGLE_BACKTICK___->action()___SINGLE_BACKTICK___ or the save handler runs. Only use it for helper/UI-only fields.
|
||||
- **Use correct property types when overriding ___SINGLE_BACKTICK___Page___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___Resource___SINGLE_BACKTICK___, and ___SINGLE_BACKTICK___Widget___SINGLE_BACKTICK___ properties.** These properties have union types or changed modifiers that must be preserved:
|
||||
- ___SINGLE_BACKTICK___$navigationIcon___SINGLE_BACKTICK___: ___SINGLE_BACKTICK___protected static string | BackedEnum | null___SINGLE_BACKTICK___ (not ___SINGLE_BACKTICK___?string___SINGLE_BACKTICK___)
|
||||
- ___SINGLE_BACKTICK___$navigationGroup___SINGLE_BACKTICK___: ___SINGLE_BACKTICK___protected static string | UnitEnum | null___SINGLE_BACKTICK___ (not ___SINGLE_BACKTICK___?string___SINGLE_BACKTICK___)
|
||||
- ___SINGLE_BACKTICK___$view___SINGLE_BACKTICK___: ___SINGLE_BACKTICK___protected string___SINGLE_BACKTICK___ (not ___SINGLE_BACKTICK___protected static string___SINGLE_BACKTICK___) on ___SINGLE_BACKTICK___Page___SINGLE_BACKTICK___ and ___SINGLE_BACKTICK___Widget___SINGLE_BACKTICK___ classes
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/storage/framework/views/db800410232a09db40ffd9b85b3884fa.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,8 @@
|
||||
{{-- Laravel Media Library Guidelines for AI Code Assistants --}}
|
||||
{{-- Source: https://spatie.be/docs/laravel-medialibrary --}}
|
||||
{{-- License: MIT | (c) Spatie --}}
|
||||
|
||||
## Media Library
|
||||
|
||||
- ___SINGLE_BACKTICK___spatie/laravel-medialibrary___SINGLE_BACKTICK___ associates files with Eloquent models, with support for collections, conversions, and responsive images.
|
||||
- Always activate the ___SINGLE_BACKTICK___medialibrary-development___SINGLE_BACKTICK___ skill when working with media uploads, conversions, collections, responsive images, or any code that uses the ___SINGLE_BACKTICK___HasMedia___SINGLE_BACKTICK___ interface or ___SINGLE_BACKTICK___InteractsWithMedia___SINGLE_BACKTICK___ trait.
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if (!function_exists('__055113a7972e219c28de39f37b71dbee')):
|
||||
function __055113a7972e219c28de39f37b71dbee($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M7.864 4.243A7.5 7.5 0 0 1 19.5 10.5c0 2.92-.556 5.709-1.568 8.268M5.742 6.364A7.465 7.465 0 0 0 4.5 10.5a7.464 7.464 0 0 1-1.15 3.993m1.989 3.559A11.209 11.209 0 0 0 8.25 10.5a3.75 3.75 0 1 1 7.5 0c0 .527-.021 1.049-.064 1.565M12 10.5a14.94 14.94 0 0 1-3.6 9.75m6.633-4.596a18.666 18.666 0 0 1-2.485 5.33"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M12 3.75a6.715 6.715 0 0 0-3.722 1.118.75.75 0 1 1-.828-1.25 8.25 8.25 0 0 1 12.8 6.883c0 3.014-.574 5.897-1.62 8.543a.75.75 0 0 1-1.395-.551A21.69 21.69 0 0 0 18.75 10.5 6.75 6.75 0 0 0 12 3.75ZM6.157 5.739a.75.75 0 0 1 .21 1.04A6.715 6.715 0 0 0 5.25 10.5c0 1.613-.463 3.12-1.265 4.393a.75.75 0 0 1-1.27-.8A6.715 6.715 0 0 0 3.75 10.5c0-1.68.503-3.246 1.367-4.55a.75.75 0 0 1 1.04-.211ZM12 7.5a3 3 0 0 0-3 3c0 3.1-1.176 5.927-3.105 8.056a.75.75 0 1 1-1.112-1.008A10.459 10.459 0 0 0 7.5 10.5a4.5 4.5 0 1 1 9 0c0 .547-.022 1.09-.067 1.626a.75.75 0 0 1-1.495-.123c.041-.495.062-.996.062-1.503a3 3 0 0 0-3-3Zm0 2.25a.75.75 0 0 1 .75.75c0 3.908-1.424 7.485-3.781 10.238a.75.75 0 0 1-1.14-.975A14.19 14.19 0 0 0 11.25 10.5a.75.75 0 0 1 .75-.75Zm3.239 5.183a.75.75 0 0 1 .515.927 19.417 19.417 0 0 1-2.585 5.544.75.75 0 0 1-1.243-.84 17.915 17.915 0 0 0 2.386-5.116.75.75 0 0 1 .927-.515Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M10 2.5c-1.31 0-2.526.386-3.546 1.051a.75.75 0 0 1-.82-1.256A8 8 0 0 1 18 9a22.47 22.47 0 0 1-1.228 7.351.75.75 0 1 1-1.417-.49A20.97 20.97 0 0 0 16.5 9 6.5 6.5 0 0 0 10 2.5ZM4.333 4.416a.75.75 0 0 1 .218 1.038A6.466 6.466 0 0 0 3.5 9a7.966 7.966 0 0 1-1.293 4.362.75.75 0 0 1-1.257-.819A6.466 6.466 0 0 0 2 9c0-1.61.476-3.11 1.295-4.365a.75.75 0 0 1 1.038-.219ZM10 6.12a3 3 0 0 0-3.001 3.041 11.455 11.455 0 0 1-2.697 7.24.75.75 0 0 1-1.148-.965A9.957 9.957 0 0 0 5.5 9c0-.028.002-.055.004-.082a4.5 4.5 0 0 1 8.996.084V9.15l-.005.297a.75.75 0 1 1-1.5-.034c.003-.11.004-.219.005-.328a3 3 0 0 0-3-2.965Zm0 2.13a.75.75 0 0 1 .75.75c0 3.51-1.187 6.745-3.181 9.323a.75.75 0 1 1-1.186-.918A13.687 13.687 0 0 0 9.25 9a.75.75 0 0 1 .75-.75Zm3.529 3.698a.75.75 0 0 1 .584.885 18.883 18.883 0 0 1-2.257 5.84.75.75 0 1 1-1.29-.764 17.386 17.386 0 0 0 2.078-5.377.75.75 0 0 1 .885-.584Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M8 3c-.988 0-1.908.286-2.682.78a.75.75 0 0 1-.806-1.266A6.5 6.5 0 0 1 14.5 8c0 1.665-.333 3.254-.936 4.704a.75.75 0 0 1-1.385-.577C12.708 10.857 13 9.464 13 8a5 5 0 0 0-5-5ZM3.55 4.282a.75.75 0 0 1 .23 1.036A4.973 4.973 0 0 0 3 8a.75.75 0 0 1-1.5 0c0-1.282.372-2.48 1.014-3.488a.75.75 0 0 1 1.036-.23ZM8 5.875A2.125 2.125 0 0 0 5.875 8a3.625 3.625 0 0 1-3.625 3.625H2.213a.75.75 0 1 1 .008-1.5h.03A2.125 2.125 0 0 0 4.376 8a3.625 3.625 0 1 1 7.25 0c0 .078-.001.156-.003.233a.75.75 0 1 1-1.5-.036c.002-.066.003-.131.003-.197A2.125 2.125 0 0 0 8 5.875ZM7.995 7.25a.75.75 0 0 1 .75.75 6.502 6.502 0 0 1-4.343 6.133.75.75 0 1 1-.498-1.415A5.002 5.002 0 0 0 7.245 8a.75.75 0 0 1 .75-.75Zm2.651 2.87a.75.75 0 0 1 .463.955 9.39 9.39 0 0 1-3.008 4.25.75.75 0 0 1-.936-1.171 7.892 7.892 0 0 0 2.527-3.57.75.75 0 0 1 .954-.463Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/finger-print.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,331 @@
|
||||
<?php
|
||||
if (!function_exists('__0895d97ac72dcf2060e8a83465f0c2ce')):
|
||||
function __0895d97ac72dcf2060e8a83465f0c2ce($__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 $iconLeading ??= $attributes->pluck('icon:leading'); ?>
|
||||
<?php $iconVariant ??= $attributes->pluck('icon:variant'); ?>
|
||||
<?php $maskDynamic ??= $attributes->pluck('mask:dynamic'); ?>
|
||||
|
||||
<?php
|
||||
$__defaults = [
|
||||
'name' => $attributes->whereStartsWith('wire:model')->first(),
|
||||
'iconVariant' => 'mini',
|
||||
'variant' => 'outline',
|
||||
'iconTrailing' => null,
|
||||
'iconLeading' => null,
|
||||
'maskDynamic' => null,
|
||||
'expandable' => null,
|
||||
'clearable' => null,
|
||||
'copyable' => null,
|
||||
'viewable' => null,
|
||||
'invalid' => null,
|
||||
'loading' => null,
|
||||
'type' => 'text',
|
||||
'mask' => null,
|
||||
'size' => null,
|
||||
'icon' => null,
|
||||
'kbd' => null,
|
||||
'as' => null,
|
||||
];
|
||||
$name ??= $attributes['name'] ?? $__defaults['name']; unset($attributes['name']);
|
||||
$iconVariant ??= $attributes['icon-variant'] ?? $attributes['iconVariant'] ?? $__defaults['iconVariant']; unset($attributes['iconVariant'], $attributes['icon-variant']);
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
$iconTrailing ??= $attributes['icon-trailing'] ?? $attributes['iconTrailing'] ?? $__defaults['iconTrailing']; unset($attributes['iconTrailing'], $attributes['icon-trailing']);
|
||||
$iconLeading ??= $attributes['icon-leading'] ?? $attributes['iconLeading'] ?? $__defaults['iconLeading']; unset($attributes['iconLeading'], $attributes['icon-leading']);
|
||||
$maskDynamic ??= $attributes['mask-dynamic'] ?? $attributes['maskDynamic'] ?? $__defaults['maskDynamic']; unset($attributes['maskDynamic'], $attributes['mask-dynamic']);
|
||||
$expandable ??= $attributes['expandable'] ?? $__defaults['expandable']; unset($attributes['expandable']);
|
||||
$clearable ??= $attributes['clearable'] ?? $__defaults['clearable']; unset($attributes['clearable']);
|
||||
$copyable ??= $attributes['copyable'] ?? $__defaults['copyable']; unset($attributes['copyable']);
|
||||
$viewable ??= $attributes['viewable'] ?? $__defaults['viewable']; unset($attributes['viewable']);
|
||||
$invalid ??= $attributes['invalid'] ?? $__defaults['invalid']; unset($attributes['invalid']);
|
||||
$loading ??= $attributes['loading'] ?? $__defaults['loading']; unset($attributes['loading']);
|
||||
$type ??= $attributes['type'] ?? $__defaults['type']; unset($attributes['type']);
|
||||
$mask ??= $attributes['mask'] ?? $__defaults['mask']; unset($attributes['mask']);
|
||||
$size ??= $attributes['size'] ?? $__defaults['size']; unset($attributes['size']);
|
||||
$icon ??= $attributes['icon'] ?? $__defaults['icon']; unset($attributes['icon']);
|
||||
$kbd ??= $attributes['kbd'] ?? $__defaults['kbd']; unset($attributes['kbd']);
|
||||
$as ??= $attributes['as'] ?? $__defaults['as']; unset($attributes['as']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
|
||||
$inputAttributes = Flux::attributesAfter('input:', $attributes, []);
|
||||
|
||||
// There are a few loading scenarios that this covers:
|
||||
// If `:loading="false"` then never show loading.
|
||||
// If `:loading="true"` then always show loading.
|
||||
// If `:loading="foo"` then show loading when `foo` request is happening.
|
||||
// If `wire:model` then never show loading.
|
||||
// If `wire:model.live` then show loading when the `wire:model` value request is happening.
|
||||
$wireModel = $attributes->wire('model');
|
||||
$wireTarget = null;
|
||||
|
||||
if ($loading !== false) {
|
||||
if ($loading === true) {
|
||||
$loading = true;
|
||||
} elseif ($wireModel?->directive) {
|
||||
$loading = $wireModel->hasModifier('live');
|
||||
$wireTarget = $loading ? $wireModel->value() : null;
|
||||
} else {
|
||||
$wireTarget = $loading;
|
||||
$loading = (bool) $loading;
|
||||
}
|
||||
}
|
||||
|
||||
$iconLeading ??= $icon;
|
||||
|
||||
$hasLeadingIcon = (bool) ($iconLeading);
|
||||
$countOfTrailingIcons = collect([
|
||||
(bool) $iconTrailing,
|
||||
(bool) $kbd,
|
||||
(bool) $clearable,
|
||||
(bool) $copyable,
|
||||
(bool) $viewable,
|
||||
(bool) $expandable,
|
||||
])->filter()->count();
|
||||
|
||||
$iconClasses = Flux::classes()
|
||||
// When using the outline icon variant, we need to size it down to match the default icon sizes...
|
||||
->add($iconVariant === 'outline' ? 'size-5' : '')
|
||||
;
|
||||
|
||||
$inputLoadingClasses = Flux::classes()
|
||||
// When loading, we need to add some extra padding to the input to account for the loading icon...
|
||||
->add(match ($countOfTrailingIcons) {
|
||||
0 => 'pe-10',
|
||||
1 => 'pe-16',
|
||||
2 => 'pe-23',
|
||||
3 => 'pe-30',
|
||||
4 => 'pe-37',
|
||||
5 => 'pe-44',
|
||||
6 => 'pe-51',
|
||||
})
|
||||
;
|
||||
|
||||
$classes = Flux::classes()
|
||||
->add('w-full border rounded-lg block disabled:shadow-none dark:shadow-none')
|
||||
->add('appearance-none') // Without this, input[type="date"] on mobile doesn't respect w-full...
|
||||
->add(match ($size) {
|
||||
default => 'text-base sm:text-sm py-2 h-10 leading-[1.375rem]', // This makes the height of the input 40px (same as buttons and such...)
|
||||
'sm' => 'text-sm py-1.5 h-8 leading-[1.125rem]',
|
||||
'xs' => 'text-xs py-1.5 h-6 leading-[1.125rem]',
|
||||
})
|
||||
->add(match ($hasLeadingIcon) {
|
||||
true => 'ps-10',
|
||||
false => 'ps-3',
|
||||
})
|
||||
->add(match ($countOfTrailingIcons) {
|
||||
// Make sure there's enough padding on the right side of the input to account for all the icons...
|
||||
0 => 'pe-3',
|
||||
1 => 'pe-10',
|
||||
2 => 'pe-16',
|
||||
3 => 'pe-23',
|
||||
4 => 'pe-30',
|
||||
5 => 'pe-37',
|
||||
6 => 'pe-44',
|
||||
})
|
||||
->add(match ($variant) { // Background...
|
||||
'outline' => 'bg-white dark:bg-white/10 dark:disabled:bg-white/[7%]',
|
||||
'filled' => 'bg-zinc-800/5 dark:bg-white/10 dark:disabled:bg-white/[7%]',
|
||||
})
|
||||
->add(match ($variant) { // Text color
|
||||
'outline' => 'text-zinc-700 disabled:text-zinc-500 placeholder-zinc-400 disabled:placeholder-zinc-400/70 dark:text-zinc-300 dark:disabled:text-zinc-400 dark:placeholder-zinc-400 dark:disabled:placeholder-zinc-500',
|
||||
'filled' => 'text-zinc-700 placeholder-zinc-500 disabled:placeholder-zinc-400 dark:text-zinc-200 dark:placeholder-white/60 dark:disabled:placeholder-white/40',
|
||||
})
|
||||
->add(match ($variant) { // Border...
|
||||
'outline' => 'shadow-xs border-zinc-200 border-b-zinc-300/80 disabled:border-b-zinc-200 dark:border-white/10 dark:disabled:border-white/5',
|
||||
'filled' => 'border-0',
|
||||
})
|
||||
->add(match ($variant) { // Invalid...
|
||||
'outline' => 'data-invalid:shadow-none data-invalid:border-red-500 dark:data-invalid:border-red-500 disabled:data-invalid:border-red-500 dark:disabled:data-invalid:border-red-500',
|
||||
'filled' => 'data-invalid:border-red-500'
|
||||
})
|
||||
->add($attributes->pluck('class:input'))
|
||||
;
|
||||
?>
|
||||
|
||||
<?php if ($type === 'file'): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-field.blade.php', $__blaze->compiledPath.'/6d9b56edd9c9c8e51fa8e057a8020521.php'); ?>
|
||||
<?php if (isset($__slots6d9b56edd9c9c8e51fa8e057a8020521)) { $__slotsStack6d9b56edd9c9c8e51fa8e057a8020521[] = $__slots6d9b56edd9c9c8e51fa8e057a8020521; } ?>
|
||||
<?php if (isset($__attrs6d9b56edd9c9c8e51fa8e057a8020521)) { $__attrsStack6d9b56edd9c9c8e51fa8e057a8020521[] = $__attrs6d9b56edd9c9c8e51fa8e057a8020521; } ?>
|
||||
<?php $__attrs6d9b56edd9c9c8e51fa8e057a8020521 = ['attributes' => $attributes,'name' => $name]; ?>
|
||||
<?php $__slots6d9b56edd9c9c8e51fa8e057a8020521 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs6d9b56edd9c9c8e51fa8e057a8020521); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/file.blade.php', $__blaze->compiledPath.'/1af25dd71f383ab33abb09bcbef1f074.php'); ?>
|
||||
<?php $__blaze->pushData(['attributes' => $attributes,'name' => $name,'size' => $size]); ?>
|
||||
<?php __1af25dd71f383ab33abb09bcbef1f074($__blaze, ['attributes' => $attributes,'name' => $name,'size' => $size], [], ['attributes', 'name', 'size'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php $__slots6d9b56edd9c9c8e51fa8e057a8020521['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots6d9b56edd9c9c8e51fa8e057a8020521); ?>
|
||||
<?php __6d9b56edd9c9c8e51fa8e057a8020521($__blaze, $__attrs6d9b56edd9c9c8e51fa8e057a8020521, $__slots6d9b56edd9c9c8e51fa8e057a8020521, ['attributes', 'name'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack6d9b56edd9c9c8e51fa8e057a8020521)) { $__slots6d9b56edd9c9c8e51fa8e057a8020521 = array_pop($__slotsStack6d9b56edd9c9c8e51fa8e057a8020521); } ?>
|
||||
<?php if (! empty($__attrsStack6d9b56edd9c9c8e51fa8e057a8020521)) { $__attrs6d9b56edd9c9c8e51fa8e057a8020521 = array_pop($__attrsStack6d9b56edd9c9c8e51fa8e057a8020521); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php elseif ($as !== 'button'): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-field.blade.php', $__blaze->compiledPath.'/6d9b56edd9c9c8e51fa8e057a8020521.php'); ?>
|
||||
<?php if (isset($__slots6d9b56edd9c9c8e51fa8e057a8020521)) { $__slotsStack6d9b56edd9c9c8e51fa8e057a8020521[] = $__slots6d9b56edd9c9c8e51fa8e057a8020521; } ?>
|
||||
<?php if (isset($__attrs6d9b56edd9c9c8e51fa8e057a8020521)) { $__attrsStack6d9b56edd9c9c8e51fa8e057a8020521[] = $__attrs6d9b56edd9c9c8e51fa8e057a8020521; } ?>
|
||||
<?php $__attrs6d9b56edd9c9c8e51fa8e057a8020521 = ['attributes' => $attributes,'name' => $name]; ?>
|
||||
<?php $__slots6d9b56edd9c9c8e51fa8e057a8020521 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs6d9b56edd9c9c8e51fa8e057a8020521); ?>
|
||||
<?php ob_start(); ?>
|
||||
<div <?php echo e($attributes->only('class')->class('w-full relative block group/input')); ?> data-flux-input>
|
||||
<?php if (is_string($iconLeading)): ?>
|
||||
<div class="pointer-events-none absolute top-0 bottom-0 border-s border-transparent flex items-center justify-center text-xs text-zinc-400/75 dark:text-white/60 ps-3 start-0">
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconLeading,'variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php __50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconLeading,'variant' => $iconVariant,'class' => $iconClasses], [], ['icon', 'variant', 'class'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
</div>
|
||||
<?php elseif ($iconLeading): ?>
|
||||
<div <?php echo e($iconLeading->attributes->class('absolute top-0 bottom-0 border-s border-transparent flex items-center justify-center text-xs text-zinc-400/75 dark:text-white/60 ps-3 start-0')); ?>>
|
||||
<?php echo e($iconLeading); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<input
|
||||
type="<?php echo e($type); ?>"
|
||||
|
||||
<?php echo e($attributes->except('class')->class($type === 'file' ? '' : $classes)->merge($inputAttributes->getAttributes())); ?>
|
||||
|
||||
<?php if (isset($name)): ?> name="<?php echo e($name); ?>" <?php endif; ?>
|
||||
<?php if ($maskDynamic): ?> x-mask:dynamic="<?php echo e($maskDynamic); ?>" <?php elseif($mask): ?> x-mask="<?php echo e($mask); ?>" <?php endif; ?>
|
||||
<?php if (is_numeric($size)): ?> size="<?php echo e($size); ?>" <?php endif; ?>
|
||||
[STARTCOMPILEDUNBLAZE:HXsRogRdQz]<?php \Livewire\Blaze\Unblaze::storeScope("HXsRogRdQz", scope: ['name' => $name ?? null, 'invalid' => $invalid ?? false]) ?>[ENDCOMPILEDUNBLAZE:HXsRogRdQz]
|
||||
data-flux-control
|
||||
data-flux-group-target
|
||||
<?php if($loading): ?> wire:loading.class="<?php echo e($inputLoadingClasses); ?>" <?php endif; ?>
|
||||
<?php if($loading && $wireTarget): ?> wire:target="<?php echo e($wireTarget); ?>" <?php endif; ?>
|
||||
>
|
||||
|
||||
<?php if ($loading || $countOfTrailingIcons > 0): ?>
|
||||
<div class="absolute top-0 bottom-0 flex items-center gap-x-1.5 pe-2 border-e border-transparent end-0 text-xs text-zinc-400">
|
||||
|
||||
<?php if ($loading): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['name' => 'loading','variant' => $iconVariant,'class' => $iconClasses,'wire:loading' => true,'wire:target' => $wireTarget]); ?>
|
||||
<?php __50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['name' => 'loading','variant' => $iconVariant,'class' => $iconClasses,'wire:loading' => true,'wire:target' => $wireTarget], [], ['variant', 'class', 'wire:loading', 'wire:target'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($clearable): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/clearable.blade.php', $__blaze->compiledPath.'/84a2e4415c1c11eab19cc6a05501a0bd.php'); ?>
|
||||
<?php $__blaze->pushData(['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant]); ?>
|
||||
<?php __84a2e4415c1c11eab19cc6a05501a0bd($__blaze, ['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant], [], ['size', 'iconVariant'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($kbd): ?>
|
||||
<span class="pointer-events-none"><?php echo e($kbd); ?></span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($expandable): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/expandable.blade.php', $__blaze->compiledPath.'/877a95db7960dd6ae78021ffec6adb87.php'); ?>
|
||||
<?php $__blaze->pushData(['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant]); ?>
|
||||
<?php __877a95db7960dd6ae78021ffec6adb87($__blaze, ['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant], [], ['size', 'iconVariant'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($copyable): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/copyable.blade.php', $__blaze->compiledPath.'/76e1656858e94ddaad1f897a68c28367.php'); ?>
|
||||
<?php $__blaze->pushData(['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant]); ?>
|
||||
<?php __76e1656858e94ddaad1f897a68c28367($__blaze, ['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant], [], ['size', 'iconVariant'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($viewable): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/viewable.blade.php', $__blaze->compiledPath.'/dc0eeb96929c474f4cdb0a82144f2e63.php'); ?>
|
||||
<?php $__blaze->pushData(['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant]); ?>
|
||||
<?php __dc0eeb96929c474f4cdb0a82144f2e63($__blaze, ['inset' => 'left right','size' => $size,'iconVariant' => $iconVariant], [], ['size', 'iconVariant'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (is_string($iconTrailing)): ?>
|
||||
<?php
|
||||
$trailingIconClasses = clone $iconClasses;
|
||||
$trailingIconClasses->add('text-zinc-400/75 dark:text-white/60 pointer-events-none');
|
||||
?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $trailingIconClasses]); ?>
|
||||
<?php __50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $trailingIconClasses], [], ['icon', 'variant', 'class'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php elseif ($iconTrailing): ?>
|
||||
<?php echo e($iconTrailing); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php $__slots6d9b56edd9c9c8e51fa8e057a8020521['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots6d9b56edd9c9c8e51fa8e057a8020521); ?>
|
||||
<?php __6d9b56edd9c9c8e51fa8e057a8020521($__blaze, $__attrs6d9b56edd9c9c8e51fa8e057a8020521, $__slots6d9b56edd9c9c8e51fa8e057a8020521, ['attributes', 'name'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack6d9b56edd9c9c8e51fa8e057a8020521)) { $__slots6d9b56edd9c9c8e51fa8e057a8020521 = array_pop($__slotsStack6d9b56edd9c9c8e51fa8e057a8020521); } ?>
|
||||
<?php if (! empty($__attrsStack6d9b56edd9c9c8e51fa8e057a8020521)) { $__attrs6d9b56edd9c9c8e51fa8e057a8020521 = array_pop($__attrsStack6d9b56edd9c9c8e51fa8e057a8020521); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php else: ?>
|
||||
<button <?php echo e($attributes->merge(['type' => 'button'])->class([$classes, 'w-full relative flex'])); ?>>
|
||||
<?php if (is_string($iconLeading)): ?>
|
||||
<div class="absolute top-0 bottom-0 flex items-center justify-center text-xs text-zinc-400/75 ps-3 start-0">
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconLeading,'variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php __50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconLeading,'variant' => $iconVariant,'class' => $iconClasses], [], ['icon', 'variant', 'class'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
</div>
|
||||
<?php elseif ($iconLeading): ?>
|
||||
<div <?php echo e($iconLeading->attributes->class('absolute top-0 bottom-0 flex items-center justify-center text-xs text-zinc-400/75 ps-3 start-0')); ?>>
|
||||
<?php echo e($iconLeading); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($attributes->has('placeholder')): ?>
|
||||
<div class="block self-center text-start flex-1 font-medium text-zinc-400 dark:text-white/40">
|
||||
<?php echo e($attributes->get('placeholder')); ?>
|
||||
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div class="text-start self-center flex-1 font-medium text-zinc-800 dark:text-white">
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($kbd): ?>
|
||||
<div class="absolute top-0 bottom-0 flex items-center justify-center text-xs text-zinc-400/75 pe-4 end-0">
|
||||
<?php echo e($kbd); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (is_string($iconTrailing)): ?>
|
||||
<div class="absolute top-0 bottom-0 flex items-center justify-center text-xs text-zinc-400/75 pe-3 end-0">
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php __50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $iconClasses], [], ['icon', 'variant', 'class'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
</div>
|
||||
<?php elseif ($iconTrailing): ?>
|
||||
<div <?php echo e($iconTrailing->attributes->class('absolute top-0 bottom-0 flex items-center justify-center text-xs text-zinc-400/75 pe-2 end-0')); ?>>
|
||||
<?php echo e($iconTrailing); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</button>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
if (!function_exists('__136155770fa525852861cb1985f145a5')):
|
||||
function __136155770fa525852861cb1985f145a5($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M3.75 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 3.75 9.375v-4.5ZM3.75 14.625c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5a1.125 1.125 0 0 1-1.125-1.125v-4.5ZM13.5 4.875c0-.621.504-1.125 1.125-1.125h4.5c.621 0 1.125.504 1.125 1.125v4.5c0 .621-.504 1.125-1.125 1.125h-4.5A1.125 1.125 0 0 1 13.5 9.375v-4.5Z"/>
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M6.75 6.75h.75v.75h-.75v-.75ZM6.75 16.5h.75v.75h-.75v-.75ZM16.5 6.75h.75v.75h-.75v-.75ZM13.5 13.5h.75v.75h-.75v-.75ZM13.5 19.5h.75v.75h-.75v-.75ZM19.5 13.5h.75v.75h-.75v-.75ZM19.5 19.5h.75v.75h-.75v-.75ZM16.5 16.5h.75v.75h-.75v-.75Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M3 4.875C3 3.839 3.84 3 4.875 3h4.5c1.036 0 1.875.84 1.875 1.875v4.5c0 1.036-.84 1.875-1.875 1.875h-4.5A1.875 1.875 0 0 1 3 9.375v-4.5ZM4.875 4.5a.375.375 0 0 0-.375.375v4.5c0 .207.168.375.375.375h4.5a.375.375 0 0 0 .375-.375v-4.5a.375.375 0 0 0-.375-.375h-4.5Zm7.875.375c0-1.036.84-1.875 1.875-1.875h4.5C20.16 3 21 3.84 21 4.875v4.5c0 1.036-.84 1.875-1.875 1.875h-4.5a1.875 1.875 0 0 1-1.875-1.875v-4.5Zm1.875-.375a.375.375 0 0 0-.375.375v4.5c0 .207.168.375.375.375h4.5a.375.375 0 0 0 .375-.375v-4.5a.375.375 0 0 0-.375-.375h-4.5ZM6 6.75A.75.75 0 0 1 6.75 6h.75a.75.75 0 0 1 .75.75v.75a.75.75 0 0 1-.75.75h-.75A.75.75 0 0 1 6 7.5v-.75Zm9.75 0A.75.75 0 0 1 16.5 6h.75a.75.75 0 0 1 .75.75v.75a.75.75 0 0 1-.75.75h-.75a.75.75 0 0 1-.75-.75v-.75ZM3 14.625c0-1.036.84-1.875 1.875-1.875h4.5c1.036 0 1.875.84 1.875 1.875v4.5c0 1.035-.84 1.875-1.875 1.875h-4.5A1.875 1.875 0 0 1 3 19.125v-4.5Zm1.875-.375a.375.375 0 0 0-.375.375v4.5c0 .207.168.375.375.375h4.5a.375.375 0 0 0 .375-.375v-4.5a.375.375 0 0 0-.375-.375h-4.5Zm7.875-.75a.75.75 0 0 1 .75-.75h.75a.75.75 0 0 1 .75.75v.75a.75.75 0 0 1-.75.75h-.75a.75.75 0 0 1-.75-.75v-.75Zm6 0a.75.75 0 0 1 .75-.75h.75a.75.75 0 0 1 .75.75v.75a.75.75 0 0 1-.75.75h-.75a.75.75 0 0 1-.75-.75v-.75ZM6 16.5a.75.75 0 0 1 .75-.75h.75a.75.75 0 0 1 .75.75v.75a.75.75 0 0 1-.75.75h-.75a.75.75 0 0 1-.75-.75v-.75Zm9.75 0a.75.75 0 0 1 .75-.75h.75a.75.75 0 0 1 .75.75v.75a.75.75 0 0 1-.75.75h-.75a.75.75 0 0 1-.75-.75v-.75Zm-3 3a.75.75 0 0 1 .75-.75h.75a.75.75 0 0 1 .75.75v.75a.75.75 0 0 1-.75.75h-.75a.75.75 0 0 1-.75-.75v-.75Zm6 0a.75.75 0 0 1 .75-.75h.75a.75.75 0 0 1 .75.75v.75a.75.75 0 0 1-.75.75h-.75a.75.75 0 0 1-.75-.75v-.75Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M3.75 2A1.75 1.75 0 0 0 2 3.75v3.5C2 8.216 2.784 9 3.75 9h3.5A1.75 1.75 0 0 0 9 7.25v-3.5A1.75 1.75 0 0 0 7.25 2h-3.5ZM3.5 3.75a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.5a.25.25 0 0 1-.25.25h-3.5a.25.25 0 0 1-.25-.25v-3.5ZM3.75 11A1.75 1.75 0 0 0 2 12.75v3.5c0 .966.784 1.75 1.75 1.75h3.5A1.75 1.75 0 0 0 9 16.25v-3.5A1.75 1.75 0 0 0 7.25 11h-3.5Zm-.25 1.75a.25.25 0 0 1 .25-.25h3.5a.25.25 0 0 1 .25.25v3.5a.25.25 0 0 1-.25.25h-3.5a.25.25 0 0 1-.25-.25v-3.5Zm7.5-9c0-.966.784-1.75 1.75-1.75h3.5c.966 0 1.75.784 1.75 1.75v3.5A1.75 1.75 0 0 1 16.25 9h-3.5A1.75 1.75 0 0 1 11 7.25v-3.5Zm1.75-.25a.25.25 0 0 0-.25.25v3.5c0 .138.112.25.25.25h3.5a.25.25 0 0 0 .25-.25v-3.5a.25.25 0 0 0-.25-.25h-3.5Zm-7.26 1a1 1 0 0 0-1 1v.01a1 1 0 0 0 1 1h.01a1 1 0 0 0 1-1V5.5a1 1 0 0 0-1-1h-.01Zm9 0a1 1 0 0 0-1 1v.01a1 1 0 0 0 1 1h.01a1 1 0 0 0 1-1V5.5a1 1 0 0 0-1-1h-.01Zm-9 9a1 1 0 0 0-1 1v.01a1 1 0 0 0 1 1h.01a1 1 0 0 0 1-1v-.01a1 1 0 0 0-1-1h-.01Zm9 0a1 1 0 0 0-1 1v.01a1 1 0 0 0 1 1h.01a1 1 0 0 0 1-1v-.01a1 1 0 0 0-1-1h-.01Zm-3.5-1.5a1 1 0 0 1 1-1H12a1 1 0 0 1 1 1v.01a1 1 0 0 1-1 1h-.01a1 1 0 0 1-1-1V12Zm6-1a1 1 0 0 0-1 1v.01a1 1 0 0 0 1 1H17a1 1 0 0 0 1-1V12a1 1 0 0 0-1-1h-.01Zm-1 6a1 1 0 0 1 1-1H17a1 1 0 0 1 1 1v.01a1 1 0 0 1-1 1h-.01a1 1 0 0 1-1-1V17Zm-4-1a1 1 0 0 0-1 1v.01a1 1 0 0 0 1 1H12a1 1 0 0 0 1-1V17a1 1 0 0 0-1-1h-.01Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M4.75 4.25a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z"/>
|
||||
<path fill-rule="evenodd" d="M2 3.5A1.5 1.5 0 0 1 3.5 2H6a1.5 1.5 0 0 1 1.5 1.5V6A1.5 1.5 0 0 1 6 7.5H3.5A1.5 1.5 0 0 1 2 6V3.5Zm1.5 0H6V6H3.5V3.5Z" clip-rule="evenodd"/>
|
||||
<path d="M4.25 11.25a.5.5 0 1 1 1 0 .5.5 0 0 1-1 0Z"/>
|
||||
<path fill-rule="evenodd" d="M2 10a1.5 1.5 0 0 1 1.5-1.5H6A1.5 1.5 0 0 1 7.5 10v2.5A1.5 1.5 0 0 1 6 14H3.5A1.5 1.5 0 0 1 2 12.5V10Zm1.5 2.5V10H6v2.5H3.5Z" clip-rule="evenodd"/>
|
||||
<path d="M11.25 4.25a.5.5 0 1 0 0 1 .5.5 0 0 0 0-1Z"/>
|
||||
<path fill-rule="evenodd" d="M10 2a1.5 1.5 0 0 0-1.5 1.5V6A1.5 1.5 0 0 0 10 7.5h2.5A1.5 1.5 0 0 0 14 6V3.5A1.5 1.5 0 0 0 12.5 2H10Zm2.5 1.5H10V6h2.5V3.5Z" clip-rule="evenodd"/>
|
||||
<path d="M8.5 9.417a.917.917 0 1 1 1.833 0 .917.917 0 0 1-1.833 0ZM8.5 13.083a.917.917 0 1 1 1.833 0 .917.917 0 0 1-1.833 0ZM13.083 8.5a.917.917 0 1 0 0 1.833.917.917 0 0 0 0-1.833ZM12.166 13.084a.917.917 0 1 1 1.833 0 .917.917 0 0 1-1.833 0ZM11.25 10.333a.917.917 0 1 0 0 1.833.917.917 0 0 0 0-1.833Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/qr-code.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
if (!function_exists('__147c6d348fe7591335f1e77fa45170f8')):
|
||||
function __147c6d348fe7591335f1e77fa45170f8($__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
|
||||
$classes = Flux::classes()
|
||||
->add('[:where(&)]:min-w-48 p-[.3125rem]')
|
||||
->add('rounded-lg shadow-xs')
|
||||
->add('border border-zinc-200 dark:border-zinc-600')
|
||||
->add('bg-white dark:bg-zinc-700')
|
||||
->add('focus:outline-hidden')
|
||||
;
|
||||
?>
|
||||
|
||||
<ui-menu
|
||||
<?php echo e($attributes->class($classes)); ?>
|
||||
|
||||
popover="manual"
|
||||
data-flux-menu
|
||||
>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</ui-menu>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
if (!function_exists('__15ed795fbba84c4429b2df05ca4431d3')):
|
||||
function __15ed795fbba84c4429b2df05ca4431d3($__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
|
||||
$__defaults = [
|
||||
'position' => 'bottom end',
|
||||
'expanded' => false,
|
||||
];
|
||||
$position ??= $attributes['position'] ?? $__defaults['position']; unset($attributes['position']);
|
||||
$expanded ??= $attributes['expanded'] ?? $__defaults['expanded']; unset($attributes['expanded']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<ui-toast-group x-data x-on:toast-show.document="$el.showToast($event.detail)" popover="manual" position="<?php echo e($position); ?>" <?php echo e($expanded ? 'expanded' : ''); ?> wire:ignore>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</ui-toast-group>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/toast/group.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
if (!function_exists('__19904eeb68b2e2f8ba0e155507154a73')):
|
||||
function __19904eeb68b2e2f8ba0e155507154a73($__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
|
||||
$__defaults = [
|
||||
'variant' => null,
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes()
|
||||
->add('flex flex-col')
|
||||
->add('overflow-visible min-h-auto')
|
||||
;
|
||||
?>
|
||||
|
||||
<nav <?php echo e($attributes->class($classes)); ?> data-flux-navlist>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</nav>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/navlist/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
if (!function_exists('__23fd5eb35fc9b151168d38378f7c1716')):
|
||||
function __23fd5eb35fc9b151168d38378f7c1716($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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();
|
||||
?>
|
||||
|
||||
|
||||
<div class="-mx-[.3125rem] my-[.3125rem] h-px" <?php echo e($attributes); ?> data-flux-menu-separator>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/separator.blade.php', $__blaze->compiledPath.'/ead59bb73ece9c4532f875b4b481ffe6.php'); ?>
|
||||
<?php $__blaze->pushData(['class' => 'dark:bg-zinc-600!']); ?>
|
||||
<?php __ead59bb73ece9c4532f875b4b481ffe6($__blaze, ['class' => 'dark:bg-zinc-600!'], [], [], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
</div>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/separator.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
if (!function_exists('__28ffc7e14571aa8294e72d7090e73e52')):
|
||||
function __28ffc7e14571aa8294e72d7090e73e52($__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
|
||||
$__defaults = [
|
||||
'length' => null,
|
||||
'private' => false,
|
||||
];
|
||||
$length ??= $attributes['length'] ?? $__defaults['length']; unset($attributes['length']);
|
||||
$private ??= $attributes['private'] ?? $__defaults['private']; unset($attributes['private']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes()
|
||||
->add('flex items-center gap-2 isolate w-fit')
|
||||
->add('[&_[data-flux-input-group]]:w-auto')
|
||||
?>
|
||||
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-field.blade.php', $__blaze->compiledPath.'/6d9b56edd9c9c8e51fa8e057a8020521.php'); ?>
|
||||
<?php if (isset($__slots6d9b56edd9c9c8e51fa8e057a8020521)) { $__slotsStack6d9b56edd9c9c8e51fa8e057a8020521[] = $__slots6d9b56edd9c9c8e51fa8e057a8020521; } ?>
|
||||
<?php if (isset($__attrs6d9b56edd9c9c8e51fa8e057a8020521)) { $__attrsStack6d9b56edd9c9c8e51fa8e057a8020521[] = $__attrs6d9b56edd9c9c8e51fa8e057a8020521; } ?>
|
||||
<?php $__attrs6d9b56edd9c9c8e51fa8e057a8020521 = ['attributes' => $attributes]; ?>
|
||||
<?php $__slots6d9b56edd9c9c8e51fa8e057a8020521 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs6d9b56edd9c9c8e51fa8e057a8020521); ?>
|
||||
<?php ob_start(); ?>
|
||||
<ui-otp
|
||||
<?php echo e($attributes->class($classes)); ?>
|
||||
|
||||
data-flux-otp
|
||||
data-flux-control
|
||||
role="group"
|
||||
data-flux-input-aria-label="<?php echo e(__('Character {current} of {total}')); ?>"
|
||||
>
|
||||
<?php if($slot->isEmpty() && $length): ?>
|
||||
<?php for($i = 0; $i < $length; $i++): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/otp/input.blade.php', $__blaze->compiledPath.'/93de554cb51419b7cd63a71bcd81b0e6.php'); ?>
|
||||
<?php $__blaze->pushData([]); ?>
|
||||
<?php __93de554cb51419b7cd63a71bcd81b0e6($__blaze, [], [], [], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php endfor; ?>
|
||||
<?php else: ?>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</ui-otp>
|
||||
<?php $__slots6d9b56edd9c9c8e51fa8e057a8020521['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots6d9b56edd9c9c8e51fa8e057a8020521); ?>
|
||||
<?php __6d9b56edd9c9c8e51fa8e057a8020521($__blaze, $__attrs6d9b56edd9c9c8e51fa8e057a8020521, $__slots6d9b56edd9c9c8e51fa8e057a8020521, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack6d9b56edd9c9c8e51fa8e057a8020521)) { $__slots6d9b56edd9c9c8e51fa8e057a8020521 = array_pop($__slotsStack6d9b56edd9c9c8e51fa8e057a8020521); } ?>
|
||||
<?php if (! empty($__attrsStack6d9b56edd9c9c8e51fa8e057a8020521)) { $__attrs6d9b56edd9c9c8e51fa8e057a8020521 = array_pop($__attrsStack6d9b56edd9c9c8e51fa8e057a8020521); } ?>
|
||||
<?php $__blaze->popData(); ?><?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/otp/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,75 @@
|
||||
<?php
|
||||
if (!function_exists('__2b27ee0d9a529bfbbe608705842d31d3')):
|
||||
function __2b27ee0d9a529bfbbe608705842d31d3($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'position' => 'bottom end',
|
||||
];
|
||||
$position ??= $attributes['position'] ?? $__defaults['position']; unset($attributes['position']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<ui-toast x-data x-on:toast-show.document="! $el.closest('ui-toast-group') && $el.showToast($event.detail)" popover="manual" position="<?php echo e($position); ?>" wire:ignore>
|
||||
<template>
|
||||
<div <?php echo e($attributes->only(['class'])->class('max-w-sm in-[ui-toast-group]:max-w-auto in-[ui-toast-group]:w-xs sm:in-[ui-toast-group]:w-sm')); ?> data-variant="" data-flux-toast-dialog>
|
||||
<div class="p-2 flex rounded-xl shadow-lg bg-white border border-zinc-200 border-b-zinc-300/80 dark:bg-zinc-700 dark:border-zinc-600">
|
||||
<div class="flex-1 flex items-start gap-4 overflow-hidden">
|
||||
<div class="flex-1 py-1.5 ps-2.5 flex gap-2">
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="hidden [[data-flux-toast-dialog][data-variant=success]_&]:block shrink-0 mt-0.5 size-4 text-lime-600 dark:text-lime-400">
|
||||
<path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14Zm3.844-8.791a.75.75 0 0 0-1.188-.918l-3.7 4.79-1.649-1.833a.75.75 0 1 0-1.114 1.004l2.25 2.5a.75.75 0 0 0 1.15-.043l4.25-5.5Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="hidden [[data-flux-toast-dialog][data-variant=warning]_&]:block shrink-0 mt-0.5 size-4 text-amber-500 dark:text-amber-400">
|
||||
<path fill-rule="evenodd" d="M6.701 2.25c.577-1 2.02-1 2.598 0l5.196 9a1.5 1.5 0 0 1-1.299 2.25H2.804a1.5 1.5 0 0 1-1.3-2.25l5.197-9ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 1 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="hidden [[data-flux-toast-dialog][data-variant=info]_&]:block shrink-0 mt-0.5 size-4 text-cyan-500 dark:text-cyan-400">
|
||||
<path fill-rule="evenodd" d="M15 8A7 7 0 1 1 1 8a7 7 0 0 1 14 0ZM9 5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM6.75 8a.75.75 0 0 0 0 1.5h.75v1.75a.75.75 0 0 0 1.5 0v-2.5A.75.75 0 0 0 8.25 8h-1.5Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" class="hidden [[data-flux-toast-dialog][data-variant=danger]_&]:block shrink-0 mt-0.5 size-4 text-rose-500 dark:text-rose-400">
|
||||
<path fill-rule="evenodd" d="M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14ZM8 4a.75.75 0 0 1 .75.75v3a.75.75 0 0 1-1.5 0v-3A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z" clip-rule="evenodd" />
|
||||
</svg>
|
||||
|
||||
<div>
|
||||
|
||||
<div class="font-medium text-sm text-zinc-800 dark:text-white [&:not(:empty)+div]:font-normal [&:not(:empty)+div]:text-zinc-500 [&:not(:empty)+div]:dark:text-zinc-300 [&:not(:empty)]:pb-2"><slot name="heading"></slot></div>
|
||||
|
||||
|
||||
<div class="font-medium text-sm text-zinc-800 dark:text-white"><slot name="text"></slot></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<ui-close class="flex items-center">
|
||||
<button type="button" class="inline-flex items-center font-medium justify-center gap-2 truncate disabled:opacity-50 dark:disabled:opacity-75 disabled:cursor-default h-8 text-sm rounded-md w-8 bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15 text-zinc-400 hover:text-zinc-800 dark:text-zinc-400 dark:hover:text-white" as="button">
|
||||
<div>
|
||||
<svg class="[:where(&)]:size-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"></path>
|
||||
</svg>
|
||||
</div>
|
||||
</button>
|
||||
</ui-close>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</ui-toast>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/toast/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if (!function_exists('__2ba5c1e3d813630826a655d29d5d0b30')):
|
||||
function __2ba5c1e3d813630826a655d29d5d0b30($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M16.5 4.478v.227a48.816 48.816 0 0 1 3.878.512.75.75 0 1 1-.256 1.478l-.209-.035-1.005 13.07a3 3 0 0 1-2.991 2.77H8.084a3 3 0 0 1-2.991-2.77L4.087 6.66l-.209.035a.75.75 0 0 1-.256-1.478A48.567 48.567 0 0 1 7.5 4.705v-.227c0-1.564 1.213-2.9 2.816-2.951a52.662 52.662 0 0 1 3.369 0c1.603.051 2.815 1.387 2.815 2.951Zm-6.136-1.452a51.196 51.196 0 0 1 3.273 0C14.39 3.05 15 3.684 15 4.478v.113a49.488 49.488 0 0 0-6 0v-.113c0-.794.609-1.428 1.364-1.452Zm-.355 5.945a.75.75 0 1 0-1.5.058l.347 9a.75.75 0 1 0 1.499-.058l-.346-9Zm5.48.058a.75.75 0 1 0-1.498-.058l-.347 9a.75.75 0 0 0 1.5.058l.345-9Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M5 3.25V4H2.75a.75.75 0 0 0 0 1.5h.3l.815 8.15A1.5 1.5 0 0 0 5.357 15h5.285a1.5 1.5 0 0 0 1.493-1.35l.815-8.15h.3a.75.75 0 0 0 0-1.5H11v-.75A2.25 2.25 0 0 0 8.75 1h-1.5A2.25 2.25 0 0 0 5 3.25Zm2.25-.75a.75.75 0 0 0-.75.75V4h3v-.75a.75.75 0 0 0-.75-.75h-1.5ZM6.05 6a.75.75 0 0 1 .787.713l.275 5.5a.75.75 0 0 1-1.498.075l-.275-5.5A.75.75 0 0 1 6.05 6Zm3.9 0a.75.75 0 0 1 .712.787l-.275 5.5a.75.75 0 0 1-1.498-.075l.275-5.5a.75.75 0 0 1 .786-.711Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/trash.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if (!function_exists('__34b2b29875059d8c8b7782b717e28e80')):
|
||||
function __34b2b29875059d8c8b7782b717e28e80($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="m4.5 12.75 6 6 9-13.5"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M19.916 4.626a.75.75 0 0 1 .208 1.04l-9 13.5a.75.75 0 0 1-1.154.114l-6-6a.75.75 0 0 1 1.06-1.06l5.353 5.353 8.493-12.74a.75.75 0 0 1 1.04-.207Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M16.704 4.153a.75.75 0 0 1 .143 1.052l-8 10.5a.75.75 0 0 1-1.127.075l-4.5-4.5a.75.75 0 0 1 1.06-1.06l3.894 3.893 7.48-9.817a.75.75 0 0 1 1.05-.143Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M12.416 3.376a.75.75 0 0 1 .208 1.04l-5 7.5a.75.75 0 0 1-1.154.114l-3-3a.75.75 0 0 1 1.06-1.06l2.353 2.353 4.493-6.74a.75.75 0 0 1 1.04-.207Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/check.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
if (!function_exists('__3b2703952fe1f03fa6fc92947a043f23')):
|
||||
function __3b2703952fe1f03fa6fc92947a043f23($__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
|
||||
$__defaults = [
|
||||
'position' => 'bottom',
|
||||
'align' => 'start',
|
||||
];
|
||||
$position ??= $attributes['position'] ?? $__defaults['position']; unset($attributes['position']);
|
||||
$align ??= $attributes['align'] ?? $__defaults['align']; unset($attributes['align']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
// Support adding the .self modifier to the wire:model directive...
|
||||
if (($wireModel = $attributes->wire('model')) && $wireModel->directive && ! $wireModel->hasModifier('self')) {
|
||||
unset($attributes[$wireModel->directive]);
|
||||
|
||||
$wireModel->directive .= '.self';
|
||||
|
||||
$attributes = $attributes->merge([$wireModel->directive => $wireModel->value]);
|
||||
}
|
||||
?>
|
||||
|
||||
<ui-dropdown position="<?php echo e($position); ?> <?php echo e($align); ?>" <?php echo e($attributes); ?> data-flux-dropdown>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</ui-dropdown>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/dropdown.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,61 @@
|
||||
<?php
|
||||
if (!function_exists('__3e67020b08ceeca960cbb88b2dabc310')):
|
||||
function __3e67020b08ceeca960cbb88b2dabc310($__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, [
|
||||
'tooltipPosition',
|
||||
'tooltipKbd',
|
||||
'tooltip',
|
||||
]));
|
||||
?>
|
||||
|
||||
<?php $tooltipPosition = $tooltipPosition ??= $attributes->pluck('tooltip:position'); ?>
|
||||
<?php $tooltipKbd = $tooltipKbd ??= $attributes->pluck('tooltip:kbd'); ?>
|
||||
<?php $tooltip = $tooltip ??= $attributes->pluck('tooltip'); ?>
|
||||
|
||||
<?php
|
||||
$__defaults = [
|
||||
'tooltipPosition' => 'top',
|
||||
'tooltipKbd' => null,
|
||||
'tooltip' => null,
|
||||
];
|
||||
$tooltipPosition ??= $attributes['tooltip-position'] ?? $attributes['tooltipPosition'] ?? $__defaults['tooltipPosition']; unset($attributes['tooltipPosition'], $attributes['tooltip-position']);
|
||||
$tooltipKbd ??= $attributes['tooltip-kbd'] ?? $attributes['tooltipKbd'] ?? $__defaults['tooltipKbd']; unset($attributes['tooltipKbd'], $attributes['tooltip-kbd']);
|
||||
$tooltip ??= $attributes['tooltip'] ?? $__defaults['tooltip']; unset($attributes['tooltip']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php if ($tooltip): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/tooltip/index.blade.php', $__blaze->compiledPath.'/d2493bdc3defe8869c6c05a47a680be0.php'); ?>
|
||||
<?php if (isset($__slotsd2493bdc3defe8869c6c05a47a680be0)) { $__slotsStackd2493bdc3defe8869c6c05a47a680be0[] = $__slotsd2493bdc3defe8869c6c05a47a680be0; } ?>
|
||||
<?php if (isset($__attrsd2493bdc3defe8869c6c05a47a680be0)) { $__attrsStackd2493bdc3defe8869c6c05a47a680be0[] = $__attrsd2493bdc3defe8869c6c05a47a680be0; } ?>
|
||||
<?php $__attrsd2493bdc3defe8869c6c05a47a680be0 = ['content' => $tooltip,'position' => $tooltipPosition,'kbd' => $tooltipKbd]; ?>
|
||||
<?php $__slotsd2493bdc3defe8869c6c05a47a680be0 = []; ?>
|
||||
<?php $__blaze->pushData($__attrsd2493bdc3defe8869c6c05a47a680be0); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
<?php $__slotsd2493bdc3defe8869c6c05a47a680be0['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slotsd2493bdc3defe8869c6c05a47a680be0); ?>
|
||||
<?php __d2493bdc3defe8869c6c05a47a680be0($__blaze, $__attrsd2493bdc3defe8869c6c05a47a680be0, $__slotsd2493bdc3defe8869c6c05a47a680be0, ['content', 'position', 'kbd'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStackd2493bdc3defe8869c6c05a47a680be0)) { $__slotsd2493bdc3defe8869c6c05a47a680be0 = array_pop($__slotsStackd2493bdc3defe8869c6c05a47a680be0); } ?>
|
||||
<?php if (! empty($__attrsStackd2493bdc3defe8869c6c05a47a680be0)) { $__attrsd2493bdc3defe8869c6c05a47a680be0 = array_pop($__attrsStackd2493bdc3defe8869c6c05a47a680be0); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php else: ?>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-tooltip.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
if (!function_exists('__41bd8093ac9f8e221a50aab249e8768c')):
|
||||
function __41bd8093ac9f8e221a50aab249e8768c($__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
|
||||
$__defaults = [
|
||||
'size' => 'base',
|
||||
];
|
||||
$size ??= $attributes['size'] ?? $__defaults['size']; unset($attributes['size']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes()
|
||||
->add(match ($size) {
|
||||
'xl' => 'text-lg',
|
||||
'lg' => 'text-base',
|
||||
default => 'text-sm',
|
||||
'sm' => 'text-xs',
|
||||
})
|
||||
->add('[:where(&)]:text-zinc-500 [:where(&)]:dark:text-white/70')
|
||||
;
|
||||
?>
|
||||
|
||||
<div <?php echo e($attributes->class($classes)); ?> data-flux-subheading>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/subheading.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
if (!function_exists('__48a8f1ad0f7cf4cc954cd51c38d5b63e')):
|
||||
function __48a8f1ad0f7cf4cc954cd51c38d5b63e($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M4.5 12a7.5 7.5 0 0 0 15 0m-15 0a7.5 7.5 0 1 1 15 0m-15 0H3m16.5 0H21m-1.5 0H12m-8.457 3.077 1.41-.513m14.095-5.13 1.41-.513M5.106 17.785l1.15-.964m11.49-9.642 1.149-.964M7.501 19.795l.75-1.3m7.5-12.99.75-1.3m-6.063 16.658.26-1.477m2.605-14.772.26-1.477m0 17.726-.26-1.477M10.698 4.614l-.26-1.477M16.5 19.794l-.75-1.299M7.5 4.205 12 12m6.894 5.785-1.149-.964M6.256 7.178l-1.15-.964m15.352 8.864-1.41-.513M4.954 9.435l-1.41-.514M12.002 12l-3.75 6.495"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M17.004 10.407c.138.435-.216.842-.672.842h-3.465a.75.75 0 0 1-.65-.375l-1.732-3c-.229-.396-.053-.907.393-1.004a5.252 5.252 0 0 1 6.126 3.537ZM8.12 8.464c.307-.338.838-.235 1.066.16l1.732 3a.75.75 0 0 1 0 .75l-1.732 3c-.229.397-.76.5-1.067.161A5.23 5.23 0 0 1 6.75 12a5.23 5.23 0 0 1 1.37-3.536ZM10.878 17.13c-.447-.098-.623-.608-.394-1.004l1.733-3.002a.75.75 0 0 1 .65-.375h3.465c.457 0 .81.407.672.842a5.252 5.252 0 0 1-6.126 3.539Z"/>
|
||||
<path fill-rule="evenodd" d="M21 12.75a.75.75 0 1 0 0-1.5h-.783a8.22 8.22 0 0 0-.237-1.357l.734-.267a.75.75 0 1 0-.513-1.41l-.735.268a8.24 8.24 0 0 0-.689-1.192l.6-.503a.75.75 0 1 0-.964-1.149l-.6.504a8.3 8.3 0 0 0-1.054-.885l.391-.678a.75.75 0 1 0-1.299-.75l-.39.676a8.188 8.188 0 0 0-1.295-.47l.136-.77a.75.75 0 0 0-1.477-.26l-.136.77a8.36 8.36 0 0 0-1.377 0l-.136-.77a.75.75 0 1 0-1.477.26l.136.77c-.448.121-.88.28-1.294.47l-.39-.676a.75.75 0 0 0-1.3.75l.392.678a8.29 8.29 0 0 0-1.054.885l-.6-.504a.75.75 0 1 0-.965 1.149l.6.503a8.243 8.243 0 0 0-.689 1.192L3.8 8.216a.75.75 0 1 0-.513 1.41l.735.267a8.222 8.222 0 0 0-.238 1.356h-.783a.75.75 0 0 0 0 1.5h.783c.042.464.122.917.238 1.356l-.735.268a.75.75 0 0 0 .513 1.41l.735-.268c.197.417.428.816.69 1.191l-.6.504a.75.75 0 0 0 .963 1.15l.601-.505c.326.323.679.62 1.054.885l-.392.68a.75.75 0 0 0 1.3.75l.39-.679c.414.192.847.35 1.294.471l-.136.77a.75.75 0 0 0 1.477.261l.137-.772a8.332 8.332 0 0 0 1.376 0l.136.772a.75.75 0 1 0 1.477-.26l-.136-.771a8.19 8.19 0 0 0 1.294-.47l.391.677a.75.75 0 0 0 1.3-.75l-.393-.679a8.29 8.29 0 0 0 1.054-.885l.601.504a.75.75 0 0 0 .964-1.15l-.6-.503c.261-.375.492-.774.69-1.191l.735.267a.75.75 0 1 0 .512-1.41l-.734-.267c.115-.439.195-.892.237-1.356h.784Zm-2.657-3.06a6.744 6.744 0 0 0-1.19-2.053 6.784 6.784 0 0 0-1.82-1.51A6.705 6.705 0 0 0 12 5.25a6.8 6.8 0 0 0-1.225.11 6.7 6.7 0 0 0-2.15.793 6.784 6.784 0 0 0-2.952 3.489.76.76 0 0 1-.036.098A6.74 6.74 0 0 0 5.251 12a6.74 6.74 0 0 0 3.366 5.842l.009.005a6.704 6.704 0 0 0 2.18.798l.022.003a6.792 6.792 0 0 0 2.368-.004 6.704 6.704 0 0 0 2.205-.811 6.785 6.785 0 0 0 1.762-1.484l.009-.01.009-.01a6.743 6.743 0 0 0 1.18-2.066c.253-.707.39-1.469.39-2.263a6.74 6.74 0 0 0-.408-2.309Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M13.024 9.25c.47 0 .827-.433.637-.863a4 4 0 0 0-4.094-2.364c-.468.05-.665.576-.43.984l1.08 1.868a.75.75 0 0 0 .649.375h2.158ZM7.84 7.758c-.236-.408-.79-.5-1.068-.12A3.982 3.982 0 0 0 6 10c0 .884.287 1.7.772 2.363.278.38.832.287 1.068-.12l1.078-1.868a.75.75 0 0 0 0-.75L7.839 7.758ZM9.138 12.993c-.235.408-.039.934.43.984a4 4 0 0 0 4.094-2.364c.19-.43-.168-.863-.638-.863h-2.158a.75.75 0 0 0-.65.375l-1.078 1.868Z"/>
|
||||
<path fill-rule="evenodd" d="m14.13 4.347.644-1.117a.75.75 0 0 0-1.299-.75l-.644 1.116a6.954 6.954 0 0 0-2.081-.556V1.75a.75.75 0 0 0-1.5 0v1.29a6.954 6.954 0 0 0-2.081.556L6.525 2.48a.75.75 0 1 0-1.3.75l.645 1.117A7.04 7.04 0 0 0 4.347 5.87L3.23 5.225a.75.75 0 1 0-.75 1.3l1.116.644A6.954 6.954 0 0 0 3.04 9.25H1.75a.75.75 0 0 0 0 1.5h1.29c.078.733.27 1.433.556 2.081l-1.116.645a.75.75 0 1 0 .75 1.298l1.117-.644a7.04 7.04 0 0 0 1.523 1.523l-.645 1.117a.75.75 0 1 0 1.3.75l.644-1.116a6.954 6.954 0 0 0 2.081.556v1.29a.75.75 0 0 0 1.5 0v-1.29a6.954 6.954 0 0 0 2.081-.556l.645 1.116a.75.75 0 0 0 1.299-.75l-.645-1.117a7.042 7.042 0 0 0 1.523-1.523l1.117.644a.75.75 0 0 0 .75-1.298l-1.116-.645a6.954 6.954 0 0 0 .556-2.081h1.29a.75.75 0 0 0 0-1.5h-1.29a6.954 6.954 0 0 0-.556-2.081l1.116-.644a.75.75 0 0 0-.75-1.3l-1.117.645a7.04 7.04 0 0 0-1.524-1.523ZM10 4.5a5.475 5.475 0 0 0-2.781.754A5.527 5.527 0 0 0 5.22 7.277 5.475 5.475 0 0 0 4.5 10a5.475 5.475 0 0 0 .752 2.777 5.527 5.527 0 0 0 2.028 2.004c.802.458 1.73.719 2.72.719a5.474 5.474 0 0 0 2.78-.753 5.527 5.527 0 0 0 2.001-2.027c.458-.802.719-1.73.719-2.72a5.475 5.475 0 0 0-.753-2.78 5.528 5.528 0 0 0-2.028-2.002A5.475 5.475 0 0 0 10 4.5Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M4.5 1.938a.75.75 0 0 1 1.025.274l.652 1.131c.351-.138.71-.233 1.073-.288V1.75a.75.75 0 0 1 1.5 0v1.306a5.03 5.03 0 0 1 1.072.288l.654-1.132a.75.75 0 1 1 1.298.75l-.652 1.13c.286.23.55.492.785.786l1.13-.653a.75.75 0 1 1 .75 1.3l-1.13.652c.137.351.233.71.288 1.073h1.305a.75.75 0 0 1 0 1.5h-1.306a5.032 5.032 0 0 1-.288 1.072l1.132.654a.75.75 0 0 1-.75 1.298l-1.13-.652c-.23.286-.492.55-.786.785l.652 1.13a.75.75 0 0 1-1.298.75l-.653-1.13c-.351.137-.71.233-1.073.288v1.305a.75.75 0 0 1-1.5 0v-1.306a5.032 5.032 0 0 1-1.072-.288l-.653 1.132a.75.75 0 0 1-1.3-.75l.653-1.13a4.966 4.966 0 0 1-.785-.786l-1.13.652a.75.75 0 0 1-.75-1.298l1.13-.653a4.965 4.965 0 0 1-.288-1.073H1.75a.75.75 0 0 1 0-1.5h1.306a5.03 5.03 0 0 1 .288-1.072l-1.132-.653a.75.75 0 0 1 .75-1.3l1.13.653c.23-.286.492-.55.786-.785l-.653-1.13A.75.75 0 0 1 4.5 1.937Zm1.14 3.476a3.501 3.501 0 0 0 0 5.172L7.135 8 5.641 5.414ZM8.434 8.75 6.94 11.336a3.491 3.491 0 0 0 2.81-.305 3.49 3.49 0 0 0 1.669-2.281H8.433Zm2.987-1.5H8.433L6.94 4.664a3.501 3.501 0 0 1 4.48 2.586Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/cog.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
if (!function_exists('__50d7e9e02b0a09ef19c84ebdf6a22b69')):
|
||||
function __50d7e9e02b0a09ef19c84ebdf6a22b69($__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
|
||||
$__defaults = [
|
||||
'icon' => null,
|
||||
'name' => null,
|
||||
];
|
||||
$icon ??= $attributes['icon'] ?? $__defaults['icon']; unset($attributes['icon']);
|
||||
$name ??= $attributes['name'] ?? $__defaults['name']; unset($attributes['name']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$icon = $name ?? $icon;
|
||||
?>
|
||||
|
||||
<?php $__resolved = $__blaze->resolve('flux::' . 'icon.' . $icon); ?>
|
||||
<?php $__blaze->pushData($attributes->all()); ?>
|
||||
<?php if ($__resolved !== false): ?>
|
||||
<?php if (isset($__slotsa4ee29fd1f7dc8668566bb29201d64b5)) { $__slotsStacka4ee29fd1f7dc8668566bb29201d64b5[] = $__slotsa4ee29fd1f7dc8668566bb29201d64b5; } ?>
|
||||
<?php $__slotsa4ee29fd1f7dc8668566bb29201d64b5 = []; ?>
|
||||
<?php ob_start(); ?><?php echo e($slot); ?><?php $__slotsa4ee29fd1f7dc8668566bb29201d64b5['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__slotsa4ee29fd1f7dc8668566bb29201d64b5 = array_merge($__blaze->mergedComponentSlots(), $__slotsa4ee29fd1f7dc8668566bb29201d64b5); ?>
|
||||
<?php ('__' . $__resolved)($__blaze, $attributes->all(), $__slotsa4ee29fd1f7dc8668566bb29201d64b5, [], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStacka4ee29fd1f7dc8668566bb29201d64b5)) { $__slotsa4ee29fd1f7dc8668566bb29201d64b5 = array_pop($__slotsStacka4ee29fd1f7dc8668566bb29201d64b5); } ?>
|
||||
<?php else: ?>
|
||||
<?php if (!Flux::componentExists($name = 'icon.' . $icon)) throw new \Exception("Flux component [{$name}] does not exist."); ?><?php if (isset($component)) { $__componentOriginal99f5bdde02e072cb5fe2c95dd124b389 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal99f5bdde02e072cb5fe2c95dd124b389 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve([
|
||||
'view' => (app()->version() >= 12 ? hash('xxh128', 'flux') : md5('flux')) . '::' . 'icon.' . $icon,
|
||||
'data' => $__env->getCurrentComponentData(),
|
||||
] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('flux::' . 'icon.' . $icon); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php $component->withAttributes($attributes->getAttributes()); ?><?php echo e($slot); ?> <?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal99f5bdde02e072cb5fe2c95dd124b389)): ?>
|
||||
<?php $attributes = $__attributesOriginal99f5bdde02e072cb5fe2c95dd124b389; ?>
|
||||
<?php unset($__attributesOriginal99f5bdde02e072cb5fe2c95dd124b389); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal99f5bdde02e072cb5fe2c95dd124b389)): ?>
|
||||
<?php $component = $__componentOriginal99f5bdde02e072cb5fe2c95dd124b389; ?>
|
||||
<?php unset($__componentOriginal99f5bdde02e072cb5fe2c95dd124b389); ?>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php unset($__resolved) ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if (!function_exists('__59a1e08f737a0c37c0e4566334936dbe')):
|
||||
function __59a1e08f737a0c37c0e4566334936dbe($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M6 18 18 6M6 6l12 12"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M5.47 5.47a.75.75 0 0 1 1.06 0L12 10.94l5.47-5.47a.75.75 0 1 1 1.06 1.06L13.06 12l5.47 5.47a.75.75 0 1 1-1.06 1.06L12 13.06l-5.47 5.47a.75.75 0 0 1-1.06-1.06L10.94 12 5.47 6.53a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M5.28 4.22a.75.75 0 0 0-1.06 1.06L6.94 8l-2.72 2.72a.75.75 0 1 0 1.06 1.06L8 9.06l2.72 2.72a.75.75 0 1 0 1.06-1.06L9.06 8l2.72-2.72a.75.75 0 0 0-1.06-1.06L8 6.94 5.28 4.22Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/x-mark.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,129 @@
|
||||
<?php
|
||||
if (!function_exists('__5de4404d35aff8d63a15337c594f4e87')):
|
||||
function __5de4404d35aff8d63a15337c594f4e87($__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
|
||||
$__defaults = [
|
||||
'iconTrailing' => null,
|
||||
'iconVariant' => 'mini',
|
||||
'variant' => 'default',
|
||||
'suffix' => null,
|
||||
'value' => null,
|
||||
'icon' => null,
|
||||
'kbd' => null,
|
||||
];
|
||||
$iconTrailing ??= $attributes['icon-trailing'] ?? $attributes['iconTrailing'] ?? $__defaults['iconTrailing']; unset($attributes['iconTrailing'], $attributes['icon-trailing']);
|
||||
$iconVariant ??= $attributes['icon-variant'] ?? $attributes['iconVariant'] ?? $__defaults['iconVariant']; unset($attributes['iconVariant'], $attributes['icon-variant']);
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
$suffix ??= $attributes['suffix'] ?? $__defaults['suffix']; unset($attributes['suffix']);
|
||||
$value ??= $attributes['value'] ?? $__defaults['value']; unset($attributes['value']);
|
||||
$icon ??= $attributes['icon'] ?? $__defaults['icon']; unset($attributes['icon']);
|
||||
$kbd ??= $attributes['kbd'] ?? $__defaults['kbd']; unset($attributes['kbd']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ($kbd) $suffix = $kbd;
|
||||
|
||||
$iconClasses = Flux::classes()
|
||||
->add('me-2')
|
||||
// When using the outline icon variant, we need to size it down to match the default icon sizes...
|
||||
->add($iconVariant === 'outline' ? 'size-5' : null)
|
||||
;
|
||||
|
||||
$trailingIconClasses = Flux::classes()
|
||||
->add('ms-auto text-zinc-400 [[data-flux-menu-item-icon]:hover_&]:text-current')
|
||||
// When using the outline icon variant, we need to size it down to match the default icon sizes...
|
||||
->add($iconVariant === 'outline' ? 'size-5' : null)
|
||||
;
|
||||
|
||||
$classes = Flux::classes()
|
||||
->add('flex items-center px-2 py-1.5 w-full focus:outline-hidden')
|
||||
->add('rounded-md')
|
||||
->add('text-start text-sm font-medium')
|
||||
->add('[&[disabled]]:opacity-50')
|
||||
->add(match ($variant) {
|
||||
'danger' => [
|
||||
'text-zinc-800 data-active:text-red-600 data-active:bg-red-50 dark:text-white dark:data-active:bg-red-400/20 dark:data-active:text-red-400',
|
||||
'**:data-flux-menu-item-icon:text-zinc-400 dark:**:data-flux-menu-item-icon:text-white/60 [&[data-active]_[data-flux-menu-item-icon]]:text-current',
|
||||
],
|
||||
'default' => [
|
||||
'text-zinc-800 data-active:bg-zinc-50 dark:text-white dark:data-active:bg-zinc-600',
|
||||
'**:data-flux-menu-item-icon:text-zinc-400 dark:**:data-flux-menu-item-icon:text-white/60 [&[data-active]_[data-flux-menu-item-icon]]:text-current',
|
||||
]
|
||||
})
|
||||
;
|
||||
|
||||
$suffixClasses = Flux::classes()
|
||||
->add('ms-auto text-xs text-zinc-400')
|
||||
;
|
||||
?>
|
||||
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button-or-link-pure.blade.php', $__blaze->compiledPath.'/a0ec3a97dd1bc9937073b6e6643ed4b8.php'); ?>
|
||||
<?php if (isset($__slotsa0ec3a97dd1bc9937073b6e6643ed4b8)) { $__slotsStacka0ec3a97dd1bc9937073b6e6643ed4b8[] = $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8; } ?>
|
||||
<?php if (isset($__attrsa0ec3a97dd1bc9937073b6e6643ed4b8)) { $__attrsStacka0ec3a97dd1bc9937073b6e6643ed4b8[] = $__attrsa0ec3a97dd1bc9937073b6e6643ed4b8; } ?>
|
||||
<?php $__attrsa0ec3a97dd1bc9937073b6e6643ed4b8 = ['attributes' => $attributes->class($classes),'dataFluxMenuItem' => true,'dataFluxMenuItemHasIcon' => !! $icon]; ?>
|
||||
<?php $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8 = []; ?>
|
||||
<?php $__blaze->pushData($__attrsa0ec3a97dd1bc9937073b6e6643ed4b8); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php if (is_string($icon) && $icon !== ''): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $icon,'variant' => $iconVariant,'class' => $iconClasses,'dataFluxMenuItemIcon' => true]); ?>
|
||||
<?php __50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $icon,'variant' => $iconVariant,'class' => $iconClasses,'dataFluxMenuItemIcon' => true], [], ['icon', 'variant', 'class', 'dataFluxMenuItemIcon'], ['dataFluxMenuItemIcon' => 'data-flux-menu-item-icon'], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php elseif ($icon): ?>
|
||||
<?php echo e($icon); ?>
|
||||
|
||||
<?php else: ?>
|
||||
<div class="w-7 hidden [[data-flux-menu]:has(>[data-flux-menu-item-has-icon])_&]:block"></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
|
||||
<?php if ($suffix): ?>
|
||||
<?php if (is_string($suffix)): ?>
|
||||
<div class="<?php echo e($suffixClasses); ?>">
|
||||
<?php echo e($suffix); ?>
|
||||
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?php echo e($suffix); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (is_string($iconTrailing) && $iconTrailing !== ''): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $trailingIconClasses,'dataFluxMenuItemIcon' => true]); ?>
|
||||
<?php __50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $trailingIconClasses,'dataFluxMenuItemIcon' => true], [], ['icon', 'variant', 'class', 'dataFluxMenuItemIcon'], ['dataFluxMenuItemIcon' => 'data-flux-menu-item-icon'], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php elseif ($iconTrailing): ?>
|
||||
<?php echo e($iconTrailing); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo e($submenu ?? ''); ?>
|
||||
|
||||
<?php $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slotsa0ec3a97dd1bc9937073b6e6643ed4b8); ?>
|
||||
<?php __a0ec3a97dd1bc9937073b6e6643ed4b8($__blaze, $__attrsa0ec3a97dd1bc9937073b6e6643ed4b8, $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8, ['attributes', 'dataFluxMenuItem', 'dataFluxMenuItemHasIcon'], ['dataFluxMenuItem' => 'data-flux-menu-item', 'dataFluxMenuItemHasIcon' => 'data-flux-menu-item-has-icon'], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStacka0ec3a97dd1bc9937073b6e6643ed4b8)) { $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8 = array_pop($__slotsStacka0ec3a97dd1bc9937073b6e6643ed4b8); } ?>
|
||||
<?php if (! empty($__attrsStacka0ec3a97dd1bc9937073b6e6643ed4b8)) { $__attrsa0ec3a97dd1bc9937073b6e6643ed4b8 = array_pop($__attrsStacka0ec3a97dd1bc9937073b6e6643ed4b8); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/item.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
if (!function_exists('__6d9b56edd9c9c8e51fa8e057a8020521')):
|
||||
function __6d9b56edd9c9c8e51fa8e057a8020521($__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, [
|
||||
'name',
|
||||
'descriptionTrailing',
|
||||
'description',
|
||||
'label',
|
||||
'badge',
|
||||
]));
|
||||
?>
|
||||
|
||||
<?php $descriptionTrailing = $descriptionTrailing ??= $attributes->pluck('description:trailing'); ?>
|
||||
|
||||
<?php
|
||||
$__defaults = [
|
||||
'name' => $attributes->whereStartsWith('wire:model')->first(),
|
||||
'descriptionTrailing' => null,
|
||||
'description' => null,
|
||||
'label' => null,
|
||||
'badge' => null,
|
||||
];
|
||||
$name ??= $attributes['name'] ?? $__defaults['name']; unset($attributes['name']);
|
||||
$descriptionTrailing ??= $attributes['description-trailing'] ?? $attributes['descriptionTrailing'] ?? $__defaults['descriptionTrailing']; unset($attributes['descriptionTrailing'], $attributes['description-trailing']);
|
||||
$description ??= $attributes['description'] ?? $__defaults['description']; unset($attributes['description']);
|
||||
$label ??= $attributes['label'] ?? $__defaults['label']; unset($attributes['label']);
|
||||
$badge ??= $attributes['badge'] ?? $__defaults['badge']; unset($attributes['badge']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php if (isset($label) || isset($description)): ?>
|
||||
<?php
|
||||
|
||||
$fieldAttributes = Flux::attributesAfter('field:', $attributes, []);
|
||||
$labelAttributes = Flux::attributesAfter('label:', $attributes, ['badge' => $badge]);
|
||||
$descriptionAttributes = Flux::attributesAfter('description:', $attributes, []);
|
||||
$errorAttributes = Flux::attributesAfter('error:', $attributes, ['name' => $name]);
|
||||
?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/field.blade.php', $__blaze->compiledPath.'/fb217b67c45072adcf77500afdd69d1a.php'); ?>
|
||||
<?php if (isset($__slotsfb217b67c45072adcf77500afdd69d1a)) { $__slotsStackfb217b67c45072adcf77500afdd69d1a[] = $__slotsfb217b67c45072adcf77500afdd69d1a; } ?>
|
||||
<?php if (isset($__attrsfb217b67c45072adcf77500afdd69d1a)) { $__attrsStackfb217b67c45072adcf77500afdd69d1a[] = $__attrsfb217b67c45072adcf77500afdd69d1a; } ?>
|
||||
<?php $__attrsfb217b67c45072adcf77500afdd69d1a = ['attributes' => $fieldAttributes]; ?>
|
||||
<?php $__slotsfb217b67c45072adcf77500afdd69d1a = []; ?>
|
||||
<?php $__blaze->pushData($__attrsfb217b67c45072adcf77500afdd69d1a); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php if (isset($label)): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/label.blade.php', $__blaze->compiledPath.'/f677e0126eb302fcb55ee4e72ad0d7c5.php'); ?>
|
||||
<?php if (isset($__slotsf677e0126eb302fcb55ee4e72ad0d7c5)) { $__slotsStackf677e0126eb302fcb55ee4e72ad0d7c5[] = $__slotsf677e0126eb302fcb55ee4e72ad0d7c5; } ?>
|
||||
<?php if (isset($__attrsf677e0126eb302fcb55ee4e72ad0d7c5)) { $__attrsStackf677e0126eb302fcb55ee4e72ad0d7c5[] = $__attrsf677e0126eb302fcb55ee4e72ad0d7c5; } ?>
|
||||
<?php $__attrsf677e0126eb302fcb55ee4e72ad0d7c5 = ['attributes' => $labelAttributes]; ?>
|
||||
<?php $__slotsf677e0126eb302fcb55ee4e72ad0d7c5 = []; ?>
|
||||
<?php $__blaze->pushData($__attrsf677e0126eb302fcb55ee4e72ad0d7c5); ?>
|
||||
<?php ob_start(); ?><?php echo e($label); ?><?php $__slotsf677e0126eb302fcb55ee4e72ad0d7c5['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slotsf677e0126eb302fcb55ee4e72ad0d7c5); ?>
|
||||
<?php __f677e0126eb302fcb55ee4e72ad0d7c5($__blaze, $__attrsf677e0126eb302fcb55ee4e72ad0d7c5, $__slotsf677e0126eb302fcb55ee4e72ad0d7c5, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStackf677e0126eb302fcb55ee4e72ad0d7c5)) { $__slotsf677e0126eb302fcb55ee4e72ad0d7c5 = array_pop($__slotsStackf677e0126eb302fcb55ee4e72ad0d7c5); } ?>
|
||||
<?php if (! empty($__attrsStackf677e0126eb302fcb55ee4e72ad0d7c5)) { $__attrsf677e0126eb302fcb55ee4e72ad0d7c5 = array_pop($__attrsStackf677e0126eb302fcb55ee4e72ad0d7c5); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (isset($description)): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/description.blade.php', $__blaze->compiledPath.'/702ed166cbd8171f216fd13166b9bad7.php'); ?>
|
||||
<?php if (isset($__slots702ed166cbd8171f216fd13166b9bad7)) { $__slotsStack702ed166cbd8171f216fd13166b9bad7[] = $__slots702ed166cbd8171f216fd13166b9bad7; } ?>
|
||||
<?php if (isset($__attrs702ed166cbd8171f216fd13166b9bad7)) { $__attrsStack702ed166cbd8171f216fd13166b9bad7[] = $__attrs702ed166cbd8171f216fd13166b9bad7; } ?>
|
||||
<?php $__attrs702ed166cbd8171f216fd13166b9bad7 = ['attributes' => $descriptionAttributes]; ?>
|
||||
<?php $__slots702ed166cbd8171f216fd13166b9bad7 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs702ed166cbd8171f216fd13166b9bad7); ?>
|
||||
<?php ob_start(); ?><?php echo e($description); ?><?php $__slots702ed166cbd8171f216fd13166b9bad7['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots702ed166cbd8171f216fd13166b9bad7); ?>
|
||||
<?php __702ed166cbd8171f216fd13166b9bad7($__blaze, $__attrs702ed166cbd8171f216fd13166b9bad7, $__slots702ed166cbd8171f216fd13166b9bad7, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack702ed166cbd8171f216fd13166b9bad7)) { $__slots702ed166cbd8171f216fd13166b9bad7 = array_pop($__slotsStack702ed166cbd8171f216fd13166b9bad7); } ?>
|
||||
<?php if (! empty($__attrsStack702ed166cbd8171f216fd13166b9bad7)) { $__attrs702ed166cbd8171f216fd13166b9bad7 = array_pop($__attrsStack702ed166cbd8171f216fd13166b9bad7); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
|
||||
|
||||
[STARTCOMPILEDUNBLAZE:5fhzzFMbJG]<?php \Livewire\Blaze\Unblaze::storeScope("5fhzzFMbJG", scope: ['attributes' => $errorAttributes->getAttributes()]) ?>[ENDCOMPILEDUNBLAZE:5fhzzFMbJG]
|
||||
|
||||
<?php if (isset($descriptionTrailing)): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/description.blade.php', $__blaze->compiledPath.'/702ed166cbd8171f216fd13166b9bad7.php'); ?>
|
||||
<?php if (isset($__slots702ed166cbd8171f216fd13166b9bad7)) { $__slotsStack702ed166cbd8171f216fd13166b9bad7[] = $__slots702ed166cbd8171f216fd13166b9bad7; } ?>
|
||||
<?php if (isset($__attrs702ed166cbd8171f216fd13166b9bad7)) { $__attrsStack702ed166cbd8171f216fd13166b9bad7[] = $__attrs702ed166cbd8171f216fd13166b9bad7; } ?>
|
||||
<?php $__attrs702ed166cbd8171f216fd13166b9bad7 = ['attributes' => $descriptionAttributes]; ?>
|
||||
<?php $__slots702ed166cbd8171f216fd13166b9bad7 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs702ed166cbd8171f216fd13166b9bad7); ?>
|
||||
<?php ob_start(); ?><?php echo e($descriptionTrailing); ?><?php $__slots702ed166cbd8171f216fd13166b9bad7['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots702ed166cbd8171f216fd13166b9bad7); ?>
|
||||
<?php __702ed166cbd8171f216fd13166b9bad7($__blaze, $__attrs702ed166cbd8171f216fd13166b9bad7, $__slots702ed166cbd8171f216fd13166b9bad7, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack702ed166cbd8171f216fd13166b9bad7)) { $__slots702ed166cbd8171f216fd13166b9bad7 = array_pop($__slotsStack702ed166cbd8171f216fd13166b9bad7); } ?>
|
||||
<?php if (! empty($__attrsStack702ed166cbd8171f216fd13166b9bad7)) { $__attrs702ed166cbd8171f216fd13166b9bad7 = array_pop($__attrsStack702ed166cbd8171f216fd13166b9bad7); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php endif; ?>
|
||||
<?php $__slotsfb217b67c45072adcf77500afdd69d1a['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slotsfb217b67c45072adcf77500afdd69d1a); ?>
|
||||
<?php __fb217b67c45072adcf77500afdd69d1a($__blaze, $__attrsfb217b67c45072adcf77500afdd69d1a, $__slotsfb217b67c45072adcf77500afdd69d1a, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStackfb217b67c45072adcf77500afdd69d1a)) { $__slotsfb217b67c45072adcf77500afdd69d1a = array_pop($__slotsStackfb217b67c45072adcf77500afdd69d1a); } ?>
|
||||
<?php if (! empty($__attrsStackfb217b67c45072adcf77500afdd69d1a)) { $__attrsfb217b67c45072adcf77500afdd69d1a = array_pop($__attrsStackfb217b67c45072adcf77500afdd69d1a); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php else: ?>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-field.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if (!function_exists('__7c1662e234cb708866e5f77b89eee4d0')):
|
||||
function __7c1662e234cb708866e5f77b89eee4d0($__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
|
||||
$__defaults = [
|
||||
'inline' => false,
|
||||
'variant' => null,
|
||||
'color' => null,
|
||||
'size' => null,
|
||||
];
|
||||
$inline ??= $attributes['inline'] ?? $__defaults['inline']; unset($attributes['inline']);
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
$color ??= $attributes['color'] ?? $__defaults['color']; unset($attributes['color']);
|
||||
$size ??= $attributes['size'] ?? $__defaults['size']; unset($attributes['size']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes()
|
||||
->add('[:where(&)]:font-normal')
|
||||
->add(match ($size) {
|
||||
'xl' => 'text-lg',
|
||||
'lg' => 'text-base',
|
||||
default => '[:where(&)]:text-sm',
|
||||
'sm' => 'text-xs',
|
||||
})
|
||||
->add($color ? match($color) {
|
||||
'red' => 'text-red-600 dark:text-red-400',
|
||||
'orange' => 'text-orange-600 dark:text-orange-400',
|
||||
'amber' => 'text-amber-600 dark:text-amber-500',
|
||||
'yellow' => 'text-yellow-600 dark:text-yellow-500',
|
||||
'lime' => 'text-lime-600 dark:text-lime-500',
|
||||
'green' => 'text-green-600 dark:text-green-500',
|
||||
'emerald' => 'text-emerald-600 dark:text-emerald-400',
|
||||
'teal' => 'text-teal-600 dark:text-teal-400',
|
||||
'cyan' => 'text-cyan-600 dark:text-cyan-400',
|
||||
'sky' => 'text-sky-600 dark:text-sky-400',
|
||||
'blue' => 'text-blue-600 dark:text-blue-400',
|
||||
'indigo' => 'text-indigo-600 dark:text-indigo-400',
|
||||
'violet' => 'text-violet-600 dark:text-violet-400',
|
||||
'purple' => 'text-purple-600 dark:text-purple-400',
|
||||
'fuchsia' => 'text-fuchsia-600 dark:text-fuchsia-400',
|
||||
'pink' => 'text-pink-600 dark:text-pink-400',
|
||||
'rose' => 'text-rose-600 dark:text-rose-400',
|
||||
} : match ($variant) {
|
||||
'strong' => '[:where(&)]:text-zinc-800 [:where(&)]:dark:text-white',
|
||||
'subtle' => '[:where(&)]:text-zinc-400 [:where(&)]:dark:text-white/50',
|
||||
default => '[:where(&)]:text-zinc-500 [:where(&)]:dark:text-white/70',
|
||||
})
|
||||
;
|
||||
?>
|
||||
|
||||
<?php if ($inline) : ?><span <?php echo e($attributes->class($classes)); ?> data-flux-text <?php if($color): ?> color="<?php echo e($color); ?>" <?php endif; ?>><?php echo e($slot); ?></span><?php else: ?><p <?php echo e($attributes->class($classes)); ?> data-flux-text <?php if($color): ?> data-color="<?php echo e($color); ?>" <?php endif; ?>><?php echo e($slot); ?></p><?php endif; ?><?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/text.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
if (!function_exists('__7f8951e22f11a9b535904f2340122525')):
|
||||
function __7f8951e22f11a9b535904f2340122525($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M7.5 3.375c0-1.036.84-1.875 1.875-1.875h.375a3.75 3.75 0 0 1 3.75 3.75v1.875C13.5 8.161 14.34 9 15.375 9h1.875A3.75 3.75 0 0 1 21 12.75v3.375C21 17.16 20.16 18 19.125 18h-9.75A1.875 1.875 0 0 1 7.5 16.125V3.375Z"/>
|
||||
<path d="M15 5.25a5.23 5.23 0 0 0-1.279-3.434 9.768 9.768 0 0 1 6.963 6.963A5.23 5.23 0 0 0 17.25 7.5h-1.875A.375.375 0 0 1 15 7.125V5.25ZM4.875 6H6v10.125A3.375 3.375 0 0 0 9.375 19.5H16.5v1.125c0 1.035-.84 1.875-1.875 1.875h-9.75A1.875 1.875 0 0 1 3 20.625V7.875C3 6.839 3.84 6 4.875 6Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M7 3.5A1.5 1.5 0 0 1 8.5 2h3.879a1.5 1.5 0 0 1 1.06.44l3.122 3.12A1.5 1.5 0 0 1 17 6.622V12.5a1.5 1.5 0 0 1-1.5 1.5h-1v-3.379a3 3 0 0 0-.879-2.121L10.5 5.379A3 3 0 0 0 8.379 4.5H7v-1Z"/>
|
||||
<path d="M4.5 6A1.5 1.5 0 0 0 3 7.5v9A1.5 1.5 0 0 0 4.5 18h7a1.5 1.5 0 0 0 1.5-1.5v-5.879a1.5 1.5 0 0 0-.44-1.06L9.44 6.439A1.5 1.5 0 0 0 8.378 6H4.5Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M5.5 3.5A1.5 1.5 0 0 1 7 2h2.879a1.5 1.5 0 0 1 1.06.44l2.122 2.12a1.5 1.5 0 0 1 .439 1.061V9.5A1.5 1.5 0 0 1 12 11V8.621a3 3 0 0 0-.879-2.121L9 4.379A3 3 0 0 0 6.879 3.5H5.5Z"/>
|
||||
<path d="M4 5a1.5 1.5 0 0 0-1.5 1.5v6A1.5 1.5 0 0 0 4 14h5a1.5 1.5 0 0 0 1.5-1.5V8.621a1.5 1.5 0 0 0-.44-1.06L7.94 5.439A1.5 1.5 0 0 0 6.878 5H4Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/document-duplicate.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
if (!function_exists('__8f1760713c7fcabb71a8f24ca3d62689')):
|
||||
function __8f1760713c7fcabb71a8f24ca3d62689($__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();
|
||||
?>
|
||||
|
||||
|
||||
<ui-close data-flux-modal-close <?php echo e($attributes); ?>>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</ui-close>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/modal/close.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,275 @@
|
||||
<?php
|
||||
if (!function_exists('__8f4a3847ec957ea9ec88204cbc200391')):
|
||||
function __8f4a3847ec957ea9ec88204cbc200391($__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 $iconLeading ??= $attributes->pluck('icon:leading'); ?>
|
||||
<?php $iconVariant ??= $attributes->pluck('icon:variant'); ?>
|
||||
|
||||
<?php
|
||||
$__defaults = [
|
||||
'iconTrailing' => null,
|
||||
'variant' => 'outline',
|
||||
'iconVariant' => null,
|
||||
'iconLeading' => null,
|
||||
'type' => 'button',
|
||||
'loading' => null,
|
||||
'align' => 'center',
|
||||
'size' => 'base',
|
||||
'square' => null,
|
||||
'color' => null,
|
||||
'inset' => null,
|
||||
'icon' => null,
|
||||
'kbd' => null,
|
||||
];
|
||||
$iconTrailing ??= $attributes['icon-trailing'] ?? $attributes['iconTrailing'] ?? $__defaults['iconTrailing']; unset($attributes['iconTrailing'], $attributes['icon-trailing']);
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
$iconVariant ??= $attributes['icon-variant'] ?? $attributes['iconVariant'] ?? $__defaults['iconVariant']; unset($attributes['iconVariant'], $attributes['icon-variant']);
|
||||
$iconLeading ??= $attributes['icon-leading'] ?? $attributes['iconLeading'] ?? $__defaults['iconLeading']; unset($attributes['iconLeading'], $attributes['icon-leading']);
|
||||
$type ??= $attributes['type'] ?? $__defaults['type']; unset($attributes['type']);
|
||||
$loading ??= $attributes['loading'] ?? $__defaults['loading']; unset($attributes['loading']);
|
||||
$align ??= $attributes['align'] ?? $__defaults['align']; unset($attributes['align']);
|
||||
$size ??= $attributes['size'] ?? $__defaults['size']; unset($attributes['size']);
|
||||
$square ??= $attributes['square'] ?? $__defaults['square']; unset($attributes['square']);
|
||||
$color ??= $attributes['color'] ?? $__defaults['color']; unset($attributes['color']);
|
||||
$inset ??= $attributes['inset'] ?? $__defaults['inset']; unset($attributes['inset']);
|
||||
$icon ??= $attributes['icon'] ?? $__defaults['icon']; unset($attributes['icon']);
|
||||
$kbd ??= $attributes['kbd'] ?? $__defaults['kbd']; unset($attributes['kbd']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$iconLeading = $icon ??= $iconLeading;
|
||||
|
||||
// Button should be a square if it has no text contents...
|
||||
$square ??= $slot->isEmpty();
|
||||
|
||||
// Size-up icons in square/icon-only buttons... (xs buttons just get micro size/style...)
|
||||
$iconVariant ??= ($size === 'xs')
|
||||
? ($square ? 'micro' : 'micro')
|
||||
: ($square ? 'mini' : 'micro');
|
||||
|
||||
$iconTrailingVariant ??= $attributes->pluck('icon-trailing:variant', $iconVariant);
|
||||
|
||||
// When using the outline icon variant, we need to size it down to match the default icon sizes...
|
||||
$iconClasses = Flux::classes()
|
||||
->add($iconVariant === 'outline' ? ($square && $size !== 'xs' ? 'size-5' : 'size-4') : '')
|
||||
->add($attributes->pluck('icon:class'))
|
||||
;
|
||||
|
||||
$iconTrailingClasses = Flux::classes()
|
||||
->add($iconTrailingVariant === 'outline' ? ($square && $size !== 'xs' ? 'size-5' : 'size-4') : '')
|
||||
->add($attributes->pluck('icon-trailing:class'))
|
||||
;
|
||||
|
||||
$isTypeSubmitAndNotDisabledOnRender = $type === 'submit' && ! $attributes->has('disabled');
|
||||
|
||||
$isJsMethod = str_starts_with($attributes->whereStartsWith('wire:click')->first() ?? '', '$js.');
|
||||
|
||||
$loading ??= $loading ?? ($isTypeSubmitAndNotDisabledOnRender || $attributes->whereStartsWith('wire:click')->isNotEmpty() && ! $isJsMethod);
|
||||
|
||||
if ($loading && $type !== 'submit' && ! $isJsMethod) {
|
||||
$attributes = $attributes->merge(['wire:loading.attr' => 'data-flux-loading']);
|
||||
|
||||
// We need to add `wire:target` here because without it the loading indicator won't be scoped
|
||||
// by method params, causing multiple buttons with the same method but different params to
|
||||
// trigger each other's loading indicators...
|
||||
if (! $attributes->has('wire:target') && $target = $attributes->whereStartsWith('wire:click')->first()) {
|
||||
$attributes = $attributes->merge(['wire:target' => $target], escape: false);
|
||||
}
|
||||
}
|
||||
|
||||
$classes = Flux::classes()
|
||||
->add('relative items-center font-medium justify-center gap-2 whitespace-nowrap')
|
||||
->add('disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none')
|
||||
->add(match ($align) {
|
||||
'start' => 'justify-start',
|
||||
'center' => 'justify-center',
|
||||
'end' => 'justify-end',
|
||||
})
|
||||
->add(match ($size) { // Size...
|
||||
'base' => 'h-10 text-sm rounded-lg' . ' ' . (
|
||||
$square
|
||||
? 'w-10'
|
||||
// If we have an icon, we want to reduce the padding on the side that has the icon...
|
||||
: ($iconLeading && $iconLeading !== '' ? 'ps-3' : 'ps-4') . ' ' . ($iconTrailing && $iconTrailing !== '' ? 'pe-3' : 'pe-4')
|
||||
),
|
||||
'sm' => 'h-8 text-sm rounded-md' . ' ' . ($square ? 'w-8' : 'px-3'),
|
||||
'xs' => 'h-6 text-xs rounded-md' . ' ' . ($square ? 'w-6' : 'px-2'),
|
||||
})
|
||||
->add('inline-flex') // Buttons are inline by default but links are blocks, so inline-flex is needed here to ensure link-buttons are displayed the same as buttons...
|
||||
->add($inset ? match ($size) { // Inset...
|
||||
'base' => $square
|
||||
? Flux::applyInset($inset, top: '-mt-2.5', right: '-me-2.5', bottom: '-mb-2.5', left: '-ms-2.5')
|
||||
: Flux::applyInset($inset, top: '-mt-2.5', right: '-me-4', bottom: '-mb-3', left: '-ms-4'),
|
||||
'sm' => $square
|
||||
? Flux::applyInset($inset, top: '-mt-1.5', right: '-me-1.5', bottom: '-mb-1.5', left: '-ms-1.5')
|
||||
: Flux::applyInset($inset, top: '-mt-1.5', right: '-me-3', bottom: '-mb-1.5', left: '-ms-3'),
|
||||
'xs' => $square
|
||||
? Flux::applyInset($inset, top: '-mt-1', right: '-me-1', bottom: '-mb-1', left: '-ms-1')
|
||||
: Flux::applyInset($inset, top: '-mt-1', right: '-me-2', bottom: '-mb-1', left: '-ms-2'),
|
||||
} : '')
|
||||
->add(match ($variant) { // Background color...
|
||||
'primary' => 'bg-[var(--color-accent)] hover:bg-[color-mix(in_oklab,_var(--color-accent),_transparent_10%)]',
|
||||
'filled' => 'bg-zinc-800/5 hover:bg-zinc-800/10 dark:bg-white/10 dark:hover:bg-white/20',
|
||||
'outline' => 'bg-white hover:bg-zinc-50 dark:bg-zinc-700 dark:hover:bg-zinc-600/75',
|
||||
'danger' => 'bg-red-500 hover:bg-red-600 dark:bg-red-600 dark:hover:bg-red-500',
|
||||
'ghost' => 'bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15',
|
||||
'subtle' => 'bg-transparent hover:bg-zinc-800/5 dark:hover:bg-white/15',
|
||||
})
|
||||
->add(match ($variant) { // Text color...
|
||||
'primary' => 'text-[var(--color-accent-foreground)]',
|
||||
'filled' => 'text-zinc-800 dark:text-white',
|
||||
'outline' => 'text-zinc-800 dark:text-white',
|
||||
'danger' => 'text-white',
|
||||
'ghost' => 'text-zinc-800 dark:text-white',
|
||||
'subtle' => 'text-zinc-500 hover:text-zinc-800 dark:text-zinc-400 dark:hover:text-white',
|
||||
})
|
||||
->add(match ($variant) { // Border color...
|
||||
'primary' => 'border border-black/10 dark:border-0',
|
||||
'outline' => 'border border-zinc-200 hover:border-zinc-200 border-b-zinc-300/80 dark:border-zinc-600 dark:hover:border-zinc-600',
|
||||
default => '',
|
||||
})
|
||||
->add(match ($variant) { // Shadows...
|
||||
'primary' => 'shadow-[inset_0px_1px_--theme(--color-white/.2)]',
|
||||
'danger' => 'shadow-[inset_0px_1px_var(--color-red-500),inset_0px_2px_--theme(--color-white/.15)] dark:shadow-none',
|
||||
'outline' => match ($size) {
|
||||
'base' => 'shadow-xs',
|
||||
'sm' => 'shadow-xs',
|
||||
'xs' => 'shadow-none',
|
||||
},
|
||||
default => '',
|
||||
})
|
||||
->add(match ($variant) { // Grouped border treatments...
|
||||
'ghost' => '',
|
||||
'subtle' => '',
|
||||
'outline' => '[[data-flux-button-group]_&]:border-s-0 [:is([data-flux-button-group]>&:first-child,_[data-flux-button-group]_:first-child>&)]:border-s-[1px]',
|
||||
'filled' => '[[data-flux-button-group]_&]:border-e [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 [[data-flux-button-group]_&]:border-zinc-200/80 dark:[[data-flux-button-group]_&]:border-zinc-900/50',
|
||||
'danger' => '[[data-flux-button-group]_&]:border-e [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 [[data-flux-button-group]_&]:border-red-600 dark:[[data-flux-button-group]_&]:border-red-900/25',
|
||||
'primary' => '[[data-flux-button-group]_&]:border-e-0 [:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-[1px] dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-e-0 dark:[:is([data-flux-button-group]>&:last-child,_[data-flux-button-group]_:last-child>&)]:border-s-[1px] [:is([data-flux-button-group]>&:not(:first-child),_[data-flux-button-group]_:not(:first-child)>&)]:border-s-[color-mix(in_srgb,var(--color-accent-foreground),transparent_85%)]',
|
||||
})
|
||||
->add($loading ? [ // Loading states...
|
||||
'*:transition-opacity',
|
||||
$type === 'submit' ? '[&[disabled]>:not([data-flux-loading-indicator])]:opacity-0' : '[&[data-loading]>:not([data-flux-loading-indicator])]:opacity-0 [&[data-flux-loading]>:not([data-flux-loading-indicator])]:opacity-0',
|
||||
$type === 'submit' ? '[&[disabled]>[data-flux-loading-indicator]]:opacity-100' : '[&[data-loading]>[data-flux-loading-indicator]]:opacity-100 [&[data-flux-loading]>[data-flux-loading-indicator]]:opacity-100',
|
||||
$type === 'submit' ? '[&[disabled]]:pointer-events-none' : 'data-loading:pointer-events-none data-flux-loading:pointer-events-none',
|
||||
] : [])
|
||||
->add($variant === 'primary' ? match ($color) {
|
||||
'slate' => '[--color-accent:var(--color-slate-800)] [--color-accent-content:var(--color-slate-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-slate-800)]',
|
||||
'gray' => '[--color-accent:var(--color-gray-800)] [--color-accent-content:var(--color-gray-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-gray-800)]',
|
||||
'zinc' => '[--color-accent:var(--color-zinc-800)] [--color-accent-content:var(--color-zinc-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-zinc-800)]',
|
||||
'neutral' => '[--color-accent:var(--color-neutral-800)] [--color-accent-content:var(--color-neutral-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-neutral-800)]',
|
||||
'stone' => '[--color-accent:var(--color-stone-800)] [--color-accent-content:var(--color-stone-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-stone-800)]',
|
||||
'mauve' => '[--color-accent:var(--color-mauve-800)] [--color-accent-content:var(--color-mauve-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-mauve-800)]',
|
||||
'olive' => '[--color-accent:var(--color-olive-800)] [--color-accent-content:var(--color-olive-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-olive-800)]',
|
||||
'mist' => '[--color-accent:var(--color-mist-800)] [--color-accent-content:var(--color-mist-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-mist-800)]',
|
||||
'taupe' => '[--color-accent:var(--color-taupe-800)] [--color-accent-content:var(--color-taupe-800)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-white)] dark:[--color-accent-content:var(--color-white)] dark:[--color-accent-foreground:var(--color-taupe-800)]',
|
||||
'red' => '[--color-accent:var(--color-red-500)] [--color-accent-content:var(--color-red-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-red-500)] dark:[--color-accent-content:var(--color-red-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'orange' => '[--color-accent:var(--color-orange-500)] [--color-accent-content:var(--color-orange-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-orange-400)] dark:[--color-accent-content:var(--color-orange-400)] dark:[--color-accent-foreground:var(--color-orange-950)]',
|
||||
'amber' => '[--color-accent:var(--color-amber-400)] [--color-accent-content:var(--color-amber-600)] [--color-accent-foreground:var(--color-amber-950)] dark:[--color-accent:var(--color-amber-400)] dark:[--color-accent-content:var(--color-amber-400)] dark:[--color-accent-foreground:var(--color-amber-950)]',
|
||||
'yellow' => '[--color-accent:var(--color-yellow-400)] [--color-accent-content:var(--color-yellow-600)] [--color-accent-foreground:var(--color-yellow-950)] dark:[--color-accent:var(--color-yellow-400)] dark:[--color-accent-content:var(--color-yellow-400)] dark:[--color-accent-foreground:var(--color-yellow-950)]',
|
||||
'lime' => '[--color-accent:var(--color-lime-400)] [--color-accent-content:var(--color-lime-600)] [--color-accent-foreground:var(--color-lime-900)] dark:[--color-accent:var(--color-lime-400)] dark:[--color-accent-content:var(--color-lime-400)] dark:[--color-accent-foreground:var(--color-lime-950)]',
|
||||
'green' => '[--color-accent:var(--color-green-600)] [--color-accent-content:var(--color-green-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-green-600)] dark:[--color-accent-content:var(--color-green-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'emerald' => '[--color-accent:var(--color-emerald-600)] [--color-accent-content:var(--color-emerald-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-emerald-600)] dark:[--color-accent-content:var(--color-emerald-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'teal' => '[--color-accent:var(--color-teal-600)] [--color-accent-content:var(--color-teal-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-teal-600)] dark:[--color-accent-content:var(--color-teal-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'cyan' => '[--color-accent:var(--color-cyan-600)] [--color-accent-content:var(--color-cyan-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-cyan-600)] dark:[--color-accent-content:var(--color-cyan-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'sky' => '[--color-accent:var(--color-sky-600)] [--color-accent-content:var(--color-sky-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-sky-600)] dark:[--color-accent-content:var(--color-sky-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'blue' => '[--color-accent:var(--color-blue-500)] [--color-accent-content:var(--color-blue-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-blue-500)] dark:[--color-accent-content:var(--color-blue-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'indigo' => '[--color-accent:var(--color-indigo-500)] [--color-accent-content:var(--color-indigo-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-indigo-500)] dark:[--color-accent-content:var(--color-indigo-300)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'violet' => '[--color-accent:var(--color-violet-500)] [--color-accent-content:var(--color-violet-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-violet-500)] dark:[--color-accent-content:var(--color-violet-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'purple' => '[--color-accent:var(--color-purple-500)] [--color-accent-content:var(--color-purple-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-purple-500)] dark:[--color-accent-content:var(--color-purple-300)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'fuchsia' => '[--color-accent:var(--color-fuchsia-600)] [--color-accent-content:var(--color-fuchsia-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-fuchsia-600)] dark:[--color-accent-content:var(--color-fuchsia-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'pink' => '[--color-accent:var(--color-pink-600)] [--color-accent-content:var(--color-pink-600)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-pink-600)] dark:[--color-accent-content:var(--color-pink-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
'rose' => '[--color-accent:var(--color-rose-500)] [--color-accent-content:var(--color-rose-500)] [--color-accent-foreground:var(--color-white)] dark:[--color-accent:var(--color-rose-500)] dark:[--color-accent-content:var(--color-rose-400)] dark:[--color-accent-foreground:var(--color-white)]',
|
||||
default => '',
|
||||
} : '')
|
||||
;
|
||||
|
||||
// Exempt subtle and ghost buttons from receiving border roundness overrides from button.group...
|
||||
$attributes = $attributes->merge([
|
||||
'data-flux-group-target' => ! in_array($variant, ['subtle', 'ghost']),
|
||||
]);
|
||||
?>
|
||||
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/with-tooltip.blade.php', $__blaze->compiledPath.'/3e67020b08ceeca960cbb88b2dabc310.php'); ?>
|
||||
<?php if (isset($__slots3e67020b08ceeca960cbb88b2dabc310)) { $__slotsStack3e67020b08ceeca960cbb88b2dabc310[] = $__slots3e67020b08ceeca960cbb88b2dabc310; } ?>
|
||||
<?php if (isset($__attrs3e67020b08ceeca960cbb88b2dabc310)) { $__attrsStack3e67020b08ceeca960cbb88b2dabc310[] = $__attrs3e67020b08ceeca960cbb88b2dabc310; } ?>
|
||||
<?php $__attrs3e67020b08ceeca960cbb88b2dabc310 = ['attributes' => $attributes]; ?>
|
||||
<?php $__slots3e67020b08ceeca960cbb88b2dabc310 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs3e67020b08ceeca960cbb88b2dabc310); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button-or-link-pure.blade.php', $__blaze->compiledPath.'/a0ec3a97dd1bc9937073b6e6643ed4b8.php'); ?>
|
||||
<?php if (isset($__slotsa0ec3a97dd1bc9937073b6e6643ed4b8)) { $__slotsStacka0ec3a97dd1bc9937073b6e6643ed4b8[] = $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8; } ?>
|
||||
<?php if (isset($__attrsa0ec3a97dd1bc9937073b6e6643ed4b8)) { $__attrsStacka0ec3a97dd1bc9937073b6e6643ed4b8[] = $__attrsa0ec3a97dd1bc9937073b6e6643ed4b8; } ?>
|
||||
<?php $__attrsa0ec3a97dd1bc9937073b6e6643ed4b8 = ['type' => $type,'attributes' => $attributes->class($classes),'dataFluxButton' => true]; ?>
|
||||
<?php $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8 = []; ?>
|
||||
<?php $__blaze->pushData($__attrsa0ec3a97dd1bc9937073b6e6643ed4b8); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php if ($loading): ?>
|
||||
<div class="absolute inset-0 flex items-center justify-center opacity-0" data-flux-loading-indicator>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => 'loading','variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php __50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => 'loading','variant' => $iconVariant,'class' => $iconClasses], [], ['variant', 'class'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (is_string($iconLeading) && $iconLeading !== ''): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconLeading,'variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php __50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconLeading,'variant' => $iconVariant,'class' => $iconClasses], [], ['icon', 'variant', 'class'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php elseif ($iconLeading): ?>
|
||||
<?php echo e($iconLeading); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (($loading || $iconLeading || $iconTrailing) && ! $slot->isEmpty()): ?>
|
||||
|
||||
|
||||
<span><?php echo e($slot); ?></span>
|
||||
<?php else: ?>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($kbd): ?>
|
||||
<div class="text-xs text-zinc-400 dark:text-zinc-400"><?php echo e($kbd); ?></div>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (is_string($iconTrailing) && $iconTrailing !== ''): ?>
|
||||
|
||||
<?php $iconClasses->add($square ? '' : '-ms-1'); ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconTrailing,'variant' => $iconTrailingVariant,'class' => $iconTrailingClasses]); ?>
|
||||
<?php __50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconTrailing,'variant' => $iconTrailingVariant,'class' => $iconTrailingClasses], [], ['icon', 'variant', 'class'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php elseif ($iconTrailing): ?>
|
||||
<?php echo e($iconTrailing); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
<?php $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slotsa0ec3a97dd1bc9937073b6e6643ed4b8); ?>
|
||||
<?php __a0ec3a97dd1bc9937073b6e6643ed4b8($__blaze, $__attrsa0ec3a97dd1bc9937073b6e6643ed4b8, $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8, ['type', 'attributes', 'dataFluxButton'], ['dataFluxButton' => 'data-flux-button'], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStacka0ec3a97dd1bc9937073b6e6643ed4b8)) { $__slotsa0ec3a97dd1bc9937073b6e6643ed4b8 = array_pop($__slotsStacka0ec3a97dd1bc9937073b6e6643ed4b8); } ?>
|
||||
<?php if (! empty($__attrsStacka0ec3a97dd1bc9937073b6e6643ed4b8)) { $__attrsa0ec3a97dd1bc9937073b6e6643ed4b8 = array_pop($__attrsStacka0ec3a97dd1bc9937073b6e6643ed4b8); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php $__slots3e67020b08ceeca960cbb88b2dabc310['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots3e67020b08ceeca960cbb88b2dabc310); ?>
|
||||
<?php __3e67020b08ceeca960cbb88b2dabc310($__blaze, $__attrs3e67020b08ceeca960cbb88b2dabc310, $__slots3e67020b08ceeca960cbb88b2dabc310, ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack3e67020b08ceeca960cbb88b2dabc310)) { $__slots3e67020b08ceeca960cbb88b2dabc310 = array_pop($__slotsStack3e67020b08ceeca960cbb88b2dabc310); } ?>
|
||||
<?php if (! empty($__attrsStack3e67020b08ceeca960cbb88b2dabc310)) { $__attrs3e67020b08ceeca960cbb88b2dabc310 = array_pop($__attrsStack3e67020b08ceeca960cbb88b2dabc310); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
if (!function_exists('__93de554cb51419b7cd63a71bcd81b0e6')):
|
||||
function __93de554cb51419b7cd63a71bcd81b0e6($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__awareDefaults = ['mode' => 'numeric', 'private' => false];
|
||||
$mode = $__blaze->getConsumableData('mode', $__awareDefaults['mode']); unset($attributes['mode']);
|
||||
$private = $__blaze->getConsumableData('private', $__awareDefaults['private']); unset($attributes['private']);
|
||||
unset($__awareDefaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$attributes = $attributes
|
||||
->merge([
|
||||
'class' => 'w-8! grow-0 has-focus-within:z-10',
|
||||
'class:input' => 'px-0! py-3 text-center disabled:opacity-75 disabled:shadow-xs! dark:disabled:shadow-none!',
|
||||
])
|
||||
->merge(['data-flux-otp-input' => ''])
|
||||
;
|
||||
|
||||
if ($mode == 'numeric') {
|
||||
$attributes = $attributes->merge(['inputmode' => 'numeric']);
|
||||
}
|
||||
|
||||
if ($private) {
|
||||
$attributes = $attributes->merge(['type' => 'password']);
|
||||
}
|
||||
?>
|
||||
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/input/index.blade.php', $__blaze->compiledPath.'/0895d97ac72dcf2060e8a83465f0c2ce.php'); ?>
|
||||
<?php $__blaze->pushData(['attributes' => $attributes]); ?>
|
||||
<?php __0895d97ac72dcf2060e8a83465f0c2ce($__blaze, ['attributes' => $attributes], [], ['attributes'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?><?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/otp/input.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,154 @@
|
||||
<?php
|
||||
if (!function_exists('__98731c7ff116f3bf4e1c1c541d94dec6')):
|
||||
function __98731c7ff116f3bf4e1c1c541d94dec6($__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
|
||||
$__defaults = [
|
||||
'iconVariant' => 'micro',
|
||||
'iconTrailing' => null,
|
||||
'variant' => null,
|
||||
'rounded' => null,
|
||||
'color' => null,
|
||||
'inset' => null,
|
||||
'size' => null,
|
||||
'icon' => null,
|
||||
'label' => 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']);
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
$rounded ??= $attributes['rounded'] ?? $__defaults['rounded']; unset($attributes['rounded']);
|
||||
$color ??= $attributes['color'] ?? $__defaults['color']; unset($attributes['color']);
|
||||
$inset ??= $attributes['inset'] ?? $__defaults['inset']; unset($attributes['inset']);
|
||||
$size ??= $attributes['size'] ?? $__defaults['size']; unset($attributes['size']);
|
||||
$icon ??= $attributes['icon'] ?? $__defaults['icon']; unset($attributes['icon']);
|
||||
$label ??= $attributes['label'] ?? $__defaults['label']; unset($attributes['label']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
// Backwards compatibility for 'pill' variant...
|
||||
if ($variant === 'pill') {
|
||||
$rounded = true;
|
||||
$variant = null;
|
||||
}
|
||||
|
||||
$insetClasses = Flux::applyInset($inset, top: '-mt-1', right: '-me-2', bottom: '-mb-1', left: '-ms-2');
|
||||
|
||||
// When using the outline icon variant, we need to size it down to match the default icon sizes...
|
||||
$iconClasses = Flux::classes()
|
||||
->add($size === 'sm' ? 'size-3' : ($iconVariant === 'outline' ? 'size-4' : ''));
|
||||
|
||||
$classes = Flux::classes()
|
||||
->add('inline-flex items-center font-medium whitespace-nowrap')
|
||||
->add($insetClasses)
|
||||
->add('[print-color-adjust:exact]')
|
||||
->add(match ($size) {
|
||||
'lg' => 'text-sm py-1.5 **:data-flux-badge-icon:me-2',
|
||||
default => 'text-sm py-1 **:data-flux-badge-icon:me-1.5',
|
||||
'sm' => 'text-xs py-1 **:data-flux-badge-icon:me-1',
|
||||
})
|
||||
->add(match ($rounded) {
|
||||
true => 'rounded-full px-3',
|
||||
default => 'rounded-md px-2',
|
||||
})
|
||||
/**
|
||||
* We can't compile classes for each color because of variants color to color and Tailwind's JIT compiler.
|
||||
* We instead need to write out each one by hand. Sorry...
|
||||
*/
|
||||
->add($variant === 'solid' ? match ($color) {
|
||||
default => 'text-white dark:text-white bg-zinc-600 dark:bg-zinc-600 [&:is(button)]:hover:bg-zinc-700 dark:[button]:hover:bg-zinc-500',
|
||||
'red' => 'text-white dark:text-white bg-red-500 dark:bg-red-600 [&:is(button)]:hover:bg-red-600 dark:[button]:hover:bg-red-500',
|
||||
'orange' => 'text-white dark:text-white bg-orange-500 dark:bg-orange-600 [&:is(button)]:hover:bg-orange-600 dark:[button]:hover:bg-orange-500',
|
||||
'amber' => 'text-white dark:text-zinc-950 bg-amber-500 dark:bg-amber-500 [&:is(button)]:hover:bg-amber-600 dark:[button]:hover:bg-amber-400',
|
||||
'yellow' => 'text-white dark:text-zinc-950 bg-yellow-500 dark:bg-yellow-400 [&:is(button)]:hover:bg-yellow-600 dark:[button]:hover:bg-yellow-300',
|
||||
'lime' => 'text-white dark:text-white bg-lime-500 dark:bg-lime-600 [&:is(button)]:hover:bg-lime-600 dark:[button]:hover:bg-lime-500',
|
||||
'green' => 'text-white dark:text-white bg-green-500 dark:bg-green-600 [&:is(button)]:hover:bg-green-600 dark:[button]:hover:bg-green-500',
|
||||
'emerald' => 'text-white dark:text-white bg-emerald-500 dark:bg-emerald-600 [&:is(button)]:hover:bg-emerald-600 dark:[button]:hover:bg-emerald-500',
|
||||
'teal' => 'text-white dark:text-white bg-teal-500 dark:bg-teal-600 [&:is(button)]:hover:bg-teal-600 dark:[button]:hover:bg-teal-500',
|
||||
'cyan' => 'text-white dark:text-white bg-cyan-500 dark:bg-cyan-600 [&:is(button)]:hover:bg-cyan-600 dark:[button]:hover:bg-cyan-500',
|
||||
'sky' => 'text-white dark:text-white bg-sky-500 dark:bg-sky-600 [&:is(button)]:hover:bg-sky-600 dark:[button]:hover:bg-sky-500',
|
||||
'blue' => 'text-white dark:text-white bg-blue-500 dark:bg-blue-600 [&:is(button)]:hover:bg-blue-600 dark:[button]:hover:bg-blue-500',
|
||||
'indigo' => 'text-white dark:text-white bg-indigo-500 dark:bg-indigo-600 [&:is(button)]:hover:bg-indigo-600 dark:[button]:hover:bg-indigo-500',
|
||||
'violet' => 'text-white dark:text-white bg-violet-500 dark:bg-violet-600 [&:is(button)]:hover:bg-violet-600 dark:[button]:hover:bg-violet-500',
|
||||
'purple' => 'text-white dark:text-white bg-purple-500 dark:bg-purple-600 [&:is(button)]:hover:bg-purple-600 dark:[button]:hover:bg-purple-500',
|
||||
'fuchsia' => 'text-white dark:text-white bg-fuchsia-500 dark:bg-fuchsia-600 [&:is(button)]:hover:bg-fuchsia-600 dark:[button]:hover:bg-fuchsia-500',
|
||||
'pink' => 'text-white dark:text-white bg-pink-500 dark:bg-pink-600 [&:is(button)]:hover:bg-pink-600 dark:[button]:hover:bg-pink-500',
|
||||
'rose' => 'text-white dark:text-white bg-rose-500 dark:bg-rose-600 [&:is(button)]:hover:bg-rose-600 dark:[button]:hover:bg-rose-500',
|
||||
} : match ($color) {
|
||||
default => 'text-zinc-700 [&_button]:text-zinc-700! dark:text-zinc-200 dark:[&_button]:text-zinc-200! bg-zinc-400/15 dark:bg-zinc-400/40 [&:is(button)]:hover:bg-zinc-400/25 dark:[button]:hover:bg-zinc-400/50',
|
||||
'red' => 'text-red-700 [&_button]:text-red-700! dark:text-red-200 dark:[&_button]:text-red-200! bg-red-400/20 dark:bg-red-400/40 [&:is(button)]:hover:bg-red-400/30 dark:[button]:hover:bg-red-400/50',
|
||||
'orange' => 'text-orange-700 [&_button]:text-orange-700! dark:text-orange-200 dark:[&_button]:text-orange-200! bg-orange-400/20 dark:bg-orange-400/40 [&:is(button)]:hover:bg-orange-400/30 dark:[button]:hover:bg-orange-400/50',
|
||||
'amber' => 'text-amber-700 [&_button]:text-amber-700! dark:text-amber-200 dark:[&_button]:text-amber-200! bg-amber-400/25 dark:bg-amber-400/40 [&:is(button)]:hover:bg-amber-400/40 dark:[button]:hover:bg-amber-400/50',
|
||||
'yellow' => 'text-yellow-800 [&_button]:text-yellow-800! dark:text-yellow-200 dark:[&_button]:text-yellow-200! bg-yellow-400/25 dark:bg-yellow-400/40 [&:is(button)]:hover:bg-yellow-400/40 dark:[button]:hover:bg-yellow-400/50',
|
||||
'lime' => 'text-lime-800 [&_button]:text-lime-800! dark:text-lime-200 dark:[&_button]:text-lime-200! bg-lime-400/25 dark:bg-lime-400/40 [&:is(button)]:hover:bg-lime-400/35 dark:[button]:hover:bg-lime-400/50',
|
||||
'green' => 'text-green-800 [&_button]:text-green-800! dark:text-green-200 dark:[&_button]:text-green-200! bg-green-400/20 dark:bg-green-400/40 [&:is(button)]:hover:bg-green-400/30 dark:[button]:hover:bg-green-400/50',
|
||||
'emerald' => 'text-emerald-800 [&_button]:text-emerald-800! dark:text-emerald-200 dark:[&_button]:text-emerald-200! bg-emerald-400/20 dark:bg-emerald-400/40 [&:is(button)]:hover:bg-emerald-400/30 dark:[button]:hover:bg-emerald-400/50',
|
||||
'teal' => 'text-teal-800 [&_button]:text-teal-800! dark:text-teal-200 dark:[&_button]:text-teal-200! bg-teal-400/20 dark:bg-teal-400/40 [&:is(button)]:hover:bg-teal-400/30 dark:[button]:hover:bg-teal-400/50',
|
||||
'cyan' => 'text-cyan-800 [&_button]:text-cyan-800! dark:text-cyan-200 dark:[&_button]:text-cyan-200! bg-cyan-400/20 dark:bg-cyan-400/40 [&:is(button)]:hover:bg-cyan-400/30 dark:[button]:hover:bg-cyan-400/50',
|
||||
'sky' => 'text-sky-800 [&_button]:text-sky-800! dark:text-sky-200 dark:[&_button]:text-sky-200! bg-sky-400/20 dark:bg-sky-400/40 [&:is(button)]:hover:bg-sky-400/30 dark:[button]:hover:bg-sky-400/50',
|
||||
'blue' => 'text-blue-800 [&_button]:text-blue-800! dark:text-blue-200 dark:[&_button]:text-blue-200! bg-blue-400/20 dark:bg-blue-400/40 [&:is(button)]:hover:bg-blue-400/30 dark:[button]:hover:bg-blue-400/50',
|
||||
'indigo' => 'text-indigo-700 [&_button]:text-indigo-700! dark:text-indigo-200 dark:[&_button]:text-indigo-200! bg-indigo-400/20 dark:bg-indigo-400/40 [&:is(button)]:hover:bg-indigo-400/30 dark:[button]:hover:bg-indigo-400/50',
|
||||
'violet' => 'text-violet-700 [&_button]:text-violet-700! dark:text-violet-200 dark:[&_button]:text-violet-200! bg-violet-400/20 dark:bg-violet-400/40 [&:is(button)]:hover:bg-violet-400/30 dark:[button]:hover:bg-violet-400/50',
|
||||
'purple' => 'text-purple-700 [&_button]:text-purple-700! dark:text-purple-200 dark:[&_button]:text-purple-200! bg-purple-400/20 dark:bg-purple-400/40 [&:is(button)]:hover:bg-purple-400/30 dark:[button]:hover:bg-purple-400/50',
|
||||
'fuchsia' => 'text-fuchsia-700 [&_button]:text-fuchsia-700! dark:text-fuchsia-200 dark:[&_button]:text-fuchsia-200! bg-fuchsia-400/20 dark:bg-fuchsia-400/40 [&:is(button)]:hover:bg-fuchsia-400/30 dark:[button]:hover:bg-fuchsia-400/50',
|
||||
'pink' => 'text-pink-700 [&_button]:text-pink-700! dark:text-pink-200 dark:[&_button]:text-pink-200! bg-pink-400/20 dark:bg-pink-400/40 [&:is(button)]:hover:bg-pink-400/30 dark:[button]:hover:bg-pink-400/50',
|
||||
'rose' => 'text-rose-700 [&_button]:text-rose-700! dark:text-rose-200 dark:[&_button]:text-rose-200! bg-rose-400/20 dark:bg-rose-400/40 [&:is(button)]:hover:bg-rose-400/30 dark:[button]:hover:bg-rose-400/50',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button-or-div.blade.php', $__blaze->compiledPath.'/a4dcf5f20d4e03305f496626b14eb345.php'); ?>
|
||||
<?php if (isset($__slotsa4dcf5f20d4e03305f496626b14eb345)) { $__slotsStacka4dcf5f20d4e03305f496626b14eb345[] = $__slotsa4dcf5f20d4e03305f496626b14eb345; } ?>
|
||||
<?php if (isset($__attrsa4dcf5f20d4e03305f496626b14eb345)) { $__attrsStacka4dcf5f20d4e03305f496626b14eb345[] = $__attrsa4dcf5f20d4e03305f496626b14eb345; } ?>
|
||||
<?php $__attrsa4dcf5f20d4e03305f496626b14eb345 = ['attributes' => $attributes->class($classes),'dataFluxBadge' => true]; ?>
|
||||
<?php $__slotsa4dcf5f20d4e03305f496626b14eb345 = []; ?>
|
||||
<?php $__blaze->pushData($__attrsa4dcf5f20d4e03305f496626b14eb345); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php if (is_string($icon) && $icon !== ''): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $icon,'variant' => $iconVariant,'class' => $iconClasses,'dataFluxBadgeIcon' => true]); ?>
|
||||
<?php __50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $icon,'variant' => $iconVariant,'class' => $iconClasses,'dataFluxBadgeIcon' => true], [], ['icon', 'variant', 'class', 'dataFluxBadgeIcon'], ['dataFluxBadgeIcon' => 'data-flux-badge-icon'], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php else: ?>
|
||||
<?php echo e($icon); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo e($slot->isEmpty() ? $label : $slot); ?>
|
||||
|
||||
|
||||
<?php if ($iconTrailing): ?>
|
||||
<div class="ps-1 flex items-center" data-flux-badge-icon:trailing>
|
||||
<?php if (is_string($iconTrailing)): ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/index.blade.php', $__blaze->compiledPath.'/50d7e9e02b0a09ef19c84ebdf6a22b69.php'); ?>
|
||||
<?php $__blaze->pushData(['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $iconClasses]); ?>
|
||||
<?php __50d7e9e02b0a09ef19c84ebdf6a22b69($__blaze, ['icon' => $iconTrailing,'variant' => $iconVariant,'class' => $iconClasses], [], ['icon', 'variant', 'class'], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php else: ?>
|
||||
<?php echo e($iconTrailing); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php $__slotsa4dcf5f20d4e03305f496626b14eb345['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slotsa4dcf5f20d4e03305f496626b14eb345); ?>
|
||||
<?php __a4dcf5f20d4e03305f496626b14eb345($__blaze, $__attrsa4dcf5f20d4e03305f496626b14eb345, $__slotsa4dcf5f20d4e03305f496626b14eb345, ['attributes', 'dataFluxBadge'], ['dataFluxBadge' => 'data-flux-badge'], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStacka4dcf5f20d4e03305f496626b14eb345)) { $__slotsa4dcf5f20d4e03305f496626b14eb345 = array_pop($__slotsStacka4dcf5f20d4e03305f496626b14eb345); } ?>
|
||||
<?php if (! empty($__attrsStacka4dcf5f20d4e03305f496626b14eb345)) { $__attrsa4dcf5f20d4e03305f496626b14eb345 = array_pop($__attrsStacka4dcf5f20d4e03305f496626b14eb345); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/badge/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,67 @@
|
||||
<?php
|
||||
if (!function_exists('__9a6540f2523fd3551129978328b3eb40')):
|
||||
function __9a6540f2523fd3551129978328b3eb40($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 9V5.25A2.25 2.25 0 0 0 13.5 3h-6a2.25 2.25 0 0 0-2.25 2.25v13.5A2.25 2.25 0 0 0 7.5 21h6a2.25 2.25 0 0 0 2.25-2.25V15m3 0 3-3m0 0-3-3m3 3H9"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M7.5 3.75A1.5 1.5 0 0 0 6 5.25v13.5a1.5 1.5 0 0 0 1.5 1.5h6a1.5 1.5 0 0 0 1.5-1.5V15a.75.75 0 0 1 1.5 0v3.75a3 3 0 0 1-3 3h-6a3 3 0 0 1-3-3V5.25a3 3 0 0 1 3-3h6a3 3 0 0 1 3 3V9A.75.75 0 0 1 15 9V5.25a1.5 1.5 0 0 0-1.5-1.5h-6Zm10.72 4.72a.75.75 0 0 1 1.06 0l3 3a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06l1.72-1.72H9a.75.75 0 0 1 0-1.5h10.94l-1.72-1.72a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M3 4.25A2.25 2.25 0 0 1 5.25 2h5.5A2.25 2.25 0 0 1 13 4.25v2a.75.75 0 0 1-1.5 0v-2a.75.75 0 0 0-.75-.75h-5.5a.75.75 0 0 0-.75.75v11.5c0 .414.336.75.75.75h5.5a.75.75 0 0 0 .75-.75v-2a.75.75 0 0 1 1.5 0v2A2.25 2.25 0 0 1 10.75 18h-5.5A2.25 2.25 0 0 1 3 15.75V4.25Z" clip-rule="evenodd"/>
|
||||
<path fill-rule="evenodd" d="M6 10a.75.75 0 0 1 .75-.75h9.546l-1.048-.943a.75.75 0 1 1 1.004-1.114l2.5 2.25a.75.75 0 0 1 0 1.114l-2.5 2.25a.75.75 0 1 1-1.004-1.114l1.048-.943H6.75A.75.75 0 0 1 6 10Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M2 4.75A2.75 2.75 0 0 1 4.75 2h3a2.75 2.75 0 0 1 2.75 2.75v.5a.75.75 0 0 1-1.5 0v-.5c0-.69-.56-1.25-1.25-1.25h-3c-.69 0-1.25.56-1.25 1.25v6.5c0 .69.56 1.25 1.25 1.25h3c.69 0 1.25-.56 1.25-1.25v-.5a.75.75 0 0 1 1.5 0v.5A2.75 2.75 0 0 1 7.75 14h-3A2.75 2.75 0 0 1 2 11.25v-6.5Zm9.47.47a.75.75 0 0 1 1.06 0l2.25 2.25a.75.75 0 0 1 0 1.06l-2.25 2.25a.75.75 0 1 1-1.06-1.06l.97-.97H5.25a.75.75 0 0 1 0-1.5h7.19l-.97-.97a.75.75 0 0 1 0-1.06Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/arrow-right-start-on-rectangle.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,54 @@
|
||||
<?php
|
||||
if (!function_exists('__a0ec3a97dd1bc9937073b6e6643ed4b8')):
|
||||
function __a0ec3a97dd1bc9937073b6e6643ed4b8($__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 $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button-or-link-pure.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,222 @@
|
||||
<?php
|
||||
if (!function_exists('__a3f9e29bcce1dbdaf622e4049df72734')):
|
||||
function __a3f9e29bcce1dbdaf622e4049df72734($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
$__livewire = $__env->shared('__livewire');
|
||||
$__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
|
||||
$__defaults = [
|
||||
'dismissible' => null,
|
||||
'position' => null,
|
||||
'closable' => null,
|
||||
'trigger' => null,
|
||||
'variant' => null,
|
||||
'scroll' => null,
|
||||
'flyout' => null,
|
||||
'name' => null,
|
||||
];
|
||||
$dismissible ??= $attributes['dismissible'] ?? $__defaults['dismissible']; unset($attributes['dismissible']);
|
||||
$position ??= $attributes['position'] ?? $__defaults['position']; unset($attributes['position']);
|
||||
$closable ??= $attributes['closable'] ?? $__defaults['closable']; unset($attributes['closable']);
|
||||
$trigger ??= $attributes['trigger'] ?? $__defaults['trigger']; unset($attributes['trigger']);
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
$scroll ??= $attributes['scroll'] ?? $__defaults['scroll']; unset($attributes['scroll']);
|
||||
$flyout ??= $attributes['flyout'] ?? $__defaults['flyout']; unset($attributes['flyout']);
|
||||
$name ??= $attributes['name'] ?? $__defaults['name']; unset($attributes['name']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
// Blaze doesn't support View::share, this supplements it...
|
||||
$__livewire = $__env->shared('__livewire');
|
||||
|
||||
if ($variant === 'flyout') {
|
||||
$flyout = true;
|
||||
$variant = null;
|
||||
}
|
||||
|
||||
$closable ??= $variant === 'bare' ? false : true;
|
||||
$overflow = $scroll === 'body' && ! $flyout;
|
||||
|
||||
if ($flyout) {
|
||||
$classes = Flux::classes()
|
||||
->add(match ($variant) {
|
||||
default => match($position) {
|
||||
// For bottom flyout we intentionally use 100% instead of 100vw because Firefox includes scrollbar gutter in vw...
|
||||
'bottom' => 'fixed m-0 p-8 min-w-[100%] overflow-y-auto mt-auto [--flux-flyout-translate:translateY(50px)] border-t',
|
||||
'left' => 'fixed m-0 p-8 max-h-dvh min-h-dvh md:[:where(&)]:min-w-[25rem] overflow-y-auto mr-auto [--flux-flyout-translate:translateX(-50px)] border-e rtl:mr-0 rtl:ml-auto rtl:[--flux-flyout-translate:translateX(50px)]',
|
||||
default => 'fixed m-0 p-8 max-h-dvh min-h-dvh md:[:where(&)]:min-w-[25rem] overflow-y-auto ml-auto [--flux-flyout-translate:translateX(50px)] border-s rtl:ml-0 rtl:mr-auto rtl:[--flux-flyout-translate:translateX(-50px)]',
|
||||
},
|
||||
'floating' => match($position) {
|
||||
// For bottom flyout we intentionally use 100% instead of 100vw because Firefox includes scrollbar gutter in vw...
|
||||
'bottom' => 'fixed m-2 p-8 min-w-[calc(100%-1rem)] overflow-y-auto mt-auto [--flux-flyout-translate:translateY(50px)]',
|
||||
'left' => 'fixed m-2 p-8 max-h-[calc(100dvh-1rem)] min-h-[calc(100dvh-1rem)] md:[:where(&)]:min-w-[25rem] overflow-y-auto mr-auto [--flux-flyout-translate:translateX(-50px)] rtl:mr-0 rtl:ml-auto rtl:[--flux-flyout-translate:translateX(50px)]',
|
||||
default => 'fixed m-2 p-8 max-h-[calc(100dvh-1rem)] min-h-[calc(100dvh-1rem)] md:[:where(&)]:min-w-[25rem] overflow-y-auto ml-auto [--flux-flyout-translate:translateX(50px)] rtl:ml-0 rtl:mr-auto rtl:[--flux-flyout-translate:translateX(-50px)]',
|
||||
},
|
||||
'bare' => '',
|
||||
})
|
||||
->add(match ($variant) {
|
||||
default => 'bg-white dark:bg-zinc-800 border-transparent dark:border-zinc-700',
|
||||
'floating' => 'bg-white dark:bg-zinc-800 ring ring-black/5 dark:ring-zinc-700 shadow-lg rounded-xl',
|
||||
'bare' => 'bg-transparent',
|
||||
});
|
||||
} elseif ($overflow) {
|
||||
$classes = Flux::classes();
|
||||
|
||||
$contentClasses = Flux::classes()
|
||||
->add('relative')
|
||||
->add(match ($variant) {
|
||||
default => 'p-6 [:where(&)]:max-w-xl [:where(&)]:min-w-xs shadow-lg rounded-xl',
|
||||
'bare' => '',
|
||||
})
|
||||
->add(match ($variant) {
|
||||
default => 'bg-white dark:bg-zinc-800 ring ring-black/5 dark:ring-zinc-700 shadow-lg rounded-xl',
|
||||
'bare' => 'bg-transparent',
|
||||
});
|
||||
} else {
|
||||
$classes = Flux::classes()
|
||||
->add(match ($variant) {
|
||||
default => 'p-6 [:where(&)]:max-w-xl [:where(&)]:min-w-xs shadow-lg rounded-xl',
|
||||
'bare' => '',
|
||||
})
|
||||
->add(match ($variant) {
|
||||
default => 'bg-white dark:bg-zinc-800 ring ring-black/5 dark:ring-zinc-700 shadow-lg rounded-xl',
|
||||
'bare' => 'bg-transparent',
|
||||
});
|
||||
}
|
||||
|
||||
// Support adding the .self modifier to the wire:model directive...
|
||||
if (($wireModel = $attributes->wire('model')) && $wireModel->directive && ! $wireModel->hasModifier('self')) {
|
||||
unset($attributes[$wireModel->directive]);
|
||||
|
||||
$wireModel->directive .= '.self';
|
||||
|
||||
$attributes = $attributes->merge([$wireModel->directive => $wireModel->value]);
|
||||
}
|
||||
|
||||
if ($attributes['@close'] ?? null) {
|
||||
$attributes['wire:close'] = $attributes['@close'];
|
||||
|
||||
unset($attributes['@close']);
|
||||
}
|
||||
|
||||
if ($attributes['@cancel'] ?? null) {
|
||||
$attributes['wire:cancel'] = $attributes['@cancel'];
|
||||
|
||||
unset($attributes['@cancel']);
|
||||
}
|
||||
|
||||
if ($dismissible === false) {
|
||||
$attributes = $attributes->merge(['disable-click-outside' => '']);
|
||||
}
|
||||
|
||||
[ $contentAttributes, $attributes ] = Flux::splitAttributes($attributes, ['autofocus', 'class', 'style']);
|
||||
[ $dialogAttributes, $attributes ] = Flux::splitAttributes($attributes, ['wire:close', 'x-on:close', 'wire:cancel', 'x-on:cancel']);
|
||||
|
||||
if (! $overflow) {
|
||||
$dialogAttributes = $dialogAttributes->merge($contentAttributes->getAttributes());
|
||||
}
|
||||
?>
|
||||
|
||||
<ui-modal <?php echo e($attributes); ?> data-flux-modal>
|
||||
<?php if ($trigger): ?>
|
||||
<?php echo e($trigger); ?>
|
||||
|
||||
<?php endif; ?>
|
||||
|
||||
<dialog
|
||||
wire:ignore.self
|
||||
<?php echo e($dialogAttributes->class($classes)); ?>
|
||||
|
||||
<?php if ($name): ?> data-modal="<?php echo e($name); ?>" <?php endif; ?>
|
||||
<?php if ($flyout): ?> data-flux-flyout <?php endif; ?>
|
||||
<?php if ($overflow): ?> data-flux-modal-overflow <?php endif; ?>
|
||||
[STARTCOMPILEDUNBLAZE:9tY7TKLfxH]<?php \Livewire\Blaze\Unblaze::storeScope("9tY7TKLfxH", scope: ['name' => $name]) ?>[ENDCOMPILEDUNBLAZE:9tY7TKLfxH]
|
||||
x-on:modal-show.document="handleShow($event)"
|
||||
x-on:modal-close.document="handleClose($event)"
|
||||
>
|
||||
<?php if ($overflow): ?>
|
||||
<div class="flex min-h-full items-center justify-center p-4 sm:p-6">
|
||||
<div <?php echo e($contentAttributes->class($contentClasses)); ?> data-flux-modal-content>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
|
||||
<?php if ($closable): ?>
|
||||
<div class="absolute top-0 end-0 mt-4 me-4">
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/modal/close.blade.php', $__blaze->compiledPath.'/8f1760713c7fcabb71a8f24ca3d62689.php'); ?>
|
||||
<?php if (isset($__slots8f1760713c7fcabb71a8f24ca3d62689)) { $__slotsStack8f1760713c7fcabb71a8f24ca3d62689[] = $__slots8f1760713c7fcabb71a8f24ca3d62689; } ?>
|
||||
<?php if (isset($__attrs8f1760713c7fcabb71a8f24ca3d62689)) { $__attrsStack8f1760713c7fcabb71a8f24ca3d62689[] = $__attrs8f1760713c7fcabb71a8f24ca3d62689; } ?>
|
||||
<?php $__attrs8f1760713c7fcabb71a8f24ca3d62689 = []; ?>
|
||||
<?php $__slots8f1760713c7fcabb71a8f24ca3d62689 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs8f1760713c7fcabb71a8f24ca3d62689); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php', $__blaze->compiledPath.'/8f4a3847ec957ea9ec88204cbc200391.php'); ?>
|
||||
<?php if (isset($__slots8f4a3847ec957ea9ec88204cbc200391)) { $__slotsStack8f4a3847ec957ea9ec88204cbc200391[] = $__slots8f4a3847ec957ea9ec88204cbc200391; } ?>
|
||||
<?php if (isset($__attrs8f4a3847ec957ea9ec88204cbc200391)) { $__attrsStack8f4a3847ec957ea9ec88204cbc200391[] = $__attrs8f4a3847ec957ea9ec88204cbc200391; } ?>
|
||||
<?php $__attrs8f4a3847ec957ea9ec88204cbc200391 = ['variant' => 'ghost','icon' => 'x-mark','size' => 'sm','ariaLabel' => e(__('Close modal')),'class' => 'text-zinc-400! hover:text-zinc-800! dark:text-zinc-500! dark:hover:text-white!']; ?>
|
||||
<?php $__slots8f4a3847ec957ea9ec88204cbc200391 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs8f4a3847ec957ea9ec88204cbc200391); ?>
|
||||
<?php ob_start(); ?><?php $__slots8f4a3847ec957ea9ec88204cbc200391['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots8f4a3847ec957ea9ec88204cbc200391); ?>
|
||||
<?php __8f4a3847ec957ea9ec88204cbc200391($__blaze, $__attrs8f4a3847ec957ea9ec88204cbc200391, $__slots8f4a3847ec957ea9ec88204cbc200391, [], ['ariaLabel' => 'aria-label'], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack8f4a3847ec957ea9ec88204cbc200391)) { $__slots8f4a3847ec957ea9ec88204cbc200391 = array_pop($__slotsStack8f4a3847ec957ea9ec88204cbc200391); } ?>
|
||||
<?php if (! empty($__attrsStack8f4a3847ec957ea9ec88204cbc200391)) { $__attrs8f4a3847ec957ea9ec88204cbc200391 = array_pop($__attrsStack8f4a3847ec957ea9ec88204cbc200391); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php $__slots8f1760713c7fcabb71a8f24ca3d62689['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots8f1760713c7fcabb71a8f24ca3d62689); ?>
|
||||
<?php __8f1760713c7fcabb71a8f24ca3d62689($__blaze, $__attrs8f1760713c7fcabb71a8f24ca3d62689, $__slots8f1760713c7fcabb71a8f24ca3d62689, [], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack8f1760713c7fcabb71a8f24ca3d62689)) { $__slots8f1760713c7fcabb71a8f24ca3d62689 = array_pop($__slotsStack8f1760713c7fcabb71a8f24ca3d62689); } ?>
|
||||
<?php if (! empty($__attrsStack8f1760713c7fcabb71a8f24ca3d62689)) { $__attrs8f1760713c7fcabb71a8f24ca3d62689 = array_pop($__attrsStack8f1760713c7fcabb71a8f24ca3d62689); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
|
||||
<?php if ($closable): ?>
|
||||
<div class="absolute top-0 end-0 mt-4 me-4">
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/modal/close.blade.php', $__blaze->compiledPath.'/8f1760713c7fcabb71a8f24ca3d62689.php'); ?>
|
||||
<?php if (isset($__slots8f1760713c7fcabb71a8f24ca3d62689)) { $__slotsStack8f1760713c7fcabb71a8f24ca3d62689[] = $__slots8f1760713c7fcabb71a8f24ca3d62689; } ?>
|
||||
<?php if (isset($__attrs8f1760713c7fcabb71a8f24ca3d62689)) { $__attrsStack8f1760713c7fcabb71a8f24ca3d62689[] = $__attrs8f1760713c7fcabb71a8f24ca3d62689; } ?>
|
||||
<?php $__attrs8f1760713c7fcabb71a8f24ca3d62689 = []; ?>
|
||||
<?php $__slots8f1760713c7fcabb71a8f24ca3d62689 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs8f1760713c7fcabb71a8f24ca3d62689); ?>
|
||||
<?php ob_start(); ?>
|
||||
<?php $__blaze->ensureRequired('/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php', $__blaze->compiledPath.'/8f4a3847ec957ea9ec88204cbc200391.php'); ?>
|
||||
<?php if (isset($__slots8f4a3847ec957ea9ec88204cbc200391)) { $__slotsStack8f4a3847ec957ea9ec88204cbc200391[] = $__slots8f4a3847ec957ea9ec88204cbc200391; } ?>
|
||||
<?php if (isset($__attrs8f4a3847ec957ea9ec88204cbc200391)) { $__attrsStack8f4a3847ec957ea9ec88204cbc200391[] = $__attrs8f4a3847ec957ea9ec88204cbc200391; } ?>
|
||||
<?php $__attrs8f4a3847ec957ea9ec88204cbc200391 = ['variant' => 'ghost','icon' => 'x-mark','size' => 'sm','ariaLabel' => e(__('Close modal')),'class' => 'text-zinc-400! hover:text-zinc-800! dark:text-zinc-500! dark:hover:text-white!']; ?>
|
||||
<?php $__slots8f4a3847ec957ea9ec88204cbc200391 = []; ?>
|
||||
<?php $__blaze->pushData($__attrs8f4a3847ec957ea9ec88204cbc200391); ?>
|
||||
<?php ob_start(); ?><?php $__slots8f4a3847ec957ea9ec88204cbc200391['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots8f4a3847ec957ea9ec88204cbc200391); ?>
|
||||
<?php __8f4a3847ec957ea9ec88204cbc200391($__blaze, $__attrs8f4a3847ec957ea9ec88204cbc200391, $__slots8f4a3847ec957ea9ec88204cbc200391, [], ['ariaLabel' => 'aria-label'], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack8f4a3847ec957ea9ec88204cbc200391)) { $__slots8f4a3847ec957ea9ec88204cbc200391 = array_pop($__slotsStack8f4a3847ec957ea9ec88204cbc200391); } ?>
|
||||
<?php if (! empty($__attrsStack8f4a3847ec957ea9ec88204cbc200391)) { $__attrs8f4a3847ec957ea9ec88204cbc200391 = array_pop($__attrsStack8f4a3847ec957ea9ec88204cbc200391); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
<?php $__slots8f1760713c7fcabb71a8f24ca3d62689['slot'] = new \Illuminate\View\ComponentSlot($__blaze->processPassthroughContent('trim', trim(ob_get_clean())), []); ?>
|
||||
<?php $__blaze->pushSlots($__slots8f1760713c7fcabb71a8f24ca3d62689); ?>
|
||||
<?php __8f1760713c7fcabb71a8f24ca3d62689($__blaze, $__attrs8f1760713c7fcabb71a8f24ca3d62689, $__slots8f1760713c7fcabb71a8f24ca3d62689, [], [], $__this ?? (isset($this) ? $this : null)); ?>
|
||||
<?php if (! empty($__slotsStack8f1760713c7fcabb71a8f24ca3d62689)) { $__slots8f1760713c7fcabb71a8f24ca3d62689 = array_pop($__slotsStack8f1760713c7fcabb71a8f24ca3d62689); } ?>
|
||||
<?php if (! empty($__attrsStack8f1760713c7fcabb71a8f24ca3d62689)) { $__attrs8f1760713c7fcabb71a8f24ca3d62689 = array_pop($__attrsStack8f1760713c7fcabb71a8f24ca3d62689); } ?>
|
||||
<?php $__blaze->popData(); ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
</dialog>
|
||||
</ui-modal>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/modal/index.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
if (!function_exists('__a4dcf5f20d4e03305f496626b14eb345')):
|
||||
function __a4dcf5f20d4e03305f496626b14eb345($__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
|
||||
$__defaults = [
|
||||
'as' => null,
|
||||
];
|
||||
$as ??= $attributes['as'] ?? $__defaults['as']; unset($attributes['as']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php if ($as === 'button'): ?>
|
||||
<button <?php echo e($attributes->merge(['type' => 'button'])); ?>>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</button>
|
||||
<?php else: ?>
|
||||
<div <?php echo e($attributes); ?>>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button-or-div.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if (!function_exists('__af089908c00f649f3aec1104dd947296')):
|
||||
function __af089908c00f649f3aec1104dd947296($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M15.75 5.25a3 3 0 0 1 3 3m3 0a6 6 0 0 1-7.029 5.912c-.563-.097-1.159.026-1.563.43L10.5 17.25H8.25v2.25H6v2.25H2.25v-2.818c0-.597.237-1.17.659-1.591l6.499-6.499c.404-.404.527-1 .43-1.563A6 6 0 1 1 21.75 8.25Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M15.75 1.5a6.75 6.75 0 0 0-6.651 7.906c.067.39-.032.717-.221.906l-6.5 6.499a3 3 0 0 0-.878 2.121v2.818c0 .414.336.75.75.75H6a.75.75 0 0 0 .75-.75v-1.5h1.5A.75.75 0 0 0 9 19.5V18h1.5a.75.75 0 0 0 .53-.22l2.658-2.658c.19-.189.517-.288.906-.22A6.75 6.75 0 1 0 15.75 1.5Zm0 3a.75.75 0 0 0 0 1.5A2.25 2.25 0 0 1 18 8.25a.75.75 0 0 0 1.5 0 3.75 3.75 0 0 0-3.75-3.75Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M8 7a5 5 0 1 1 3.61 4.804l-1.903 1.903A1 1 0 0 1 9 14H8v1a1 1 0 0 1-1 1H6v1a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1v-2a1 1 0 0 1 .293-.707L8.196 8.39A5.002 5.002 0 0 1 8 7Zm5-3a.75.75 0 0 0 0 1.5A1.5 1.5 0 0 1 14.5 7 .75.75 0 0 0 16 7a3 3 0 0 0-3-3Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M14 6a4 4 0 0 1-4.899 3.899l-1.955 1.955a.5.5 0 0 1-.353.146H5v1.5a.5.5 0 0 1-.5.5h-2a.5.5 0 0 1-.5-.5v-2.293a.5.5 0 0 1 .146-.353l3.955-3.955A4 4 0 1 1 14 6Zm-4-2a.75.75 0 0 0 0 1.5.5.5 0 0 1 .5.5.75.75 0 0 0 1.5 0 2 2 0 0 0-2-2Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/key.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
if (!function_exists('__bcd8cce586a762ab16909710b3bafa1b')):
|
||||
function __bcd8cce586a762ab16909710b3bafa1b($__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
|
||||
$__defaults = [
|
||||
'as' => null,
|
||||
'external' => null,
|
||||
'accent' => true,
|
||||
'variant' => null,
|
||||
'strong' => false,
|
||||
];
|
||||
$as ??= $attributes['as'] ?? $__defaults['as']; unset($attributes['as']);
|
||||
$external ??= $attributes['external'] ?? $__defaults['external']; unset($attributes['external']);
|
||||
$accent ??= $attributes['accent'] ?? $__defaults['accent']; unset($attributes['accent']);
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
$strong ??= $attributes['strong'] ?? $__defaults['strong']; unset($attributes['strong']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes()
|
||||
->add('inline font-medium')
|
||||
->add('underline-offset-[6px] hover:decoration-current')
|
||||
->add(match ($variant) {
|
||||
'ghost' => 'no-underline hover:underline',
|
||||
'subtle' => 'no-underline',
|
||||
default => 'underline',
|
||||
})
|
||||
->add('[[data-color]>&]:text-inherit [[data-color]>&]:decoration-current/20 dark:[[data-color]>&]:decoration-current/50 [[data-color]>&]:hover:decoration-current')
|
||||
->add(match ($variant) {
|
||||
'subtle' => 'text-zinc-500 dark:text-white/70 hover:text-zinc-800 dark:hover:text-white',
|
||||
default => match ($accent) {
|
||||
true => 'text-[var(--color-accent-content)] decoration-[color-mix(in_oklab,var(--color-accent-content),transparent_80%)]',
|
||||
false => 'text-zinc-800 dark:text-white decoration-zinc-800/20 dark:decoration-white/20',
|
||||
},
|
||||
})
|
||||
;
|
||||
?>
|
||||
|
||||
<?php if ($as !== 'button') : ?><a <?php echo e($attributes->class($classes)); ?> data-flux-link <?php if ($external) : ?>target="_blank"<?php endif; ?>><?php echo e($slot); ?></a><?php else : ?><button <?php echo e($attributes->merge(['class' => $classes, 'type' => 'button'])); ?> data-flux-link><?php echo e($slot); ?></button><?php endif; ?><?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/link.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
if (!function_exists('__c833285b846b44b4d1637c4b3aff69a1')):
|
||||
function __c833285b846b44b4d1637c4b3aff69a1($__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
|
||||
$__defaults = [
|
||||
'shortcut' => null,
|
||||
'name' => null,
|
||||
];
|
||||
$shortcut ??= $attributes['shortcut'] ?? $__defaults['shortcut']; unset($attributes['shortcut']);
|
||||
$name ??= $attributes['name'] ?? $__defaults['name']; unset($attributes['name']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<div
|
||||
<?php echo e($attributes->class('contents')); ?>
|
||||
|
||||
x-data
|
||||
x-on:click="$el.querySelector('button[disabled]') || $dispatch('modal-show', { name: '<?php echo e($name); ?>' })"
|
||||
<?php if($shortcut): ?>
|
||||
x-on:keydown.<?php echo e($shortcut); ?>.document="$event.preventDefault(); $dispatch('modal-show', { name: '<?php echo e($name); ?>' })"
|
||||
<?php endif; ?>
|
||||
data-flux-modal-trigger
|
||||
>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</div>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/modal/trigger.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
if (!function_exists('__d4e7ffd9fb9de1969a2cdd73bc211803')):
|
||||
function __d4e7ffd9fb9de1969a2cdd73bc211803($__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
|
||||
$__defaults = [
|
||||
'size' => 'base',
|
||||
'accent' => false,
|
||||
'level' => null,
|
||||
];
|
||||
$size ??= $attributes['size'] ?? $__defaults['size']; unset($attributes['size']);
|
||||
$accent ??= $attributes['accent'] ?? $__defaults['accent']; unset($attributes['accent']);
|
||||
$level ??= $attributes['level'] ?? $__defaults['level']; unset($attributes['level']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes()
|
||||
->add('font-medium')
|
||||
->add(match ($accent) {
|
||||
true => 'text-[var(--color-accent-content)]',
|
||||
default => '[:where(&)]:text-zinc-800 [:where(&)]:dark:text-white',
|
||||
})
|
||||
->add(match ($size) {
|
||||
'xl' => 'text-2xl [&:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&]:mt-2',
|
||||
'lg' => 'text-base [&:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&]:mt-2',
|
||||
default => 'text-sm [&:has(+[data-flux-subheading])]:mb-2 [[data-flux-subheading]+&]:mt-2',
|
||||
})
|
||||
;
|
||||
?>
|
||||
|
||||
<?php switch ((int) $level): case(1): ?>
|
||||
<h1 <?php echo e($attributes->class($classes)); ?> data-flux-heading><?php echo e($slot); ?></h1>
|
||||
|
||||
<?php break; ?>
|
||||
<?php case(2): ?>
|
||||
<h2 <?php echo e($attributes->class($classes)); ?> data-flux-heading><?php echo e($slot); ?></h2>
|
||||
|
||||
<?php break; ?>
|
||||
<?php case(3): ?>
|
||||
<h3 <?php echo e($attributes->class($classes)); ?> data-flux-heading><?php echo e($slot); ?></h3>
|
||||
|
||||
<?php break; ?>
|
||||
<?php case(4): ?>
|
||||
<h4 <?php echo e($attributes->class($classes)); ?> data-flux-heading><?php echo e($slot); ?></h4>
|
||||
|
||||
<?php break; ?>
|
||||
<?php default: ?>
|
||||
<div <?php echo e($attributes->class($classes)); ?> data-flux-heading><?php echo e($slot); ?></div>
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/heading.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
if (!function_exists('__dc37e44ba76be4edbfb196d052a57385')):
|
||||
function __dc37e44ba76be4edbfb196d052a57385($__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();
|
||||
?>
|
||||
|
||||
|
||||
<ui-menu-radio-group <?php echo e($attributes); ?> data-flux-menu-radio-group>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</ui-menu-radio-group>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/menu/radio/group.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if (!function_exists('__df849612017acfc4b8028277b33cf4f9')):
|
||||
function __df849612017acfc4b8028277b33cf4f9($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M12 3.75a.75.75 0 0 1 .75.75v6.75h6.75a.75.75 0 0 1 0 1.5h-6.75v6.75a.75.75 0 0 1-1.5 0v-6.75H4.5a.75.75 0 0 1 0-1.5h6.75V4.5a.75.75 0 0 1 .75-.75Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M10.75 4.75a.75.75 0 0 0-1.5 0v4.5h-4.5a.75.75 0 0 0 0 1.5h4.5v4.5a.75.75 0 0 0 1.5 0v-4.5h4.5a.75.75 0 0 0 0-1.5h-4.5v-4.5Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M8.75 3.75a.75.75 0 0 0-1.5 0v3.5h-3.5a.75.75 0 0 0 0 1.5h3.5v3.5a.75.75 0 0 0 1.5 0v-3.5h3.5a.75.75 0 0 0 0-1.5h-3.5v-3.5Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/plus.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
if (!function_exists('__ead59bb73ece9c4532f875b4b481ffe6')):
|
||||
function __ead59bb73ece9c4532f875b4b481ffe6($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'orientation' => null,
|
||||
'vertical' => false,
|
||||
'variant' => null,
|
||||
'faint' => false,
|
||||
'text' => null,
|
||||
];
|
||||
$orientation ??= $attributes['orientation'] ?? $__defaults['orientation']; unset($attributes['orientation']);
|
||||
$vertical ??= $attributes['vertical'] ?? $__defaults['vertical']; unset($attributes['vertical']);
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
$faint ??= $attributes['faint'] ?? $__defaults['faint']; unset($attributes['faint']);
|
||||
$text ??= $attributes['text'] ?? $__defaults['text']; unset($attributes['text']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$orientation ??= $vertical ? 'vertical' : 'horizontal';
|
||||
|
||||
$classes = Flux::classes('border-0 [print-color-adjust:exact]')
|
||||
->add(match ($variant) {
|
||||
'subtle' => 'bg-zinc-800/5 dark:bg-white/10',
|
||||
default => 'bg-zinc-800/15 dark:bg-white/20',
|
||||
})
|
||||
->add(match ($orientation) {
|
||||
'horizontal' => 'h-px w-full',
|
||||
'vertical' => 'self-stretch self-center w-px',
|
||||
})
|
||||
;
|
||||
?>
|
||||
|
||||
<?php if ($text): ?>
|
||||
<div data-orientation="<?php echo e($orientation); ?>" class="flex items-center w-full" role="none" data-flux-separator>
|
||||
<div <?php echo e($attributes->class([$classes, 'grow'])); ?>></div>
|
||||
|
||||
<span class="shrink mx-6 font-medium text-sm text-zinc-500 dark:text-zinc-300 whitespace-nowrap"><?php echo e($text); ?></span>
|
||||
|
||||
<div <?php echo e($attributes->class([$classes, 'grow'])); ?>></div>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<div data-orientation="<?php echo e($orientation); ?>" role="none" <?php echo e($attributes->class($classes, 'shrink-0')); ?> data-flux-separator></div>
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/separator.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
if (!function_exists('__eb4126ed792b02113a6228b672af4d70')):
|
||||
function __eb4126ed792b02113a6228b672af4d70($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class([$classes, 'animate-spin'])); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
|
||||
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
||||
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
||||
</svg>
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class([$classes, 'animate-spin'])); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
|
||||
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
||||
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
||||
</svg>
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class([$classes, 'animate-spin'])); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
|
||||
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
||||
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
||||
</svg>
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class([$classes, 'animate-spin'])); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" aria-hidden="true" data-slot="icon">
|
||||
<circle class="opacity-25" cx="12" cy="12" r="10" stroke="currentColor" stroke-width="4"></circle>
|
||||
<path class="opacity-75" fill="currentColor" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
||||
</svg>
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/loading.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
if (!function_exists('__f677e0126eb302fcb55ee4e72ad0d7c5')):
|
||||
function __f677e0126eb302fcb55ee4e72ad0d7c5($__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 $srOnly = $srOnly ??= $attributes->pluck('sr-only'); ?>
|
||||
|
||||
<?php
|
||||
$__defaults = [
|
||||
'badge' => null,
|
||||
'aside' => null,
|
||||
'trailing' => null,
|
||||
'srOnly' => null,
|
||||
];
|
||||
$badge ??= $attributes['badge'] ?? $__defaults['badge']; unset($attributes['badge']);
|
||||
$aside ??= $attributes['aside'] ?? $__defaults['aside']; unset($attributes['aside']);
|
||||
$trailing ??= $attributes['trailing'] ?? $__defaults['trailing']; unset($attributes['trailing']);
|
||||
$srOnly ??= $attributes['sr-only'] ?? $attributes['srOnly'] ?? $__defaults['srOnly']; unset($attributes['srOnly'], $attributes['sr-only']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes()
|
||||
->add('inline-flex items-center')
|
||||
->add('text-sm font-medium')
|
||||
->add($srOnly ? 'sr-only' : '')
|
||||
->add('[:where(&)]:text-zinc-800 [:where(&)]:dark:text-white')
|
||||
->add('[&:has([data-flux-label-trailing])]:flex')
|
||||
;
|
||||
?>
|
||||
|
||||
<ui-label <?php echo e($attributes->class($classes)); ?> data-flux-label>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
|
||||
<?php if (is_string($badge)): ?>
|
||||
<span class="ms-1.5 text-zinc-800/70 text-xs bg-zinc-800/5 px-1.5 py-1 -my-1 rounded-[4px] dark:bg-white/10 dark:text-zinc-300" aria-hidden="true">
|
||||
<?php echo e($badge); ?>
|
||||
|
||||
</span>
|
||||
<?php elseif ($badge): ?>
|
||||
<span class="ms-1.5" aria-hidden="true">
|
||||
<?php echo e($badge); ?>
|
||||
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($aside): ?>
|
||||
<span class="ms-1.5 text-zinc-800/70 text-xs bg-zinc-800/5 px-1.5 py-1 -my-1 rounded-[4px] dark:bg-white/10 dark:text-zinc-300" aria-hidden="true">
|
||||
<?php echo e($aside); ?>
|
||||
|
||||
</span>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($trailing): ?>
|
||||
<div class="ml-auto" data-flux-label-trailing>
|
||||
<?php echo e($trailing); ?>
|
||||
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</ui-label>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/label.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
if (!function_exists('__fb217b67c45072adcf77500afdd69d1a')):
|
||||
function __fb217b67c45072adcf77500afdd69d1a($__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
|
||||
$__defaults = [
|
||||
'variant' => 'block',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes()
|
||||
->add('min-w-0') // This is here to allow nested input elements like flux::input.file to truncate properly...
|
||||
->add('[&:not(:has([data-flux-field])):has([data-flux-control][disabled])>[data-flux-label]]:opacity-50') // Dim labels for fields with no nested fields when a control is disabled...
|
||||
->add('[&:has(>[data-flux-radio-group][disabled])>[data-flux-label]]:opacity-50') // Special case for radio groups because they are nested fields...
|
||||
->add('[&:has(>[data-flux-checkbox-group][disabled])>[data-flux-label]]:opacity-50') // Special case for checkbox groups because they are nested fields...
|
||||
->add(match ($variant) {
|
||||
default => 'block',
|
||||
'bare' => '[:where(&)]:block',
|
||||
'inline' => [
|
||||
'grid gap-x-3 gap-y-1.5',
|
||||
'has-[[data-flux-label]~[data-flux-control]]:grid-cols-[1fr_auto]',
|
||||
'has-[[data-flux-control]~[data-flux-label]]:grid-cols-[auto_1fr]',
|
||||
'[&>[data-flux-control]~[data-flux-description]]:row-start-2 [&>[data-flux-control]~[data-flux-description]]:col-start-2',
|
||||
'[&>[data-flux-control]~[data-flux-error]]:col-span-2 [&>[data-flux-control]~[data-flux-error]]:mt-1', // Position error messages...
|
||||
'[&>[data-flux-label]~[data-flux-control]]:row-start-1 [&>[data-flux-label]~[data-flux-control]]:col-start-2',
|
||||
],
|
||||
})
|
||||
->add(match ($variant) {
|
||||
default => [ // Adjust spacing around label...
|
||||
'*:data-flux-label:mb-3 [&>[data-flux-label]:has(+[data-flux-description])]:mb-2',
|
||||
],
|
||||
'bare' => '',
|
||||
'inline' => '',
|
||||
})
|
||||
->add(match ($variant) {
|
||||
default => [ // Adjust spacing around description...
|
||||
'[&>[data-flux-label]+[data-flux-description]]:mt-0',
|
||||
'[&>[data-flux-label]+[data-flux-description]]:mb-3',
|
||||
'[&>*:not([data-flux-label])+[data-flux-description]]:mt-3',
|
||||
],
|
||||
'bare' => '',
|
||||
'inline' => '',
|
||||
});
|
||||
?>
|
||||
|
||||
<ui-field <?php echo e($attributes->class($classes)); ?> data-flux-field>
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
</ui-field>
|
||||
<?php
|
||||
echo $__blaze->processPassthroughContent('ltrim', ltrim(ob_get_clean()));
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/field.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,7 @@
|
||||
@php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
@endphp
|
||||
# Test Enforcement
|
||||
|
||||
- Every change must be programmatically tested. Write a new test or update an existing test, then run the affected tests to make sure they pass.
|
||||
- Run the minimum number of tests needed to ensure code quality and speed. Use ___SINGLE_BACKTICK___{{ $assist->artisanCommand('test --compact') }}___SINGLE_BACKTICK___ with a specific filename or filter.
|
||||
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
if (!function_exists('_c25757b57281971918e40cef8377d29f')):
|
||||
function _c25757b57281971918e40cef8377d29f($__blaze, $__data = [], $__slots = [], $__bound = [], $__keys = [], $__this = null) {
|
||||
$__env = $__blaze->env;
|
||||
|
||||
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
|
||||
$__defaults = [
|
||||
'variant' => 'outline',
|
||||
];
|
||||
$variant ??= $attributes['variant'] ?? $__defaults['variant']; unset($attributes['variant']);
|
||||
unset($__defaults);
|
||||
?>
|
||||
|
||||
<?php
|
||||
$classes = Flux::classes('shrink-0')
|
||||
->add(match($variant) {
|
||||
'outline' => '[:where(&)]:size-6',
|
||||
'solid' => '[:where(&)]:size-6',
|
||||
'mini' => '[:where(&)]:size-5',
|
||||
'micro' => '[:where(&)]:size-4',
|
||||
});
|
||||
?>
|
||||
|
||||
<?php switch ($variant): case ('outline'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" d="M3.98 8.223A10.477 10.477 0 0 0 1.934 12C3.226 16.338 7.244 19.5 12 19.5c.993 0 1.953-.138 2.863-.395M6.228 6.228A10.451 10.451 0 0 1 12 4.5c4.756 0 8.773 3.162 10.065 7.498a10.522 10.522 0 0 1-4.293 5.774M6.228 6.228 3 3m3.228 3.228 3.65 3.65m7.894 7.894L21 21m-3.228-3.228-3.65-3.65m0 0a3 3 0 1 0-4.243-4.243m4.242 4.242L9.88 9.88"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('solid'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path d="M3.53 2.47a.75.75 0 0 0-1.06 1.06l18 18a.75.75 0 1 0 1.06-1.06l-18-18ZM22.676 12.553a11.249 11.249 0 0 1-2.631 4.31l-3.099-3.099a5.25 5.25 0 0 0-6.71-6.71L7.759 4.577a11.217 11.217 0 0 1 4.242-.827c4.97 0 9.185 3.223 10.675 7.69.12.362.12.752 0 1.113Z"/>
|
||||
<path d="M15.75 12c0 .18-.013.357-.037.53l-4.244-4.243A3.75 3.75 0 0 1 15.75 12ZM12.53 15.713l-4.243-4.244a3.75 3.75 0 0 0 4.244 4.243Z"/>
|
||||
<path d="M6.75 12c0-.619.107-1.213.304-1.764l-3.1-3.1a11.25 11.25 0 0 0-2.63 4.31c-.12.362-.12.752 0 1.114 1.489 4.467 5.704 7.69 10.675 7.69 1.5 0 2.933-.294 4.242-.827l-2.477-2.477A5.25 5.25 0 0 1 6.75 12Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('mini'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M3.28 2.22a.75.75 0 0 0-1.06 1.06l14.5 14.5a.75.75 0 1 0 1.06-1.06l-1.745-1.745a10.029 10.029 0 0 0 3.3-4.38 1.651 1.651 0 0 0 0-1.185A10.004 10.004 0 0 0 9.999 3a9.956 9.956 0 0 0-4.744 1.194L3.28 2.22ZM7.752 6.69l1.092 1.092a2.5 2.5 0 0 1 3.374 3.373l1.091 1.092a4 4 0 0 0-5.557-5.557Z" clip-rule="evenodd"/>
|
||||
<path d="m10.748 13.93 2.523 2.523a9.987 9.987 0 0 1-3.27.547c-4.258 0-7.894-2.66-9.337-6.41a1.651 1.651 0 0 1 0-1.186A10.007 10.007 0 0 1 2.839 6.02L6.07 9.252a4 4 0 0 0 4.678 4.678Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php case ('micro'): ?>
|
||||
<svg <?php echo e($attributes->class($classes)); ?> data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M3.28 2.22a.75.75 0 0 0-1.06 1.06l10.5 10.5a.75.75 0 1 0 1.06-1.06l-1.322-1.323a7.012 7.012 0 0 0 2.16-3.11.87.87 0 0 0 0-.567A7.003 7.003 0 0 0 4.82 3.76l-1.54-1.54Zm3.196 3.195 1.135 1.136A1.502 1.502 0 0 1 9.45 8.389l1.136 1.135a3 3 0 0 0-4.109-4.109Z" clip-rule="evenodd"/>
|
||||
<path d="m7.812 10.994 1.816 1.816A7.003 7.003 0 0 1 1.38 8.28a.87.87 0 0 1 0-.566 6.985 6.985 0 0 1 1.113-2.039l2.513 2.513a3 3 0 0 0 2.806 2.806Z"/>
|
||||
</svg>
|
||||
|
||||
<?php break; ?>
|
||||
|
||||
<?php endswitch; ?>
|
||||
<?php
|
||||
echo ltrim(ob_get_clean());
|
||||
} endif; ?><?php /**PATH /Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/icon/eye-slash.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
/** @var \Laravel\Boost\Install\GuidelineAssist $assist */
|
||||
?>
|
||||
# Laravel Boost Guidelines
|
||||
|
||||
The Laravel Boost guidelines are specifically curated by Laravel maintainers for this application. These guidelines should be followed closely to ensure the best experience when building Laravel applications.
|
||||
|
||||
## Foundational Context
|
||||
This application is a Laravel application and its main Laravel ecosystems package & versions are below. You are an expert with them all. Ensure you abide by these specific packages & versions.
|
||||
|
||||
- php - <?php echo e(PHP_MAJOR_VERSION); ?>.<?php echo e(PHP_MINOR_VERSION); ?>
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::openLoop(); ?><?php endif; ?><?php $__currentLoopData = app(\Laravel\Roster\Roster::class)->packages()->unique(fn ($package) => $package->rawName()); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $package): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::startLoopIteration(); ?><?php endif; ?>
|
||||
- <?php echo e($package->rawName()); ?> (<?php echo e($package->name()); ?>) - v<?php echo e($package->majorVersion()); ?>
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::endLoop(); ?><?php endif; ?><?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::closeLoop(); ?><?php endif; ?>
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(! empty(config('boost.purpose'))): ?>
|
||||
Application purpose: <?php echo config('boost.purpose'); ?>
|
||||
|
||||
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
|
||||
<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($assist->hasSkillsEnabled()): ?>
|
||||
## Skills Activation
|
||||
This project has domain-specific skills available in ___SINGLE_BACKTICK___**/skills/**___SINGLE_BACKTICK___. You MUST activate the relevant skill whenever you work in that domain—don't wait until you're stuck.
|
||||
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
|
||||
|
||||
## Conventions
|
||||
- You must follow all existing code conventions used in this application. When creating or editing a file, check sibling files for the correct structure, approach, and naming.
|
||||
- Use descriptive names for variables and methods. For example, ___SINGLE_BACKTICK___isRegisteredForDiscounts___SINGLE_BACKTICK___, not ___SINGLE_BACKTICK___discount()___SINGLE_BACKTICK___.
|
||||
- Check for existing components to reuse before writing a new one.
|
||||
|
||||
## Verification Scripts
|
||||
- Do not create verification scripts or tinker when tests cover that functionality and prove they work. Unit and feature tests are more important.
|
||||
|
||||
## Application Structure & Architecture
|
||||
- Stick to existing directory structure; don't create new base folders without approval.
|
||||
- Do not change the application's dependencies without approval.
|
||||
|
||||
## Frontend Bundling
|
||||
- If the user doesn't see a frontend change reflected in the UI, it could mean they need to run ___SINGLE_BACKTICK___<?php echo e($assist->nodePackageManagerCommand('run build')); ?>___SINGLE_BACKTICK___, ___SINGLE_BACKTICK___<?php echo e($assist->nodePackageManagerCommand('run dev')); ?>___SINGLE_BACKTICK___, or ___SINGLE_BACKTICK___<?php echo e($assist->composerCommand('run dev')); ?>___SINGLE_BACKTICK___. Ask them.
|
||||
|
||||
## Documentation Files
|
||||
- You must only create documentation files if explicitly requested by the user.
|
||||
|
||||
## Replies
|
||||
- Be concise in your explanations - focus on what's important rather than explaining obvious details.
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Concepts/WMS_Core/storage/framework/views/56412a9aeb6f1e81a1c3ce244096a4cf.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php if (isset($component)) { $__componentOriginal23399719f391f3076fe3bf0929a84741 = $component; } ?>
|
||||
<?php if (isset($attributes)) { $__attributesOriginal23399719f391f3076fe3bf0929a84741 = $attributes; } ?>
|
||||
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'f4ac99e09542ff494432bc959d4fee61::app.sidebar','data' => ['title' => $title ?? null]] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
|
||||
<?php $component->withName('layouts::app.sidebar'); ?>
|
||||
<?php if ($component->shouldRender()): ?>
|
||||
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
|
||||
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag): ?>
|
||||
<?php $attributes = $attributes->except(\Illuminate\View\AnonymousComponent::ignoredParameterNames()); ?>
|
||||
<?php endif; ?>
|
||||
<?php $component->withAttributes(['title' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($title ?? null)]); ?>
|
||||
<?php \Livewire\Features\SupportCompiledWireKeys\SupportCompiledWireKeys::processComponentKey($component); ?>
|
||||
|
||||
<?php echo e($slot); ?>
|
||||
|
||||
<?php echo $__env->renderComponent(); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__attributesOriginal23399719f391f3076fe3bf0929a84741)): ?>
|
||||
<?php $attributes = $__attributesOriginal23399719f391f3076fe3bf0929a84741; ?>
|
||||
<?php unset($__attributesOriginal23399719f391f3076fe3bf0929a84741); ?>
|
||||
<?php endif; ?>
|
||||
<?php if (isset($__componentOriginal23399719f391f3076fe3bf0929a84741)): ?>
|
||||
<?php $component = $__componentOriginal23399719f391f3076fe3bf0929a84741; ?>
|
||||
<?php unset($__componentOriginal23399719f391f3076fe3bf0929a84741); ?>
|
||||
<?php endif; ?>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/layouts/app.blade.php ENDPATH**/ ?>
|
||||
@@ -0,0 +1,137 @@
|
||||
<?php # [BlazeFolded]:{flux::button}:{/Users/mag/Sites/WMS/Core/vendor/livewire/flux/src/../stubs/resources/views/flux/button/index.blade.php}:{1776985208} ?>
|
||||
<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;
|
||||
|
||||
$__newAttributes = [];
|
||||
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames(([
|
||||
'optionsRoute' => 'passkey.login-options',
|
||||
'submitRoute' => 'passkey.login',
|
||||
'label' => __('Sign in with a passkey'),
|
||||
'loadingLabel' => __('Authenticating...'),
|
||||
'separator' => __('Or continue with email'),
|
||||
]));
|
||||
|
||||
foreach ($attributes->all() as $__key => $__value) {
|
||||
if (in_array($__key, $__propNames)) {
|
||||
$$__key = $$__key ?? $__value;
|
||||
} else {
|
||||
$__newAttributes[$__key] = $__value;
|
||||
}
|
||||
}
|
||||
|
||||
$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);
|
||||
|
||||
unset($__propNames);
|
||||
unset($__newAttributes);
|
||||
|
||||
foreach (array_filter(([
|
||||
'optionsRoute' => 'passkey.login-options',
|
||||
'submitRoute' => 'passkey.login',
|
||||
'label' => __('Sign in with a passkey'),
|
||||
'loadingLabel' => __('Authenticating...'),
|
||||
'separator' => __('Or continue with email'),
|
||||
]), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
|
||||
$$__key = $$__key ?? $__value;
|
||||
}
|
||||
|
||||
$__defined_vars = get_defined_vars();
|
||||
|
||||
foreach ($attributes->all() as $__key => $__value) {
|
||||
if (array_key_exists($__key, $__defined_vars)) unset($$__key);
|
||||
}
|
||||
|
||||
unset($__defined_vars, $__key, $__value); ?>
|
||||
|
||||
<?php
|
||||
$__assetKey = '2370491363-0';
|
||||
|
||||
ob_start();
|
||||
?>
|
||||
<?php echo app('Illuminate\Foundation\Vite')('resources/js/passkeys.js'); ?>
|
||||
<?php
|
||||
$__output = ob_get_clean();
|
||||
|
||||
// If the asset has already been loaded anywhere during this request, skip it...
|
||||
if (in_array($__assetKey, \Livewire\Features\SupportScriptsAndAssets\SupportScriptsAndAssets::$alreadyRunAssetKeys)) {
|
||||
// Skip it...
|
||||
} else {
|
||||
\Livewire\Features\SupportScriptsAndAssets\SupportScriptsAndAssets::$alreadyRunAssetKeys[] = $__assetKey;
|
||||
|
||||
// Check if we're in a Livewire component or not and store the asset accordingly...
|
||||
if (isset($this)) {
|
||||
\Livewire\store($this)->push('assets', $__output, $__assetKey);
|
||||
} else {
|
||||
\Livewire\Features\SupportScriptsAndAssets\SupportScriptsAndAssets::$nonLivewireAssets[$__assetKey] = $__output;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
<div
|
||||
x-data="{
|
||||
supported: false,
|
||||
loading: false,
|
||||
error: null,
|
||||
updateSupport() {
|
||||
this.supported = Boolean(window.Passkeys?.isSupported());
|
||||
},
|
||||
init() {
|
||||
this.updateSupport();
|
||||
|
||||
window.addEventListener('passkeys:ready', () => this.updateSupport(), { once: true });
|
||||
},
|
||||
async verify() {
|
||||
this.loading = true;
|
||||
this.error = null;
|
||||
try {
|
||||
const response = await window.Passkeys.verify({
|
||||
routes: {
|
||||
options: '<?php echo e(route($optionsRoute)); ?>',
|
||||
submit: '<?php echo e(route($submitRoute)); ?>',
|
||||
},
|
||||
});
|
||||
Livewire.navigate(response.redirect || '/dashboard');
|
||||
} catch (e) {
|
||||
if (e.constructor?.name !== 'UserCancelledError') {
|
||||
this.error = e.message;
|
||||
}
|
||||
} finally {
|
||||
this.loading = false;
|
||||
}
|
||||
},
|
||||
}"
|
||||
>
|
||||
<template x-if="supported">
|
||||
<div>
|
||||
<div class="grid gap-2">
|
||||
<?php ob_start(); ?><button type="button" class="relative items-center font-medium justify-center gap-2 whitespace-nowrap disabled:opacity-75 dark:disabled:opacity-75 disabled:cursor-default disabled:pointer-events-none justify-center h-10 text-sm rounded-lg ps-3 pe-4 inline-flex bg-white hover:bg-zinc-50 dark:bg-zinc-700 dark:hover:bg-zinc-600/75 text-zinc-800 dark:text-white border border-zinc-200 hover:border-zinc-200 border-b-zinc-300/80 dark:border-zinc-600 dark:hover:border-zinc-600 shadow-xs [[data-flux-button-group]_&]:border-s-0 [:is([data-flux-button-group]>&:first-child,_[data-flux-button-group]_:first-child>&)]:border-s-[1px] w-full" data-flux-button="data-flux-button" data-flux-group-target="data-flux-group-target" x-on:click="verify()" x-bind:disabled="loading">
|
||||
<svg class="shrink-0 [:where(&)]:size-4" data-flux-icon xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" data-slot="icon">
|
||||
<path fill-rule="evenodd" d="M8 3c-.988 0-1.908.286-2.682.78a.75.75 0 0 1-.806-1.266A6.5 6.5 0 0 1 14.5 8c0 1.665-.333 3.254-.936 4.704a.75.75 0 0 1-1.385-.577C12.708 10.857 13 9.464 13 8a5 5 0 0 0-5-5ZM3.55 4.282a.75.75 0 0 1 .23 1.036A4.973 4.973 0 0 0 3 8a.75.75 0 0 1-1.5 0c0-1.282.372-2.48 1.014-3.488a.75.75 0 0 1 1.036-.23ZM8 5.875A2.125 2.125 0 0 0 5.875 8a3.625 3.625 0 0 1-3.625 3.625H2.213a.75.75 0 1 1 .008-1.5h.03A2.125 2.125 0 0 0 4.376 8a3.625 3.625 0 1 1 7.25 0c0 .078-.001.156-.003.233a.75.75 0 1 1-1.5-.036c.002-.066.003-.131.003-.197A2.125 2.125 0 0 0 8 5.875ZM7.995 7.25a.75.75 0 0 1 .75.75 6.502 6.502 0 0 1-4.343 6.133.75.75 0 1 1-.498-1.415A5.002 5.002 0 0 0 7.245 8a.75.75 0 0 1 .75-.75Zm2.651 2.87a.75.75 0 0 1 .463.955 9.39 9.39 0 0 1-3.008 4.25.75.75 0 0 1-.936-1.171 7.892 7.892 0 0 0 2.527-3.57.75.75 0 0 1 .954-.463Z" clip-rule="evenodd"/>
|
||||
</svg>
|
||||
|
||||
|
||||
|
||||
|
||||
<span><?php ob_start(); ?>
|
||||
<span x-show="!loading"><?php echo e($label); ?></span>
|
||||
<span x-show="loading" x-cloak><?php echo e($loadingLabel); ?></span>
|
||||
<?php echo trim(ob_get_clean()); ?></span>
|
||||
</button>
|
||||
<?php echo ltrim(ob_get_clean()); ?>
|
||||
<p x-show="error" x-text="error" x-cloak
|
||||
class="text-sm text-center text-red-600 dark:text-red-400"></p>
|
||||
</div>
|
||||
|
||||
<div class="relative my-6">
|
||||
<div class="absolute inset-0 flex items-center">
|
||||
<div class="w-full border-t border-zinc-200 dark:border-zinc-700"></div>
|
||||
</div>
|
||||
<div class="relative flex justify-center text-xs uppercase">
|
||||
<span class="px-2 text-zinc-500 dark:text-zinc-400 bg-white dark:bg-zinc-900">
|
||||
<?php echo e($separator); ?>
|
||||
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
<?php /**PATH /Users/mag/Sites/WMS/Core/resources/views/components/passkey-verify.blade.php ENDPATH**/ ?>
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user