<?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('message')): ?>
    <?php
        $type = session('type') ?? 'success'; // default to success if type not set
        $bgColor = match ($type) {
            'error' => 'bg-red-500',
            'status' => 'bg-blue-500',
            'success' => 'bg-green-500',
            'info' => 'bg-yellow-500',
            default => 'bg-gray-500'
        };
    ?>

    <div x-data="{ show: true }" x-show="show" x-init="setTimeout(() => show = false, 4000)"
        class="fixed top-5 right-5 z-50 <?php echo e($bgColor); ?> text-white px-4 py-3 rounded-lg shadow-lg flex items-center gap-3">

        <span><?php echo e(session('message')); ?></span>

        <!-- Close button -->
        <button @click="show=false" class="ml-auto text-white hover:text-gray-200">
            <svg class="w-4 h-4" fill="none" stroke="currentColor" stroke-width="2" viewBox="0 0 24 24">
                <path stroke-linecap="round" stroke-linejoin="round" d="M6 18L18 6M6 6l12 12" />
            </svg>
        </button>
    </div>
<?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
<?php /**PATH /Users/macuser/Herd/Novabank/resources/views/components/ui/session-toast.blade.php ENDPATH**/ ?>