관리-도구
편집 파일: 7a437ec4798065d4eeec88014efc7d6bc3ff19ef.php
<?php $__env->startSection('content'); ?> <div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-header d-flex align-items-center"> <span class="panel-title"><?php echo e(_lang('User List')); ?></span> <a class="btn btn-primary btn-xs ml-auto ajax-modal" data-title="<?php echo e(_lang('Create User')); ?>" href="<?php echo e(route('users.create')); ?>"><?php echo e(_lang('Add New')); ?></a> </div> <div class="card-body"> <table id="users_table" class="table table-bordered data-table"> <thead> <tr> <th>Name</th> <th>Email</th> <th>Status</th> <th>Action</th> </tr> </thead> <tbody> <?php $__currentLoopData = $pendingUsers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($user->name); ?></td> <td><?php echo e($user->email); ?></td> <td> <?php if($user->status == 0): ?> Pending <?php elseif($user->status == 1): ?> Approved <?php endif; ?> </td> <td> <?php if($user->status == 0): ?> <form action="<?php echo e(route('admin.users.toggleStatus', $user->id)); ?>" method="POST"> <?php echo csrf_field(); ?> <?php echo method_field('POST'); ?> <select name="status" class="form-control" onchange="this.form.submit()"> <option value="1" <?php echo e($user->status == 1 ? 'selected' : ''); ?>>Approve</option> <option value="0" <?php echo e($user->status == 0 ? 'selected' : ''); ?>>Unapprove</option> </select> </form> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </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 /home/eraas/public_html/resources/views/backend/user/pendinguser.blade.php ENDPATH**/ ?>