⚝
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 :
cb165ce0c06dfb83b4bf7a838611093ead63daff.php
<?php if(Session::has('admin_lang')): ?> <?php $admin_lang = Session::get('admin_lang'); $cd = str_replace('admin_', '', $admin_lang); $default = \App\Models\Language::where('code', $cd)->first(); ?> <?php else: ?> <?php $default = \App\Models\Language::where('is_default', 1)->first(); ?> <?php endif; ?> <?php $__env->startSection('content'); ?> <div class="page-header"> <h4 class="page-title"> <?php echo e(__('Registered Users')); ?> </h4> <ul class="breadcrumbs"> <li class="nav-home"> <a href="<?php echo e(route('admin.dashboard') . '?language=' . $default->code); ?>"> <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(__('Registered Users')); ?></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-6"> <div class="card-title"> <?php echo e(__('Registered Users')); ?> </div> </div> <div class="col-lg-6 mt-2 mt-lg-0"> <button class="btn btn-danger float-lg-right float-none btn-sm ml-2 mt-1 d-none bulk-delete" data-href="<?php echo e(route('register.user.bulk.delete')); ?>"><i class="flaticon-interface-5"></i> <?php echo e(__('Delete')); ?></button> <button class="btn btn-primary float-lg-right float-none btn-sm ml-2 mt-1" data-toggle="modal" data-target="#addUserModal"><i class="fas fa-plus"></i> <?php echo e(__('Add User')); ?></button> <form action="<?php echo e(url()->full()); ?>" class="float-lg-right float-none"> <input type="text" name="term" class="form-control min-w-250" value="<?php echo e(request()->input('term')); ?>" placeholder="<?php echo e(__('Search by Username / Email')); ?>"> </form> </div> </div> </div> <div class="card-body"> <div class="row"> <div class="col-lg-12"> <?php if(count($users) == 0): ?> <h3 class="text-center"><?php echo e(__('NO USER 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(__('Username')); ?></th> <th scope="col"><?php echo e(__('Email')); ?></th> <th scope="col"><?php echo e(__('Featured')); ?></th> <th scope="col"><?php echo e(__('Preview Template')); ?></th> <th scope="col"><?php echo e(__('Email Status')); ?></th> <th scope="col"><?php echo e(__('Account')); ?></th> <td scope="col"><?php echo e(__('Action')); ?></td> </tr> </thead> <tbody> <?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td> <input type="checkbox" class="bulk-check" data-val="<?php echo e($user->id); ?>"> </td> <td><?php echo e($user->username); ?></td> <td><?php echo e($user->email); ?></td> <td> <form id="userFrom<?php echo e($user->id); ?>" class="d-inline-block" action="<?php echo e(route('register.user.featured')); ?>" method="post"> <?php echo csrf_field(); ?> <select class="form-control <?php echo e($user->featured == 1 ? 'bg-success' : 'bg-danger'); ?>" name="featured" onchange="document.getElementById('userFrom<?php echo e($user->id); ?>').submit();"> <option value="1" <?php echo e($user->featured == 1 ? 'selected' : ''); ?>> <?php echo e(__('Yes')); ?></option> <option value="0" <?php echo e($user->featured == 0 ? 'selected' : ''); ?>> <?php echo e(__('No')); ?></option> </select> <input type="hidden" name="user_id" value="<?php echo e($user->id); ?>"> </form> </td> <td> <div class="d-inline-block"> <select data-user_id="<?php echo e($user->id); ?>" class="template-select form-control form-control-sm <?php echo e($user->preview_template == 1 ? 'bg-success' : 'bg-danger'); ?>" name="preview_template"> <option value="1" <?php echo e($user->preview_template == 1 ? 'selected' : ''); ?>> <?php echo e(__('Yes')); ?></option> <option value="0" <?php echo e($user->preview_template == 0 ? 'selected' : ''); ?>> <?php echo e(__('No')); ?></option> </select> </div> <?php if($user->preview_template == 1): ?> <button type="button" class="btn btn-primary btn-sm" data-toggle="modal" data-target="#templateImgModal<?php echo e($user->id); ?>"><?php echo e(__('Edit')); ?></button> <?php endif; ?> </td> <?php if ($__env->exists('admin.register_user.template-modal')) echo $__env->make('admin.register_user.template-modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <?php if ($__env->exists('admin.register_user.template-image-modal')) echo $__env->make('admin.register_user.template-image-modal', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?> <td> <form id="emailForm<?php echo e($user->id); ?>" class="d-inline-block" action="<?php echo e(route('register.user.email')); ?>" method="post"> <?php echo csrf_field(); ?> <select class="form-control form-control-sm <?php echo e(strtolower($user->email_verified) == 1 ? 'bg-success' : 'bg-danger'); ?>" name="email_verified" onchange="document.getElementById('emailForm<?php echo e($user->id); ?>').submit();"> <option value="1" <?php echo e(strtolower($user->email_verified) == 1 ? 'selected' : ''); ?>> <?php echo e(__('Verified')); ?></option> <option value="0" <?php echo e(strtolower($user->email_verified) == 0 ? 'selected' : ''); ?>> <?php echo e(__('Unverified')); ?></option> </select> <input type="hidden" name="user_id" value="<?php echo e($user->id); ?>"> </form> </td> <td> <form id="statusForm<?php echo e($user->id); ?>" class="d-inline-block" action="<?php echo e(route('register.user.ban')); ?>" method="post"> <?php echo csrf_field(); ?> <select class="form-control form-control-sm <?php echo e($user->status == 1 ? 'bg-success' : 'bg-danger'); ?>" name="status" onchange="document.getElementById('statusForm<?php echo e($user->id); ?>').submit();"> <option value="1" <?php echo e($user->status == 1 ? 'selected' : ''); ?>> <?php echo e(__('Active')); ?></option> <option value="0" <?php echo e($user->status == 0 ? 'selected' : ''); ?>> <?php echo e(__('Deactive')); ?></option> </select> <input type="hidden" name="user_id" value="<?php echo e($user->id); ?>"> </form> </td> <td> <div class="dropdown"> <button class="btn btn-info btn-sm dropdown-toggle" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> <?php echo e(__('Actions')); ?> </button> <div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> <a class="dropdown-item" href="<?php echo e(route('register.user.view', $user->id)); ?>"><?php echo e(__('Details')); ?></a> <a class="dropdown-item" href="<?php echo e(route('register.user.changePass', $user->id)); ?>"><?php echo e(__('Change Password')); ?></a> <button class="editbtn dropdown-item" data-toggle="modal" data-target="#mailModal" data-email="<?php echo e($user->email); ?>"><?php echo e(__('Mail')); ?></button> <form class="deleteform d-block" action="<?php echo e(route('register.user.delete')); ?>" method="post"> <?php echo csrf_field(); ?> <input type="hidden" name="user_id" value="<?php echo e($user->id); ?>"> <button type="submit" class="deletebtn dropdown-item"> <?php echo e(__('Delete')); ?> </button> </form> <form class="d-block" action="<?php echo e(route('register.user.secretLogin')); ?>" method="post" target="_blank"> <?php echo csrf_field(); ?> <input type="hidden" name="user_id" value="<?php echo e($user->id); ?>"> <button class="dropdown-item" role="button"><?php echo e(__('Secret Login')); ?></button> </form> </div> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> <?php endif; ?> </div> </div> </div> <div class="card-footer"> <div class="row"> <div class="d-inline-block mx-auto"> <?php echo e($users->appends(['term' => request()->input('term')])->links()); ?> </div> </div> </div> </div> </div> </div> <!-- Send Mail Modal --> <div class="modal fade" id="mailModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered modal-lg" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle"><?php echo e(__('Send Mail')); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form id="ajaxEditForm" class="" action="<?php echo e(route('admin.custom-domain.mail')); ?>" method="POST"> <?php echo csrf_field(); ?> <div class="form-group"> <label for=""><?php echo e(__('Email Address')); ?> **</label> <input id="inemail" type="text" class="form-control" name="email" value="" placeholder="<?php echo e(__('Enter email')); ?>"> <p id="eerremail" class="mb-0 text-danger em"></p> </div> <div class="form-group"> <label for=""><?php echo e(__('Subject')); ?> **</label> <input id="insubject" type="text" class="form-control" name="subject" value="" placeholder="<?php echo e(__('Enter subject')); ?>"> <p id="eerrsubject" class="mb-0 text-danger em"></p> </div> <div class="form-group"> <label for=""><?php echo e(__('Message')); ?> **</label> <textarea id="inmessage" class="form-control summernote" name="message" placeholder="<?php echo e(__('Enter message')); ?>" data-height="150"></textarea> <p id="eerrmessage" class="mb-0 text-danger em"></p> </div> </form> </div> <div class="modal-footer"> <button type="button" class="btn btn-secondary" data-dismiss="modal"><?php echo e(__('Close')); ?></button> <button id="updateBtn" type="button" class="btn btn-primary"><?php echo e(__('Send Mail')); ?></button> </div> </div> </div> </div> <!-- Modal --> <div class="modal fade" id="addUserModal" tabindex="-1" role="dialog" aria-labelledby="addUserModalTitle" aria-hidden="true"> <div class="modal-dialog modal-dialog-centered" role="document"> <div class="modal-content"> <div class="modal-header"> <h5 class="modal-title" id="exampleModalLongTitle"><?php echo e(__('Add User')); ?></h5> <button type="button" class="close" data-dismiss="modal" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> <div class="modal-body"> <form action="<?php echo e(route('register.user.store')); ?>" method="POST" id="ajaxForm"> <?php echo csrf_field(); ?> <div class="form-group"> <label for=""><?php echo e(__('Username')); ?> *</label> <input class="form-control" type="text" name="username"> <p id="errusername" class="text-danger mb-0 em"></p> </div> <div class="form-group"> <label for=""><?php echo e(__('Email')); ?> *</label> <input class="form-control" type="email" name="email"> <p id="erremail" class="text-danger mb-0 em"></p> </div> <div class="form-group"> <label for=""><?php echo e(__('Password')); ?> *</label> <input class="form-control" type="password" name="password"> <p id="errpassword" class="text-danger mb-0 em"></p> </div> <div class="form-group"> <label for=""><?php echo e(__('Confirm Password')); ?> *</label> <input class="form-control" type="password" name="password_confirmation"> </div> <div class="form-group"> <label for=""><?php echo e(__('Package / Plan')); ?> *</label> <select name="package_id" class="form-control"> <?php if(!empty($packages)): ?> <?php $__currentLoopData = $packages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $package): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($package->id); ?>"><?php echo e($package->title); ?> (<?php echo e($package->term); ?>) </option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </select> <p id="errpackage_id" class="text-danger mb-0 em"></p> </div> <div class="form-group"> <label for=""><?php echo e(__('Payment Gateway')); ?> *</label> <select name="payment_gateway" class="form-control"> <?php if(!empty($gateways)): ?> <?php $__currentLoopData = $gateways; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gateway): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($gateway->name); ?>"><?php echo e($gateway->name); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </select> <p id="errpayment_gateway" class="text-danger mb-0 em"></p> </div> <div class="form-group"> <label for=""><?php echo e(__('Publicly Hidden')); ?> *</label> <select name="online_status" class="form-control"> <option value="1"><?php echo e(__('No')); ?></option> <option value="0"><?php echo e(__('Yes')); ?></option> </select> <p id="erronline_status" class="text-danger mb-0 em"></p> </div> </form> </div> <div class="modal-footer text-center"> <button id="" data-form="ajaxForm" type="button" class="submitBtn btn btn-primary"><?php echo e(__('Add User')); ?></button> </div> </div> </div> </div> <?php $__env->stopSection(); ?> <?php $__env->startSection('scripts'); ?> <script> $(document).ready(function() { $(".template-select").on('change', function() { let userId = $(this).data('user_id'); let val = $(this).val(); if (val == 1) { $("#templateModal" + userId).modal('show'); } $(`#templateModal${userId} input[name='template']`).val(val); if (val == 0) { $(`#templateForm${userId}`).trigger('submit'); } }); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('admin.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/id/public_html/resources/views/admin/register_user/index.blade.php ENDPATH**/ ?>