Viewing file: cc8e88b1e802cdd7aa8589eef1b4fda1139a21f5.php (12.75 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Billings <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">
<h2 class="card-title"><?php echo e(trans('customer.billing')); ?></h2>
</div>
<div class="row mt-4">
<div class="col-lg-6">
<div class="card">
<div class="row">
<div class="col-lg-6">
<div class="content-title">Daily send limit</div>
<span class="use-limit"><?php echo e($remainDailySent); ?></span><span class="limit">/<?php echo e(isset($customer_plan->daily_send_limit)?$customer_plan->daily_send_limit:0); ?></span>
</div>
<div class="col-lg-6">
<div class="content-title">Daily Received</div>
<span class="use-limit"><?php echo e($remainDailyReceive); ?></span><span class="limit">/<?php echo e(isset($customer_plan->daily_receive_limit)?$customer_plan->daily_receive_limit:0); ?></span>
</div>
<div class="col-lg-6">
<div class="content-title">Contacts</div>
<span class="use-limit"><?php echo e($remaincontact); ?></span><span class="limit">/<?php echo e(isset($customer_plan->contact_limit)?$customer_plan->contact_limit:0); ?></span>
</div>
<div class="col-lg-6">
<div class="content-title">Devices</div>
<span class="use-limit"><?php echo e($remaindevice); ?></span><span class="limit">/<?php echo e(isset($customer_plan->device_limit)?$customer_plan->device_limit:0); ?></span>
</div>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="card">
<div class="plan-header">Your Plan</div>
<?php if(isset($customer_plan->plan) && $customer_plan->plan): ?>
<h2 class="plan-title"><?php echo e($customer_plan->plan->title); ?></h2>
<?php else: ?>
<h2 class="plan-title"> </h2>
<?php endif; ?>
<?php if(isset($customer_plan->renew_date) && $customer_plan->renew_date): ?>
<div class="content-title">Expiry at <?php echo e($customer_plan->renew_date->format('M d, Y')); ?></div>
<?php else: ?>
<div class="content-title"> </div>
<?php endif; ?>
<div class="row">
<div class="col-lg-12 text-left">
<a class="btn-primary btn" href="<?php echo e(route('customer.billing.change.billing')); ?>">Change Plan</a>
</div>
</div>
</div>
</div>
</div>
<div class="row billing-row">
<div class="col-lg-12">
<div class="row mb-2 pt-2">
<div class="col-lg-1">
<div class="billing-data">No</div>
</div>
<div class="<?php echo e(!isset($paymentPlan) && isset($renewDate)?'col-lg-1':"col-lg-2"); ?>">
<div class="billing-data">Plan</div>
</div>
<div class="col-lg-1">
<div class="billing-data">Amount</div>
</div>
<div class="col-lg-2">
<div class="billing-data">Payment Status</div>
</div>
<div class="col-lg-2">
<div class="billing-data">Status</div>
</div>
<div class="col-lg-2">
<div class="billing-data">Purchase Date</div>
</div>
<div class="col-lg-2">
<div class="billing-data">Expiry Date</div>
</div>
<?php if(!isset($paymentPlan) && isset($renewDate)): ?>
<div class="billing-data">Action</div>
<?php endif; ?>
</div>
<?php if($customerPlans->isNotEmpty()): ?>
<?php $__currentLoopData = $customerPlans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$customerPlan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="row custom-row">
<div class="col-lg-12">
<div class="card billing-card">
<div class="row">
<div class="col-lg-1">
<div class="billing-data">#<?php echo e($customerPlan->id); ?></div>
</div>
<div class="<?php echo e(!isset($paymentPlan) && isset($renewDate)?'col-lg-1':"col-lg-2"); ?>">
<div class="billing-data"><?php echo e($customerPlan->plan->title); ?></div>
</div>
<div class="col-lg-1">
<div class="billing-data"><?php echo e(formatNumberWithCurrSymbol($customerPlan->plan->price)); ?></div>
</div>
<div class="col-lg-2">
<div class="billing-data"><?php echo e(ucfirst($customerPlan->payment_status)); ?></div>
</div>
<div class="col-lg-2 text-center">
<?php if($customerPlan->status == 'pending'): ?>
<div class="text-warning light"> <i class="far fa-clock"></i> Pending</div>
<?php elseif($customerPlan->status == 'rejected'): ?>
<div class="text-danger light"> <i class="fa fa-times"></i> Rejected</div>
<?php elseif($customerPlan->status == 'accepted'): ?>
<div class="text-success light"> <i class="fa fa-check"></i> Accepted</div>
<?php endif; ?>
</div>
<div class="col-lg-2">
<div class="billing-data"><?php echo e($customerPlan->created_at->format('M d, Y')); ?></div>
</div>
<div class="col-lg-2 text-center">
<?php if(isset($customerPlan->renew_date) && $customerPlan->renew_date): ?>
<div class="billing-data"><?php echo e($customerPlan->renew_date->format('M d, Y')); ?></div>
<?php endif; ?>
<?php if($customerPlan->status == 'pending' && !isset($paymentPlan)): ?>
<?php if(Module::has('PaymentGateway') && Module::find('PaymentGateway')->isEnabled()): ?>
<button
data-message="<?php echo trans('customer.renew_plan',['plan'=>$customerPlan->plan->title]); ?> <br/> <span class='text-sm text-muted'><?php echo e(trans('customer.renew_plan_nb')); ?></span>"
data-action="<?php echo e(route('paymentgateway::process')); ?>"
data-input='{"id":"<?php echo e($customerPlan->plan_id); ?>"}'
data-toggle="modal" data-target="#modal-confirm"
type="button"
class="btn btn-primary btn-sm"><?php echo e(trans('customer.pay')); ?>
</button>
<?php else: ?>
<button
data-message="<?php echo trans('customer.renew_plan',['plan'=>$customerPlan->plan->title]); ?> <br/> <span class='text-sm text-muted'><?php echo e(trans('customer.renew_plan_nb')); ?></span>"
data-action="<?php echo e(route('customer.billing.update')); ?>"
data-input='{"id":"<?php echo e($customerPlan->plan_id); ?>"}'
data-toggle="modal" data-target="#modal-confirm"
type="button"
class="btn btn-primary btn-sm"><?php echo e(trans('customer.pay')); ?>
</button>
<?php endif; ?>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php else: ?>
<div class="row custom-row">
<div class="col-lg-12">
<div class="card billing-card">
<div class="row">
<div class="col-lg-12">
<div class="billing-data">No plan request available</div>
</div>
</div>
</div>
</div>
</div>
<?php endif; ?>
</div>
</div>
</div>
</div>
</div>
</section>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/gateway.picotech.app/public_html/resources/views/customer/billings/index.blade.php ENDPATH**/ ?>
|