Viewing file: 56a18ccb4b29e197e6a7e2affa4ba55880899d7c.php (13.75 KB) -rwxrwxrwx 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"> <li class="nav-item"> <a class="nav-link active mr-2 custom nav-link-hover" href="#edit_tab" data-toggle="tab"><?php echo app('translator')->get('admin.customers.edit'); ?></a> </li> <li class="nav-item"> <a class="nav-link custom nav-link-hover" 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> <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 p-0"> <div class="row"> <?php if(isset($currentPlan->plan)): ?> <div class="col-sm-4"> <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($currentPlan->plan->title); ?></div> </li> <li> <div class="title"><?php echo app('translator')->get('admin.table.cost'); ?>:</div> <div class="value"><?php echo e(formatNumberWithCurrSymbol($currentPlan->plan->price)); ?></div> </li> <li> <div class="title"><?php echo app('translator')->get('admin.table.daily_send_limit'); ?>:</div> <div class="value"><?php echo e($currentPlan->daily_send_limit); ?></div> </li> <li> <div class="title"><?php echo app('translator')->get('admin.table.daily_receive_limit'); ?>:</div> <div class="value"><?php echo e($currentPlan->daily_receive_limit); ?></div> </li> <li> <div class="title"><?php echo app('translator')->get('admin.table.contact_limit'); ?>:</div> <div class="value"><?php echo e($currentPlan->contact_limit); ?></div> </li> <li> <div class="title"><?php echo app('translator')->get('admin.table.device_limit'); ?>:</div> <div class="value"><?php echo e($currentPlan->device_limit); ?></div> </li>
<?php if(!$currentPlan->daily_send_limit): ?> <div class="no-value"><?php echo app('translator')->get('admin.customers.no_plan'); ?></div> <?php endif; ?> </ul>
</div> <?php endif; ?> <div class="col-sm-8"> <table class="table"> <thead> <tr> <th><?php echo app('translator')->get('admin.table.title'); ?></th> <th><?php echo app('translator')->get('admin.table.daily_send_limit'); ?></th> <th><?php echo app('translator')->get('admin.table.daily_receive_limit'); ?></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($activePlans->isEmpty()): ?> <tr> <td colspan="3" class="text-center"><?php echo app('translator')->get('admin.table.empty'); ?></td> </tr> <?php endif; ?> <?php $__currentLoopData = $activePlans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($plan->title); ?> <?php if(isset($currentPlan->plan_id) && $currentPlan->plan_id==$plan->id): ?> (<?php echo app('translator')->get('admin.table.current'); ?>) <?php endif; ?></td> <td><?php echo e($plan->daily_send_limit); ?></td> <td><?php echo e($plan->daily_receive_limit); ?></td> <td><?php echo e(formatNumberWithCurrSymbol($plan->price)); ?></td> <td> <?php if(isset($currentPlan->plan_id) && $currentPlan->plan_id==$plan->id): ?> <button disabled class="btn btn-primary btn-sm" title="Active Plan"><i class="fas fa-check disabled"></i></i> </button> <?php else: ?> <button data-message="<?php echo trans('admin.message.assign_plan',['plan'=>'<b> '.$plan->title.'</b>']); ?>" 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" title="Change"><i class="fas fa-random"></i> </button> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody> </table> </div> </div>
</div> <!-- /.card-body --> </div>
</div> </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'); } }); </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/test.gateway.picotech.app/public_html/resources/views/admin/customers/edit.blade.php ENDPATH**/ ?>
|