<?php if($general->alert == 1): ?> 
    <!-- iziToast -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/admin/css/iziToast.min.css')); ?>">
    <script src="<?php echo e(asset('assets/admin/js/iziToast.min.js')); ?>"></script>

    <?php if(session()->has('notify')): ?>
      <?php $__currentLoopData = session('notify'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $msg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        <script type="text/javascript">  iziToast.<?php echo e($msg[0]); ?>({message:"<?php echo e($msg[1]); ?>", position: "topRight"}); </script>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>


    <?php if(Session::has('invest')): ?>
        <script type="text/javascript">  iziToast.success({message:"<?php echo e(__(Session::get('invest'))); ?>", position: "topRight"}); </script>
    <?php endif; ?>

    <?php if($errors->any()): ?>
        <script>

        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            iziToast.error({
                message: '<?php echo e($error); ?>',
            position: "topRight"
            });
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </script>

    <?php endif; ?>
    <script>

        function notify(status,message) {
            iziToast[status]({
                message: message,
                position: "topRight"
            });
        }
    </script>

<?php elseif($general->alert == 2): ?>
    <!-- Toastr -->
    <link rel="stylesheet" href="<?php echo e(asset('assets/admin/css/toastr.min.css')); ?>">
    <script src="<?php echo e(asset('assets/admin/js/toastr.min.js')); ?>"></script>
    <?php if(session()->has('notify')): ?>
    <?php $__currentLoopData = session('notify'); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $msg): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
    <script type="text/javascript">  toastr.<?php echo e($msg[0]); ?>("<?php echo e($msg[1]); ?>"); </script>
    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    <?php endif; ?>


    <?php if(Session::has('invest')): ?>
        <script type="text/javascript">  toastr.success("<?php echo e(__(Session::get('invest'))); ?>"); </script>
    <?php endif; ?>
    
    <?php if($errors->any()): ?>
        <script>

        <?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
        toastr.error('<?php echo e($error); ?>');
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
    </script>

    <?php endif; ?>
    <script>

        function notify(status,message) {
            toastr[status](message)
        }
    </script>
<?php endif; ?>
<?php /**PATH /home/ectbest/ecoshop.top/core/resources/views/admin/partials/notify.blade.php ENDPATH**/ ?>