<!doctype html>

<html lang="en" class="light-style layout-navbar-fixed layout-menu-fixed layout-compact" dir="ltr"
    data-theme="theme-default" data-assets-path="../../assets/" data-template="vertical-menu-template" data-style="light">

<head>
    <meta charset="utf-8" />
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />

    <title>Manage Approval</title>
    <?php echo $__env->make('source.header', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
</head>
<?php
    $userType = Auth::user()->userType;
    $permissions = Auth::user()->permissions;
?>

<body>
    <div class="layout-wrapper layout-content-navbar">
        <div class="layout-container">
            <?php echo $__env->make('source.inlcude.superadminsidebar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
          
          <meta name="csrf-token" content="<?php echo e(csrf_token()); ?>">
          
            <div class="layout-page">
                <?php echo $__env->make('source.inlcude.superadmintopbar', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                <?php if($userType == 'superAdmin'): ?>
                    <?php echo $__env->make('pages.allpages.settings.manage_approval_settings', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                <?php else: ?>
                    <?php
                        $userRolesArray = $getUserRole->pluck('roleName')->toArray();
                    ?>

                    <?php if(in_array($userType, $userRolesArray)): ?>
                        <?php
                            $usersDataPer = $permissions;
                            $usersDataPer = json_decode($usersDataPer, true);
                        ?>

                        <?php if(in_array('manage', $usersDataPer)): ?>
                            <?php echo $__env->make('pages.allpages.settings.manage_approval_settings', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        <?php else: ?>
                            <?php echo $__env->make('pages.allpages.401', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                        <?php endif; ?>
                    <?php else: ?>
                        <?php echo $__env->make('pages.allpages.401', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                    <?php endif; ?>
                <?php endif; ?>
                <?php echo $__env->make('source.pagefooter', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
            </div>
        </div>
        <div class="layout-overlay layout-menu-toggle"></div>
        <div class="drag-target"></div>
    </div>
    <?php echo $__env->make('source.inlcude.loader', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
    <?php echo $__env->make('source.footer', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
</body>

</html>
<?php /**PATH /home/techhdyz/swd.technathi.cloud/resources/views/pages/permission/settings/manage_approval_settings_per.blade.php ENDPATH**/ ?>