⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
public_html
/
storage
/
framework
/
views
/
View File Name :
f3b82b8ee03201552430ea45d61289bd30cfc999.php
<?php $default = \App\Models\User\Language::where('is_default', 1)->first(); $user = Auth::guard('web')->user(); $package = \App\Http\Helpers\UserPermissionHelper::currentPackagePermission($user->id); if (!empty($user)) { $permissions = \App\Http\Helpers\UserPermissionHelper::packagePermission($user->id); $permissions = json_decode($permissions, true); } ?> <?php $__env->startSection('content'); ?> <div class="mt-2 mb-4"> <h2 class="pb-2"><?php echo e($keywords['Welcome_back'] ?? 'Welcome back'); ?>, <?php echo e(Auth::guard('web')->user()->first_name); ?> <?php echo e(Auth::guard('web')->user()->last_name); ?>!</h2> </div> <?php if(is_null($package)): ?> <?php $pendingMemb = \App\Models\Membership::query() ->where([['user_id', '=', Auth::id()], ['status', 0]]) ->whereYear('start_date', '<>', '9999') ->orderBy('id', 'DESC') ->first(); $pendingPackage = isset($pendingMemb) ? \App\Models\Package::query()->findOrFail($pendingMemb->package_id) : null; ?> <?php if($pendingPackage): ?> <div class="alert alert-warning"> <?php echo e($keywords['pending_package_text'] ?? 'You have requested a package which needs an action (Approval / Rejection) by Admin. You will be notified via mail once an action is taken.'); ?> </div> <div class="alert alert-warning"> <strong><?php echo e($keywords['pending_package'] ?? 'Pending Package'); ?>: </strong> <?php echo e($pendingPackage->title); ?> <span class="badge badge-secondary"><?php echo e($pendingPackage->term); ?></span> <span class="badge badge-warning"><?php echo e($keywords['Decision_Pending'] ?? 'Decision Pending'); ?> </span> </div> <?php else: ?> <div class="alert alert-warning"> <?php echo e($keywords['expired_package'] ?? 'Your membership is expired. Please purchase a new package / extend the current package'); ?> </div> <?php endif; ?> <?php else: ?> <div class="row justify-content-center align-items-center mb-1"> <div class="col-12"> <div class="alert border-left border-primary text-dark"> <?php if($package_count >= 2): ?> <?php if($next_membership->status == 0): ?> <strong class="text-danger"><?php echo e($keywords['pending_package_text'] ?? 'You have requested a package which needs an action (Approval / Rejection) by Admin. You will be notified via mail once an action is taken.'); ?></strong><br> <?php elseif($next_membership->status == 1): ?> <strong class="text-danger"><?php echo e($keywords['package_activation_warning'] ?? 'You have another package to activate after the current package expires. You cannot purchase / extend any package, until the next package is activated'); ?> </strong><br> <?php endif; ?> <?php endif; ?> <strong><?php echo e($keywords['Current_Package'] ?? 'Current Package'); ?>: </strong> <?php echo e($current_package->title); ?> <span class="badge badge-secondary"><?php echo e($current_package->term); ?></span> <?php if($current_membership->is_trial == 1): ?> (<?php echo e($keywords['Expire_Date'] ?? 'Expire Date '); ?> : <?php echo e(Carbon\Carbon::parse($current_membership->expire_date)->format('M-d-Y')); ?>) <span class="badge badge-primary"><?php echo e($keywords['Trial'] ?? 'Trial'); ?></span> <?php else: ?> (<?php echo e($keywords['Expire_Date'] ?? 'Expire Date '); ?>: <?php echo e($current_package->term === 'lifetime' ? 'Lifetime' : Carbon\Carbon::parse($current_membership->expire_date)->format('M-d-Y')); ?>) <?php endif; ?> <?php if($package_count >= 2): ?> <div> <strong><?php echo e($keywords['Next_Package_To_Activate'] ?? 'Next Package To Activate'); ?>: </strong> <?php echo e($next_package->title); ?> <span class="badge badge-secondary"><?php echo e($next_package->term); ?></span> <?php if($current_package->term != 'lifetime' && $current_membership->is_trial != 1): ?> ( <?php echo e($keywords['Activation_Date'] ?? 'Activation Date'); ?>: <?php echo e(Carbon\Carbon::parse($next_membership->start_date)->format('M-d-Y')); ?>, <?php echo e($keywords['Expire_Date'] ?? 'Expire Date '); ?>: <?php echo e($next_package->term === 'lifetime' ? 'Lifetime' : Carbon\Carbon::parse($next_membership->expire_date)->format('M-d-Y')); ?>) <?php endif; ?> <?php if($next_membership->status == 0): ?> <span class="badge badge-warning"><?php echo e($keywords['Decision_Pending'] ?? 'Decision Pending'); ?></span> <?php endif; ?> </div> <?php endif; ?> </div> </div> </div> <?php endif; ?> <div class="row"> <?php if(!empty($permissions) && in_array('Skill', $permissions)): ?> <div class="col-sm-6 col-md-4"> <a class="card card-stats card-round" href="<?php echo e(route('user.skill.index')); ?>"> <div class="card-body"> <div class="row"> <div class="col-5"> <div class="icon-big text-center"> <i class="fas fa-cogs"></i> </div> </div> <div class="col-7 col-stats"> <div class="numbers"> <p class="card-category"><?php echo e($keywords['Skills'] ?? 'Skills'); ?></p> <h4 class="card-title"><?php echo e($skills); ?></h4> </div> </div> </div> </div> </a> </div> <?php endif; ?> <?php if(!empty($permissions) && in_array('Portfolio', $permissions)): ?> <div class="col-sm-6 col-md-4"> <a class="card card-stats card-warning card-round" href="<?php echo e(route('user.portfolio.index')); ?>"> <div class="card-body"> <div class="row"> <div class="col-5"> <div class="icon-big text-center"> <i class="fas fa-address-card"></i> </div> </div> <div class="col-7 col-stats"> <div class="numbers"> <p class="card-category"><?php echo e($keywords['Portfolios'] ?? 'Portfolios'); ?></p> <h4 class="card-title"><?php echo e($portfolios); ?></h4> </div> </div> </div> </div> </a> </div> <?php endif; ?> <?php if(!empty($permissions) && in_array('Service', $permissions)): ?> <div class="col-sm-6 col-md-4"> <a class="card card-stats card-info card-round" href="<?php echo e(route('user.services.index')); ?>"> <div class="card-body"> <div class="row"> <div class="col-5"> <div class="icon-big text-center"> <i class="fas fa-user-shield"></i> </div> </div> <div class="col-7 col-stats"> <div class="numbers"> <p class="card-category"><?php echo e($keywords['Services'] ?? 'Services'); ?></p> <h4 class="card-title"><?php echo e($services); ?></h4> </div> </div> </div> </div> </a> </div> <?php endif; ?> <?php if(!empty($permissions) && in_array('Testimonial', $permissions)): ?> <div class="col-sm-6 col-md-4"> <a class="card card-stats card-primary card-round" href="<?php echo e(route('user.testimonials.index')); ?>"> <div class="card-body"> <div class="row"> <div class="col-5"> <div class="icon-big text-center"> <i class="far fa-comment"></i> </div> </div> <div class="col-7 col-stats"> <div class="numbers"> <p class="card-category"><?php echo e($keywords['Testimonial'] ?? 'Testimonial'); ?></p> <h4 class="card-title"><?php echo e($testimonials); ?></h4> </div> </div> </div> </div> </a> </div> <?php endif; ?> <?php if(!empty($permissions) && in_array('Blog', $permissions)): ?> <div class="col-sm-6 col-md-4"> <a class="card card-stats card-success card-round" href="<?php echo e(route('user.blog.index')); ?>"> <div class="card-body"> <div class="row"> <div class="col-5"> <div class="icon-big text-center"> <i class="fas fa-file-alt"></i> </div> </div> <div class="col-7 col-stats"> <div class="numbers"> <p class="card-category"><?php echo e($keywords['Blogs'] ?? 'Blogs'); ?></p> <h4 class="card-title"><?php echo e($blogs); ?></h4> </div> </div> </div> </div> </a> </div> <?php endif; ?> <?php if(!empty($permissions) && in_array('Experience', $permissions)): ?> <div class="col-sm-6 col-md-4"> <a class="card card-stats card-danger card-round" href="<?php echo e(route('user.job.experiences.index')); ?>"> <div class="card-body"> <div class="row"> <div class="col-5"> <div class="icon-big text-center"> <i class="fas fa-book"></i> </div> </div> <div class="col-7 col-stats"> <div class="numbers"> <p class="card-category"><?php echo e($keywords['Job_Experiences'] ?? 'Job Experiences'); ?></p> <h4 class="card-title"><?php echo e($job_experiences); ?></h4> </div> </div> </div> </div> </a> </div> <?php endif; ?> <?php if(!empty($permissions) && in_array('Achievements', $permissions)): ?> <div class="col-sm-6 col-md-4"> <a class="card card-stats card-secondary card-round" href="<?php echo e(route('user.achievement.index')); ?>"> <div class="card-body"> <div class="row"> <div class="col-5"> <div class="icon-big text-center"> <i class="fas fa-book"></i> </div> </div> <div class="col-7 col-stats"> <div class="numbers"> <p class="card-category"><?php echo e($keywords['Achievements'] ?? 'Achievements'); ?></p> <h4 class="card-title"><?php echo e($achievements); ?></h4> </div> </div> </div> </div> </a> </div> <?php endif; ?> <?php if(!empty($permissions) && in_array('Follow/Unfollow', $permissions)): ?> <div class="col-sm-6 col-md-4"> <a class="card card-stats card-default card-round" href="<?php echo e(route('user.follower.list')); ?>"> <div class="card-body"> <div class="row"> <div class="col-5"> <div class="icon-big text-center"> <i class="fas fa-book"></i> </div> </div> <div class="col-7 col-stats"> <div class="numbers"> <p class="card-category"><?php echo e($keywords['Followers'] ?? 'Followers'); ?></p> <h4 class="card-title"><?php echo e($followers); ?></h4> </div> </div> </div> </div> </a> </div> <?php endif; ?> <?php if(!empty($permissions) && in_array('Follow/Unfollow', $permissions)): ?> <div class="col-sm-6 col-md-4"> <a class="card card-stats card-primary card-round" href="<?php echo e(route('user.following.list')); ?>"> <div class="card-body"> <div class="row"> <div class="col-5"> <div class="icon-big text-center"> <i class="fas fa-book"></i> </div> </div> <div class="col-7 col-stats"> <div class="numbers"> <p class="card-category"><?php echo e($keywords['Following'] ?? 'Followings'); ?></p> <h4 class="card-title"><?php echo e($followings); ?></h4> </div> </div> </div> </div> </a> </div> <?php endif; ?> </div> <div class="row"> <div class="col-lg-6"> <div class="row row-card-no-pd"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="card-head-row"> <h4 class="card-title"><?php echo e($keywords['Recent_Payment_Logs'] ?? 'Recent Payment Logs'); ?> </h4> </div> <p class="card-category"> <?php echo e($keywords['10_latest_payment_logs'] ?? '10 latest payment logs'); ?> </p> </div> <div class="card-body"> <div class="row"> <div class="col-lg-12"> <?php if(count($memberships) == 0): ?> <h3 class="text-center"> <?php echo e($keywords['NO_PAYMENT_LOG_FOUND'] ?? 'NO PAYMENT LOG FOUND'); ?></h3> <?php else: ?> <div class="table-responsive"> <table class="table table-striped mt-3"> <thead> <tr> <th scope="col"> <?php echo e($keywords['Transaction_Id'] ?? 'Transaction Id'); ?></th> <th scope="col"><?php echo e($keywords['Amount'] ?? 'Amount'); ?></th> <th scope="col"> <?php echo e($keywords['Payment_Status'] ?? 'Payment Status'); ?></th> <th scope="col"><?php echo e($keywords['Actions'] ?? 'Actions'); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $memberships; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $membership): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e(strlen($membership->transaction_id) > 30 ? mb_substr($membership->transaction_id, 0, 30, 'UTF-8') . '...' : $membership->transaction_id); ?> </td> <?php $bex = json_decode($membership->settings); ?> <td> <?php if($membership->price == 0): ?> <?php echo e($keywords['Free'] ?? 'Free'); ?> <?php else: ?> <?php echo e(format_price($membership->price)); ?> <?php endif; ?> </td> <td> <?php if($membership->status == 1): ?> <h3 class="d-inline-block badge badge-success"> <?php echo e($keywords['Success'] ?? 'Success'); ?> </h3> <?php elseif($membership->status == 0): ?> <h3 class="d-inline-block badge badge-warning"> <?php echo e($keywords['Pending'] ?? 'Pending'); ?> </h3> <?php elseif($membership->status == 2): ?> <h3 class="d-inline-block badge badge-danger"> <?php echo e($keywords['Rejected'] ?? 'Rejected'); ?> </h3> <?php endif; ?> </td> <td> <?php if(!empty($membership->name !== 'anonymous')): ?> <a class="btn btn-sm btn-info" href="#" data-toggle="modal" data-target="#detailsModal<?php echo e($membership->id); ?>"> <?php echo e($keywords['Details'] ?? 'Details'); ?></a> <?php else: ?> - <?php endif; ?> </td> </tr> <div class="modal fade" id="detailsModal<?php echo e($membership->id); ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"> <div class="modal-dialog" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLabel"><?php echo e($keywords['Owner_Details'] ?? 'Owner Details'); ?> </h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <h3 class="text-warning"><?php echo e($keywords['Member_details'] ?? 'Member details'); ?></h3> <label><?php echo e($keywords['Name'] ?? 'Name'); ?></label> <p><?php echo e($membership->user->first_name . ' ' . $membership->user->last_name); ?> </p> <label><?php echo e($keywords['Email'] ?? 'Email'); ?></label> <p><?php echo e($membership->user->email); ?></p> <label><?php echo e($keywords['Phone'] ?? 'Phone'); ?></label> <p><?php echo e($membership->user->phone_number); ?></p> <h3 class="text-warning"><?php echo e($keywords['Payment_details'] ?? 'Payment details'); ?></h3> <p><strong><?php echo e($keywords['Cost'] ?? 'Cost'); ?>: </strong> <?php echo e($membership->price == 0 ? 'Free' : $membership->price); ?> </p> <p><strong><?php echo e($keywords['Currency'] ?? 'Currency'); ?>: </strong> <?php echo e($membership->currency); ?> </p> <p><strong><?php echo e($keywords['Method'] ?? 'Method'); ?>: </strong> <?php echo e($membership->payment_method); ?> </p> <h3 class="text-warning"><?php echo e($keywords['Package_Details'] ?? 'Package Details'); ?></h3> <p><strong><?php echo e($keywords['Title'] ?? 'Title'); ?>: </strong><?php echo e($membership->package->title); ?> </p> <p><strong><?php echo e($keywords['Term'] ?? 'Term'); ?>: </strong> <?php echo e($membership->package->term); ?> </p> <p><strong><?php echo e($keywords['Start_Date'] ?? 'Start Date'); ?>: </strong> <?php if(\Illuminate\Support\Carbon::parse($membership->start_date)->format('Y') == '9999'): ?> <span class="badge badge-danger"><?php echo e($keywords['Never_Activated'] ?? 'Never Activated'); ?></span> <?php else: ?> <?php echo e(\Illuminate\Support\Carbon::parse($membership->start_date)->format('M-d-Y')); ?> <?php endif; ?> </p> <p><strong><?php echo e($keywords['Expire_Date'] ?? 'Expire Date'); ?>: </strong> <?php if(\Illuminate\Support\Carbon::parse($membership->start_date)->format('Y') == '9999'): ?> - <?php else: ?> <?php if($membership->modified == 1): ?> <?php echo e(\Illuminate\Support\Carbon::parse($membership->expire_date)->addDay()->format('M-d-Y')); ?> <span class="badge badge-primary btn-xs"><?php echo e($keywords['modified_by_Admin'] ?? 'modified by Admin'); ?></span> <?php else: ?> <?php echo e($membership->package->term == 'lifetime' ? 'Lifetime' : \Illuminate\Support\Carbon::parse($membership->expire_date)->format('M-d-Y')); ?> <?php endif; ?> <?php endif; ?> </p> <p> <strong><?php echo e($keywords['Purchase_Type'] ?? 'Purchase Type'); ?>: </strong> <?php if($membership->is_trial == 1): ?> <?php echo e($keywords['Trial'] ?? 'Trial'); ?> <?php else: ?> <?php echo e($membership->price == 0 ? $keywords['Free'] ?? 'Free' : $keywords['Regular'] ?? 'Regular'); ?> <?php endif; ?> </p> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal"> <?php echo e($keywords['Close'] ?? 'Close'); ?> </button> </div> </div> </div> </div> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php endif; ?> </div> </div> </div> </div> </div> </div> </div> <?php if(!empty($permissions) && in_array('Follow/Unfollow', $permissions)): ?> <div class="col-lg-6"> <div class="row row-card-no-pd"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="card-head-row"> <h4 class="card-title"> <?php echo e($keywords['Latest_Followings'] ?? 'Latest Followings'); ?></h4> </div> <p class="card-category"> <?php echo e($keywords['10_latest_followings'] ?? '10 latest followings'); ?> </p> </div> <div class="card-body"> <div class="row"> <div class="col-md-12"> <div class="table-responsive"> <table class="table table-striped mt-3"> <thead> <tr> <th scope="col"><?php echo e($keywords['Image'] ?? 'Image'); ?></th> <th scope="col"><?php echo e($keywords['User_name'] ?? 'User name'); ?></th> <th scope="col"><?php echo e($keywords['Actions'] ?? 'Actions'); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><img src="<?php echo e(asset('assets/front/img/user/' . $user->photo)); ?>" alt="" width="40"></td> <td><?php echo e(strlen($user->username) > 30 ? mb_substr($user->username, 0, 30, 'UTF-8') . '...' : $user->username); ?> </td> <td> <a target="_blank" class="btn btn-secondary btn-sm" href="<?php echo e(route('front.user.detail.view', $user->username)); ?>"> <span class="btn-label"> <i class="fas fa-eye"></i> </span> <?php echo e($keywords['View'] ?? 'View'); ?> </a> <a class="btn btn-danger btn-sm" href="<?php echo e(route('user.unfollow', $user->id)); ?>"> <?php echo e($keywords['Unfollow'] ?? 'Unfollow'); ?> </a> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> <?php endif; ?> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('user.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/public_html/resources/views/user/dashboard.blade.php ENDPATH**/ ?>