Viewing file: 00878024e32bf5cf24ca9f5b71f54df59dd4e762.php (10.97 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title',trans('layout.user_plan_title')); ?>
<?php $__env->startSection('css'); ?>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('main-content'); ?> <div class="row page-titles mx-0"> <div class="col-sm-6 p-md-0"> <div class="welcome-text"> <h4><?php echo e(trans('layout.user_plan')); ?></h4> <p class="mb-0"></p> </div> </div> <div class="col-sm-6 p-md-0 justify-content-sm-end mt-2 mt-sm-0 d-flex"> <ol class="breadcrumb"> <li class="breadcrumb-item"><a href="#"><?php echo e(trans('layout.home')); ?></a></li> <li class="breadcrumb-item active"><a href="javascript:void(0)"><?php echo e(trans('layout.user_plan')); ?></a></li> </ol> </div> </div> <!-- row -->
<div class="row"> <div class="col-lg-12"> <div class="card"> <div class="card-header"> <h4 class="card-title"><?php echo e(trans('layout.list')); ?></h4> </div> <div class="card-body"> <div class="table-responsive"> <table class="table table-responsive-md"> <thead> <tr> <th><strong><?php echo e(trans('layout.name')); ?></strong></th> <th><strong><?php echo e(trans('layout.plan_name')); ?></strong></th> <th><strong><?php echo e(trans('layout.start_date')); ?></strong></th> <th><strong><?php echo e(trans('layout.expiry_date')); ?></strong></th> <th><strong><?php echo e(trans('layout.other_info')); ?></strong></th> <th><strong><?php echo e(trans('layout.status')); ?></strong></th> <th><strong><?php echo e(trans('layout.action')); ?></strong></th> <th></th> </tr> </thead> <tbody> <?php $__currentLoopData = $userPlans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $userPlan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($userPlan->user->name); ?></td> <td><?php echo e($userPlan->plan->title); ?></td> <td><?php echo e(formatDate($userPlan->start_date)); ?></td> <?php if($userPlan->expired_date==''): ?> <td>Lifetime</td> <?php else: ?> <td><?php echo e(formatDate($userPlan->expired_date)); ?></td> <?php endif; ?> <td style="width: 300px"> <?php $obj = ""; ?> <?php if($userPlan->other_info): ?> <?php $array = (array)json_decode($userPlan->other_info); unset($array['payment_type']); $obj = json_encode(array_combine(array_map("ucfirst", array_keys($array)), array_values($array))); ?> <?php endif; ?> <?php echo e(str_replace(['_', '"', "{", "}"], [' ', ' ', '', ''], $obj)); ?>
</td> <td> <?php if($userPlan->status=='approved'): ?> <span class="badge light badge-success"><?php echo e(trans('layout.approved')); ?></span> <?php elseif($userPlan->status=='rejected'): ?> <span class="badge light badge-danger"><?php echo e(trans('layout.rejected')); ?></span> <?php elseif($userPlan->status=='pending'): ?> <span class="badge light badge-primary"><?php echo e(trans('layout.pending')); ?></span> <?php endif; ?> </td> <td> <div class="dropdown"> <button type="button" class="btn btn-success light sharp" data-toggle="dropdown"> <svg width="20px" height="20px" viewBox="0 0 24 24" version="1.1"> <g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> <rect x="0" y="0" width="24" height="24"/> <circle fill="#000000" cx="5" cy="12" r="2"/> <circle fill="#000000" cx="12" cy="12" r="2"/> <circle fill="#000000" cx="19" cy="12" r="2"/> </g> </svg> </button> <div class="dropdown-menu"> <?php if($userPlan->status=='pending'): ?> <button class="dropdown-item" type="button" data-message="<?php echo e(trans('layout.message.userplan_approve_warning')); ?>" data-action='<?php echo e(route('user.plan.change')); ?>' data-input={"status":"approved","id":"<?php echo e($userPlan->id); ?>"} data-toggle="modal" data-target="#modal-confirm"><?php echo e(trans('layout.approve')); ?></button> <button class="dropdown-item" type="button" data-message="<?php echo e(trans('layout.message.userplan_reject_warning')); ?>" data-action='<?php echo e(route('user.plan.change')); ?>' data-input={"status":"rejected","id":"<?php echo e($userPlan->id); ?>"} data-toggle="modal" data-target="#modal-confirm"><?php echo e(trans('layout.reject')); ?></button> <?php elseif($userPlan->status=='approved'): ?> <button class="dropdown-item" type="button" data-message="<?php echo e(trans('layout.message.change_user_plan_warning')); ?>" data-action='<?php echo e(route('user.plan.change')); ?>' data-input={"status":"pending","id":"<?php echo e($userPlan->id); ?>"} data-toggle="modal" data-target="#modal-confirm"><?php echo e(trans('layout.pending')); ?></button> <button class="dropdown-item" type="button" data-message="<?php echo e(trans('layout.message.userplan_reject_warning')); ?>" data-action='<?php echo e(route('user.plan.change')); ?>' data-input={"status":"rejected","id":"<?php echo e($userPlan->id); ?>"} data-toggle="modal" data-target="#modal-confirm"><?php echo e(trans('layout.reject')); ?></button> <?php elseif($userPlan->status=='rejected'): ?> <button class="dropdown-item" type="button" data-message="<?php echo e(trans('layout.message.userplan_approve_warning')); ?>" data-action='<?php echo e(route('user.plan.change')); ?>' data-input={"status":"approved","id":"<?php echo e($userPlan->id); ?>"} data-toggle="modal" data-target="#modal-confirm"><?php echo e(trans('layout.approve')); ?></button> <button class="dropdown-item" type="button" data-message="<?php echo e(trans('layout.message.change_user_plan_warning')); ?>" data-action='<?php echo e(route('user.plan.change')); ?>' data-input={"status":"pending","id":"<?php echo e($userPlan->id); ?>"} data-toggle="modal" data-target="#modal-confirm"><?php echo e(trans('layout.pending')); ?></button> </div> <?php endif; ?> </div> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div> </div> </div> </div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('js'); ?>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/multirest.picotech.app/public_html/resources/views/plans/user_plan.blade.php ENDPATH**/ ?>
|