    <link rel="stylesheet" href="/assets/extensions/toastify-js/src/toastify.css">
    <script src="/assets/extensions/toastify-js/src/toastify.js"></script>
    <script>
        function toastResult(gravity, position, text, status) {
            Toastify({
                text: text,
                duration: 3000,
                close: true,
                gravity: gravity,
                position: position,
                backgroundColor: status == 'failed' ? "#dc3545" : "#4fbe87",
            }).showToast();
        }
    </script>
    
    <?php if(Session::has('success')): ?>
        <script>
            toastResult("bottom", "right", "<?php echo e(Session::get('success')); ?>", "success")
        </script>
    <?php endif; ?>

    
    <?php if(Session::has('failed')): ?>
        <script>
            toastResult("bottom", "right", "<?php echo e(Session::get('failed')); ?>", "failed")
        </script>
    <?php endif; ?>


    
    <?php if($errors->any()): ?>
        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <script>
                toastResult("bottom", "right", <?php echo json_encode($item, 15, 512) ?>, "failed");
            </script>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

    <?php endif; ?>
<?php /**PATH C:\laragon\www\pinjam_barang\resources\views/alert.blade.php ENDPATH**/ ?>