<div
    x-data="{ show: true }"
    x-show="show"
    x-transition
    x-init="setTimeout(() => show = false, 5000)"
    wire:key="toast-<?php echo e(md5(json_encode($errors->all() ?? []))); ?>-<?php echo e(session('success') ?? ''); ?>-<?php echo e(session('error') ?? ''); ?>-<?php echo e(session('warning') ?? ''); ?>"
    class="fixed top-4 right-4 z-[9999] max-w-sm w-full pointer-events-auto"
    x-cloak
>
    
    <!--[if BLOCK]><![endif]--><?php if(isset($errors)): ?>
        <!--[if BLOCK]><![endif]--><?php if($errors->any()): ?>
            <div class="mb-2 bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded shadow relative flex items-start space-x-2">
                <i class="ph ph-warning-circle text-xl mt-1"></i>
                <div>
                    <strong class="font-bold">Erreur!</strong>
                    <ul class="mt-1 list-inside text-sm">
                        <!--[if BLOCK]><![endif]--><?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(); ?><!--[if ENDBLOCK]><![endif]-->
                    </ul>
                </div>
                <button @click="show = false" class="absolute top-2 right-2 text-red-500 hover:text-red-700 text-xl leading-none">
                    &times;
                </button>
            </div>
        <?php endif; ?><!--[if ENDBLOCK]><![endif]-->        
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->

    
    <!--[if BLOCK]><![endif]--><?php if(session('success')): ?>
        <div class="mb-2 bg-green-100 border border-green-400 text-green-700 px-4 py-3 rounded shadow relative flex items-start space-x-2">
            <i class="ph ph-check-circle text-xl mt-1"></i>
            <div>
                <strong class="font-bold">Succès!</strong>
                <span class="block text-sm"><?php echo e(session('success')); ?></span>
            </div>
            <button @click="show = false" class="absolute top-2 right-2 text-green-500 hover:text-green-700 text-xl leading-none">
                &times;
            </button>
        </div>
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->

    
    <!--[if BLOCK]><![endif]--><?php if(session('error')): ?>
        <div class="mb-2 bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded shadow relative flex items-start space-x-2">
            <i class="ph ph-x-circle text-xl mt-1"></i>
            <div>
                <strong class="font-bold">Erreur!</strong>
                <span class="block text-sm"><?php echo e(session('error')); ?></span>
            </div>
            <button @click="show = false" class="absolute top-2 right-2 text-red-500 hover:text-red-700 text-xl leading-none">
                &times;
            </button>
        </div>
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->

    
    <!--[if BLOCK]><![endif]--><?php if(session('warning')): ?>
        <div class="mb-2 bg-yellow-100 border border-yellow-400 text-yellow-800 px-4 py-3 rounded shadow relative flex items-start space-x-2">
            <i class="ph ph-warning text-xl mt-1"></i>
            <div>
                <strong class="font-bold">Attention!</strong>
                <span class="block text-sm"><?php echo e(session('warning')); ?></span>
            </div>
            <button @click="show = false" class="absolute top-2 right-2 text-yellow-500 hover:text-yellow-700 text-xl leading-none">
                &times;
            </button>
        </div>
    <?php endif; ?><!--[if ENDBLOCK]><![endif]-->
</div>
<?php /**PATH D:\WORK\MAARIFA\ANGO\DESKTOP\V4\ango-desktop\resources\views/components/basics/toast.blade.php ENDPATH**/ ?>