|
Server : Apache/2.4.41 (Ubuntu) System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.2.12 Disable Function : NONE Directory : /var/www/sld.edukrypt.app/storage/framework/views/ |
Upload File : |
<?php $__env->startSection('title','profile'); ?>
<?php $__env->startSection('content'); ?>
<div class="wrapper home-section data-adjust" style="overflow-x:hidden;">
<div class="container-fluid cf-set" style="position:relative;left:50px;">
<div class="row align-items-center justify-content-between pt-20 mt-2">
<?php if(!empty(Session::get('web_loggedIn')['username'])): ?>
<div class="col-lg-6 wow fadeInDown" data-wow-duration="1s" data-wow-delay="0.2s" style="visibility: visible; animation-duration: 1s; animation-delay: 0.2s; animation-name: fadeInDown;">
<div class="red-box-profile d-flex justify-content-between align-items-center"><div class="text-white">Name- <?php echo e(Session::get('web_loggedIn')['username']); ?></div></div>
</div>
<?php endif; ?>
<?php if(!empty(Session::get('web_loggedIn')['email'])): ?>
<div class="col-lg-6 wow fadeInDown" data-wow-duration="1s" data-wow-delay="0.2s" style="visibility: visible; animation-duration: 1s; animation-delay: 0.2s; animation-name: fadeInDown;">
<div class="red-box-profile d-flex justify-content-between align-items-center"><div class="text-white">Email- <?php echo e(Session::get('web_loggedIn')['email']); ?></div></div>
</div>
<?php endif; ?>
</div>
<div class="row align-items-center justify-content-between headingsetporo pt-20 mt-3">
<?php if(!$policies->isEmpty()): ?>
<?php
$colorArr = ['light-yellow-bg','green-bg','light-pink-bg','light-blue-bg','dark-blue-bg',''];
?>
<?php $__currentLoopData = $policies; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$policy): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php
$user_id = Request::session()->get('web_loggedIn')['id'];
$score = App\Helpers\Frontend::getScoreByPolicyId($user_id,$policy->id);
//for random color
$key = array_rand($colorArr);
?>
<div class="col-lg-4 mb-4 wow fadeInDown " data-wow-duration="1s" data-wow-delay="0.2s">
<div class="profile-enam <?php echo e($colorArr[$key]); ?> ">
<div class="d-flex align-items-center justify-content-between">
<div class="content-profile">
<h6 class="home-box-heading"><?php echo e($policy->name_en); ?></h6>
<?php echo (!empty($score))? '<span class="text-success">Completed</span>':'<span class="text-danger">Not Completed</span>'; ?>
</div>
<div class="home-box-img star-design">
<div class="content-position"> <?php echo e((!empty($score))?$score->score."/".$score->total_question:0); ?> </div>
<!-- <img width="40px" src="<?php echo e(asset('public/frontend/img/star42.png')); ?>" alt="" /> -->
</div>
</div>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</div>
<div class="row mt-2 wow fadeInDown" data-wow-duration="1s" data-wow-delay="0.2s">
<div class="col-lg-12">
<div class=" d-flex justify-content-center">
<button class="button_su">
<span class="su_button_circle">
</span>
<a href="javascript://" onclick="window.history.go(-1); return false;"class="button_su_inner" target="_top"><span class="button_text_container"><i class="bi bi-arrow-left"></i> Back </span> </a>
<?php
?>
<?php
// }else{
?>
<?php //} ?>
</button>
<button class="button_su">
<span class="su_button_circle">
</span>
<a href="<?php echo e(route('web.logout')); ?>" class="button_su_inner" ><span class="button_text_container"> Logout <i class="bi bi-box-arrow-right"></i></span> </a>
</button>
</div>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
<?php $__env->stopPush(); ?>
<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/sld.edukrypt.app/resources/views/profile.blade.php ENDPATH**/ ?>