⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.13
Server IP:
109.199.105.153
Server:
Linux connect.inboxifs.com 5.15.0-152-generic #162-Ubuntu SMP Wed Jul 23 09:48:42 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
8.2.29
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
ursites
/
public_html
/
storage
/
framework
/
views
/
View File Name :
f5138a9858bfe4d8907d77a09eb64c085599415a.php
<?php $__env->startSection('styles'); ?> <style> .dis-none { display: none; } </style> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <div class="page-header"> <h4 class="page-title"><?php echo e(__('Course Enrolments')); ?></h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href="<?php echo e(route('user-dashboard')); ?>"> <i class="flaticon-home"></i> </a> </li> <li class="separator"> <i class="flaticon-right-arrow"></i> </li> <li class="nav-item"> <a href="#"><?php echo e(__('Course Enrolments')); ?></a> </li> </ul> </div> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <div class="row"> <div class="col-lg-4"> <div class="card-title"><?php echo e(__('Course Enrolments')); ?></div> </div> <div class="col-lg-6 offset-lg-2"> <button class="btn btn-danger btn-sm float-right d-none bulk-delete ml-3 mt-1" data-href="<?php echo e(route('user.course_enrolments.bulk_delete')); ?>"> <i class="flaticon-interface-5"></i> <?php echo e(__('Delete')); ?> </button> <form class="float-right ml-3" action="<?php echo e(route('user.course_enrolments')); ?>" method="GET"> <input type="hidden" name="status" value="<?php echo e(!empty(request()->input('status')) ? request()->input('status') : ''); ?>"> <div class="row"> <div class="col-lg-6"> <input name="order_id" type="text" class="form-control" placeholder="Search By Order ID" value="<?php echo e(!empty(request()->input('order_id')) ? request()->input('order_id') : ''); ?>"> </div> <div class="col-lg-6 pl-0"> <input name="course" type="text" class="form-control" placeholder="Search By Course Name" value="<?php echo e(!empty(request()->input('course')) ? request()->input('course') : ''); ?>"> </div> </div> <button class="dis-none" type="submit"></button> </form> <form id="searchByStatusForm" class="float-right d-flex flex-row align-items-center" action="<?php echo e(route('user.course_enrolments')); ?>" method="GET"> <input type="hidden" name="order_id" value="<?php echo e(!empty(request()->input('order_id')) ? request()->input('order_id') : ''); ?>"> <input type="hidden" name="course" value="<?php echo e(!empty(request()->input('course')) ? request()->input('course') : ''); ?>"> <label class="mr-2"><?php echo e(__('Payment')); ?></label> <select class="form-control" name="status" onchange="document.getElementById('searchByStatusForm').submit()"> <option value="" <?php echo e(empty(request()->input('status')) ? 'selected' : ''); ?>> <?php echo e(__('All')); ?> </option> <option value="completed" <?php echo e(request()->input('status') == 'completed' ? 'selected' : ''); ?>> <?php echo e(__('Completed')); ?> </option> <option value="pending" <?php echo e(request()->input('status') == 'pending' ? 'selected' : ''); ?>> <?php echo e(__('Pending')); ?> </option> <option value="rejected" <?php echo e(request()->input('status') == 'rejected' ? 'selected' : ''); ?>> <?php echo e(__('Rejected')); ?> </option> </select> </form> </div> </div> </div> <div class="card-body"> <div class="row"> <div class="col-lg-12"> <?php if(count($enrolments) == 0): ?> <h3 class="text-center mt-2"> <?php echo e(__('NO ENROLMENT FOUND!')); ?></h3> <?php else: ?> <div class="table-responsive"> <table class="table table-striped mt-3"> <thead> <tr> <th scope="col"> <input type="checkbox" class="bulk-check" data-val="all"> </th> <th scope="col"><?php echo e(__('Order ID.')); ?></th> <th scope="col"><?php echo e(__('Course')); ?></th> <th scope="col"><?php echo e(__('Username')); ?></th> <th scope="col"><?php echo e(__('Paid Via')); ?></th> <th scope="col"> <?php echo e(__('Payment Status')); ?></th> <th scope="col"><?php echo e(__('Attachment')); ?></th> <th scope="col"><?php echo e(__('Actions')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $enrolments; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $enrolment): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <input type="checkbox" class="bulk-check" data-val="<?php echo e($enrolment->id); ?>"> </td> <td><?php echo e('#' . $enrolment->order_id); ?></td> <?php $course = $enrolment->course()->first(); $courseInfo = $course ->courseInformation() ->where('user_id', Auth::guard('web')->user()->id) ->where('language_id', $defaultLang->id) ->first(); $title = $courseInfo->title; $slug = $courseInfo->slug; $user = $enrolment->userInfo()->first(); ?> <td> <a href="<?php echo e(route('front.user.course.details', [$user->username, 'slug' => $slug])); ?>" target="_blank"> <?php echo e(strlen($title) > 35 ? mb_substr($title, 0, 35, 'utf-8') . '...' : $title); ?> </a> </td> <td> <a href="<?php echo e(route('register.customer.view', [$enrolment->customer->id])); ?>"><?php echo e($enrolment->customer->username); ?></a> </td> <td><?php echo e(!is_null($enrolment->payment_method) ? $enrolment->payment_method : '-'); ?> </td> <td> <?php if($enrolment->gateway_type == 'online' && $enrolment->payment_status != 'free'): ?> <?php if($enrolment->payment_method == 'Iyzico' && $enrolment->payment_status == 'pending'): ?> <h2 class="d-inline-block"><span class="badge badge-warning"><?php echo e(__('Pending')); ?></span> </h2> <?php else: ?> <h2 class="d-inline-block"><span class="badge badge-success"><?php echo e(__('Completed')); ?></span> </h2> <?php endif; ?> <?php elseif($enrolment->payment_status == 'free'): ?> <h2 class="d-inline-block"><span class="badge badge-primary"><?php echo e(__('Free')); ?></span> </h2> <?php elseif($enrolment->gateway_type == 'offline'): ?> <form id="paymentStatusForm-<?php echo e($enrolment->id); ?>" class="d-inline-block" action="<?php echo e(route('user.course_enrolment.update_payment_status', ['id' => $enrolment->id])); ?>" method="post"> <?php echo csrf_field(); ?> <select class="form-control form-control-sm <?php if($enrolment->payment_status == 'completed'): ?> bg-success <?php elseif($enrolment->payment_status == 'pending'): ?> bg-warning text-dark <?php else: ?> bg-danger <?php endif; ?>" name="payment_status" onchange="document.getElementById('paymentStatusForm-<?php echo e($enrolment->id); ?>').submit()"> <option value="completed" <?php echo e($enrolment->payment_status == 'completed' ? 'selected' : ''); ?>> <?php echo e(__('Completed')); ?> </option> <option value="pending" <?php echo e($enrolment->payment_status == 'pending' ? 'selected' : ''); ?>> <?php echo e(__('Pending')); ?> </option> <option value="rejected" <?php echo e($enrolment->payment_status == 'rejected' ? 'selected' : ''); ?>> <?php echo e(__('Rejected')); ?> </option> </select> </form> <?php else: ?> - <?php endif; ?> </td> <td> <?php if(!is_null($enrolment->attachment)): ?> <a class="btn btn-sm btn-info" href="#" data-toggle="modal" data-target="#attachmentModal-<?php echo e($enrolment->id); ?>"> <?php echo e(__('Show')); ?> </a> <?php else: ?> - <?php endif; ?> </td> <td> <div class="dropdown"> <button class="btn btn-secondary btn-sm dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <?php echo e(__('Select')); ?> </button> <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> <a href="<?php echo e(route('user.course_enrolment.details', ['id' => $enrolment->id])); ?>" class="dropdown-item"> <?php echo e(__('Details')); ?> </a> <a href="<?php echo e(asset(\App\Constants\Constant::WEBSITE_ENROLLMENT_INVOICE . $enrolment->invoice)); ?>" class="dropdown-item" target="_blank"> <?php echo e(__('Invoice')); ?> </a> <form class="deleteform d-inline-block" action="<?php echo e(route('user.course_enrolment.delete', ['id' => $enrolment->id])); ?>" method="post"> <?php echo csrf_field(); ?> <button type="submit" class="deletebtn"> <?php echo e(__('Delete')); ?> </button> </form> </div> </div> </td> </tr> <?php if ($__env->exists('user.course_management.enrolment.show-attachment')) echo $__env->make('user.course_management.enrolment.show-attachment', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php endif; ?> </div> </div> </div> <div class="card-footer text-center"> <div class="d-inline-block mt-3"> <?php echo e($enrolments->appends([ 'order_id' => request()->input('order_id'), 'status' => request()->input('status'), 'course' => request()->input('course'), ])->links()); ?> </div> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php echo $__env->make('user.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/1152718.cloudwaysapps.com/cxvqucrmbq/public_html/resources/views/user/course_management/enrolment/index.blade.php ENDPATH**/ ?>