<div id="global-toast-container" class="fixed top-4 right-4 z-50 flex flex-col gap-3 max-w-sm w-full pointer-events-none">
    <?php $__currentLoopData = ['success' => ['bi-check-circle', 'success'], 'error' => ['bi-exclamation-circle', 'danger']]; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type => $meta): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <?php if(session($type)): ?>
            <?php if (isset($component)) { $__componentOriginald888329b8246e32afd68d2decbd25cf1 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald888329b8246e32afd68d2decbd25cf1 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.alert','data' => ['type' => $meta[1],'icon' => $meta[0],'id' => ''.e($type).'-alert','class' => 'admin-dismissible-alert pointer-events-auto transform transition-all duration-300 shadow-lg border-l-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.alert'); ?>
<?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(['type' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($meta[1]),'icon' => \Illuminate\View\Compilers\BladeCompiler::sanitizeComponentAttribute($meta[0]),'id' => ''.e($type).'-alert','class' => 'admin-dismissible-alert pointer-events-auto transform transition-all duration-300 shadow-lg border-l-4']); ?>
                <div class="flex items-start justify-between w-full">
                    <span class="flex-1 pr-2"><?php echo e(session($type)); ?></span>
                    <button type="button" onclick="AdminUI.hideAlert('<?php echo e($type); ?>-alert')" class="text-slate-400 hover:text-slate-600 dark:hover:text-slate-300 transition-colors" aria-label="Dismiss"><i class="bi bi-x-lg"></i></button>
                </div>
             <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald888329b8246e32afd68d2decbd25cf1)): ?>
<?php $attributes = $__attributesOriginald888329b8246e32afd68d2decbd25cf1; ?>
<?php unset($__attributesOriginald888329b8246e32afd68d2decbd25cf1); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald888329b8246e32afd68d2decbd25cf1)): ?>
<?php $component = $__componentOriginald888329b8246e32afd68d2decbd25cf1; ?>
<?php unset($__componentOriginald888329b8246e32afd68d2decbd25cf1); ?>
<?php endif; ?>
        <?php endif; ?>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

    <?php if($errors->any()): ?>
        <?php if (isset($component)) { $__componentOriginald888329b8246e32afd68d2decbd25cf1 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald888329b8246e32afd68d2decbd25cf1 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.admin.alert','data' => ['type' => 'danger','icon' => 'bi-exclamation-triangle','id' => 'validation-alert','class' => 'admin-dismissible-alert pointer-events-auto transform transition-all duration-300 shadow-lg border-l-4']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? $attributes->all() : [])); ?>
<?php $component->withName('admin.alert'); ?>
<?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(['type' => 'danger','icon' => 'bi-exclamation-triangle','id' => 'validation-alert','class' => 'admin-dismissible-alert pointer-events-auto transform transition-all duration-300 shadow-lg border-l-4']); ?>
            <div class="flex items-start justify-between w-full">
                <div class="flex-1 pr-2">
                    <strong>Please review the highlighted fields.</strong>
                    <ul class="mb-0 mt-1 pl-4 list-disc text-xs">
                        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <li><?php echo e($error); ?></li>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    </ul>
                </div>
                <button type="button" onclick="AdminUI.hideAlert('validation-alert')" class="text-slate-400 hover:text-slate-600 dark:hover:text-slate-300 transition-colors" aria-label="Dismiss"><i class="bi bi-x-lg"></i></button>
            </div>
         <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald888329b8246e32afd68d2decbd25cf1)): ?>
<?php $attributes = $__attributesOriginald888329b8246e32afd68d2decbd25cf1; ?>
<?php unset($__attributesOriginald888329b8246e32afd68d2decbd25cf1); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald888329b8246e32afd68d2decbd25cf1)): ?>
<?php $component = $__componentOriginald888329b8246e32afd68d2decbd25cf1; ?>
<?php unset($__componentOriginald888329b8246e32afd68d2decbd25cf1); ?>
<?php endif; ?>
    <?php endif; ?>
</div>
<?php /**PATH /Users/mac/Documents/e-com/resources/views/layouts/partials/alerts.blade.php ENDPATH**/ ?>