Viewing file: 5d437322c109ac7ba1377ac4630fd686.php (13.35 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title','Edit Customers'); ?>
<?php $__env->startSection('extra-css'); ?> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12 mx-auto col-sm-10 mt-3"> <!-- Custom Tabs --> <div class="card"> <div class="card-header p-0"> <div class="row"> <h2 class="card-title pl-3"><a href="<?php echo e(route('admin.customers.index')); ?>"><?php echo app('translator')->get('admin.customers.customer'); ?></a></h2> <ul class="nav nav-pills ml-auto p-2 custom-ul-section"> <li class="nav-item"> <a class="nav-link active mr-2" href="#edit_tab" data-toggle="tab"><?php echo app('translator')->get('admin.customers.edit'); ?></a> </li> <li class="nav-item"> <a class="nav-link" href="#plan_tab" data-toggle="tab"><?php echo app('translator')->get('admin.customers.plan'); ?></a> </li>
</ul> </div> </div><!-- /.card-header --> <div class="card-body"> <div class="tab-content"> <div class="tab-pane active" id="edit_tab"> <form method="post" role="form" id="customerForm" action="<?php echo e(route('admin.customers.update',[$customer])); ?>"> <?php echo csrf_field(); ?> <?php echo method_field('put'); ?> <?php echo $__env->make('admin.customers.form', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<button type="submit" class="btn btn-primary"><?php echo app('translator')->get('admin.form.button.submit'); ?></button> </form> </div> <!-- /.tab-pane --> <!-- /.tab-pane --> <div class="tab-pane" id="plan_tab">
<div class="card" id="planListSection"> <div class="card-header"> <h3 class="card-title"><?php echo app('translator')->get('admin.customers.plan'); ?></h3> <div class="card-tools d-none"> <ul class="pagination pagination-sm float-right"> <li class="page-item"><a class="page-link" href="#">«</a></li> <li class="page-item"><a class="page-link" href="#">1</a></li> <li class="page-item"><a class="page-link" href="#">2</a></li> <li class="page-item"><a class="page-link" href="#">3</a></li> <li class="page-item"><a class="page-link" href="#">»</a></li> </ul> </div> </div> <!-- /.card-header --> <div class="card-body table-body"> <div class="row"> <?php if($customer->plan): ?> <div class="col-sm-5"> <ul class="current-plan list-inline mt-2 mt-sm-5">
<li> <div class="title"><?php echo app('translator')->get('admin.table.current'); ?></div> <div class="value"><?php echo e($customer->plan->plan->title); ?></div> </li> <li> <div class="title"><?php echo app('translator')->get('admin.table.cost'); ?></div> <div class="value"><?php echo e(formatNumberWithCurrSymbol($customer->plan->price)); ?></div> </li> <li> <div class="title"><?php echo app('translator')->get('admin.table.expire_date'); ?></div> <div class="value"><?php echo e($customer->plan->expire_date); ?></div> </li>
</ul>
</div> <?php else: ?> <div class="no-value"><?php echo app('translator')->get('admin.customers.no_plan'); ?></div> <?php endif; ?> <div class="col-sm-7"> <table class="table"> <thead> <tr> <th><?php echo app('translator')->get('admin.table.title'); ?></th> <th><?php echo app('translator')->get('admin.form.plan_type'); ?></th> <th><?php echo app('translator')->get('admin.table.cost'); ?></th> <th class="table-action"><?php echo app('translator')->get('admin.table.action'); ?></th> </tr> </thead> <tbody> <?php if(!isset($plans)): ?> <tr> <td colspan="3" class="text-center"><?php echo app('translator')->get('admin.table.empty'); ?></td> </tr> <?php endif; ?> <?php $planId=isset($customer->plan)?$customer->plan->plan_id:''; ?> <?php if(isset($plans) && $plans): ?> <?php $__currentLoopData = $plans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($plan->title); ?> <?php if($planId==$plan->id): ?> (<?php echo app('translator')->get('admin.table.current'); ?>) <?php endif; ?></td> <td> <?php if($plan->plan_type=='normal'): ?> Customer <?php else: ?> <?php echo e($plan->recurring_type); ?>
<?php endif; ?>
</td> <td><?php echo e(formatNumberWithCurrSymbol($plan->price)); ?></td> <td> <?php if($planId !=$plan->id): ?> <button data-message="<?php echo trans('admin.message.assign_plan',['plan'=>'<b> '.$plan->title.'</b>']); ?><br/> <span class='text-sm text-muted'><?php echo app('translator')->get('admin.message.plan_nb'); ?></span>" data-action="<?php echo e(route('admin.customer.plan.change')); ?>" data-input='{"id":"<?php echo e($plan->id); ?>","customer_id":"<?php echo e($customer->id); ?>"}' data-toggle="modal" data-target="#modal-confirm" id="changePlan" class="btn btn-primary btn-sm" type="button"><?php echo app('translator')->get('admin.form.button.change'); ?> </button> <?php endif; ?> </td> </tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php endif; ?> </tbody> </table> </div> </div>
</div> <!-- /.card-body --> </div>
</div> <!-- /.tab-pane --> <!--sender-id--> <!--sender-id--> </div> <!-- /.tab-content --> </div><!-- /.card-body --> </div> <!-- ./card -->
</div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?> <script src="<?php echo e(asset('plugins/jquery-validation/jquery.validate.min.js')); ?>"></script> <script !src=""> "use strict"; let $validate; $validate = $('#customerForm').validate({ rules: { email: { required: true, email: true, }, first_name: { required: true }, last_name: { required: true }, }, messages: { email: { required: "Please enter a email address", email: "Please enter a vaild email address" }, password: { required: "Please provide a password", minlength: "Your password must be at least 5 characters long" }, first_name: {required: "Please provide first name"}, last_name: {required: "Please provide last name"} }, errorElement: 'span', errorPlacement: function (error, element) { error.addClass('invalid-feedback'); element.closest('.form-group').append(error); }, highlight: function (element, errorClass, validClass) { $(element).addClass('is-invalid'); }, unhighlight: function (element, errorClass, validClass) { $(element).removeClass('is-invalid'); } });
$(document).ready(function() { $('#gateway').select2({ placeholder: 'Select an gateway', }); });
<?php if(request()->get('assign') && request()->get('assign')=='number'): ?> $('.phone_number').trigger('click'); <?php endif; ?>
</script> <?php if(!isset($customer)): ?> <script !src=""> "use strict"; $validate.rules('add', { password: { required: true, minlength: 5 }, }) </script> <?php endif; ?> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/fitness.picotech.app/public_html/resources/views/admin/customers/edit.blade.php ENDPATH**/ ?>
|