
<?php $__env->startSection('content'); ?>
<div class="content">
    <div class="row">
        <div class="col-3">
            <?php echo $__env->make('side_menu', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
        </div>
        <div class="col-9">
            <div class="col-md-12 welcome-header">
                Dear <strong>[ <?php echo e(Auth::user()->name); ?> ]</strong>, logged in as <strong>[ <?php echo e($userRole->role); ?> ]</strong> from <strong>[ <?php echo e($institution->institution_name); ?> ]</strong>
            </div>
            <div class="row">
                <div class="col-2">
                    <img src="/images/stake_left.jfif" width="120px" alt="SRC" style="float: right;" />
                </div>
                <div class="col-md-9">
                    <p>
                        + Welcome to the SRC Compliance Management System.
                    </p>
                    <p>
                        In this regard, the commission carries out self evaluation surveys and questionnaires among its stakeholders periodically.
                    </p>
                    <?php if($user->user_role_id == 2): ?>
                    <?php if(count($answers) == 0): ?>
                    <p>
                        Kindly fill in all the required data to the best of best of your
                        knowledge and cross check before submission.<br /><br />
                        Thank you!<br /><br />
                        SRC
                    </p>
                    <div class="row">
                        <div class="col-6">
                            <a href="/stakeholders/questionnaire" style="float: left;">
                                <button class="btn float-right search-bt">
                                    Start Questionnaire
                                </button>
                            </a>
                        </div>
                        <div class="col-6">
                            <a href="#" style="float: right;padding-top: 10px;">
                                Download System User Guide
                            </a>
                        </div>
                    </div>
                    </p>
                    <?php else: ?>
                    <?php if($answers->first()->answered_by == $user->user_id && $answers->first()->returned_for_review == 1): ?>
                    <p>Your reviewer has returned the questionnaire to you with the suggestions below:</p>

                    <?php if($answers->first()->review_comments != null): ?>
                    <?php echo $answers[0]->review_comments; ?>
                    <?php else: ?>
                    No Comments. Please liaise with your reviewer for clarifications. Thank you.
                    <?php endif; ?>
                    <?php endif; ?>
                    <?php endif; ?>
                    <?php elseif($user->user_role_id == 3): ?>
                    <?php if($answers != null): ?>
                    <p>
                        A questionnaire has been submitted by your clerk for your review and submission to the commission.
                        Please review and guide your clerk for any correction before submitting to the commission.<br /><br />
                        Thank you!<br /><br />
                        SRC
                    <div>
                        <a href="/stakeholders/questionnaire/review">
                            <button class="btn float-right search-bt">
                                Review
                            </button>
                        </a>
                    </div>
                    </p>
                    <?php else: ?>
                    <p>No questionnaire is pending review. You can liaise with your clerk
                        to ensure that no questionnaire from the commission is pending for action
                        by your institution. <br /><br />Thank you.<br /><br />SRC</p>
                    <?php endif; ?>
                    <?php endif; ?>
                </div>
                <div class="col-1">
                    <img src="/images/stake_right.jfif" width="100px" alt="SRC" />
                </div>
            </div>
            <div class="col-md-12" style="border-top: 2px solid #888;"></div>
        </div>

    </div>
</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\src-compliance\resources\views/stakeholders/welcome.blade.php ENDPATH**/ ?>