Viewing file: 13f76abed379fbd4dc8e1dc05da0dede.php (20.19 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Billings <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-css'); ?>
<link rel="stylesheet" href="<?php echo e(asset('plugins/datatables-bs4/css/dataTables.bootstrap4.min.css')); ?>">
<link rel="stylesheet" href="<?php echo e(asset('plugins/datatables-responsive/css/responsive.bootstrap4.min.css')); ?>">
<style>
.b-plan-title{
font-size: 22px !important;
color: white !important;
}
.price li{
padding: 12px !important;
text-align: left;
font-weight: 500;
}
.ribbon-wrapper{
height: 70px;
overflow: hidden;
position: absolute;
width: 70px;
z-index: 10;
left: 24% !important;
margin-top: 6px !important;
top: auto !important;
right: auto !important;
}
.ribbon-wrapper .ribbon{
font-size: 10px !important;
padding: 8px 4px 8px 4px !important;
}
.b-plan-title .current-title{
font-size: 13px !important;
}
</style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?>
<!-- Content Header (Page header) -->
<section class="content-header">
</section>
<!-- Main content -->
<div class="content">
<div class="container-fluid">
<div class="row">
<!-- /.col-md-6 -->
<div class="col-lg-12 mx-auto">
<div class="card">
<div class="card-header">
<h5 class="m-0"><?php echo e(trans('customer.billing')); ?>
</h5>
</div>
<div class="card-body">
<?php if($customer_plan): ?>
<table class="w-100">
<tr>
<td>
<div class="card-title float-none"><?php echo e(trans('customer.your_plan')); ?></div>
<h2><?php echo e($customer_plan->plan->title); ?></h2></td>
<td class="text-right">
<button type="button"
class="btn btn-primary d-none"><?php echo e(trans('customer.update_plan')); ?></button>
</td>
</tr>
</table>
<table class="w-50">
<tr>
<td class="plan-des-title"><?php echo e(trans('customer.cost')); ?></td>
<td class="plan-des-value"><?php echo e(formatNumberWithCurrSymbol($customer_plan->price)); ?></td>
</tr>
</table>
<?php endif; ?>
<div id="plans" class="plans-wrapper mt-3">
<?php $__currentLoopData = $plans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $plan): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<div class="columns <?php echo e($customer_plan && $customer_plan->plan_id==$plan->id?'plan-active':''); ?>">
<?php if($plan->set_as_popular=='yes'): ?>
<div class="ribbon-wrapper">
<div class="ribbon bg-danger">
Popular
</div>
</div>
<?php endif; ?>
<ul class="price">
<li class="grey">
<h3 class="mb-0 b-plan-title">
<?php echo e($plan->title); ?>
<span class="ml-1 current-title">
<?php echo e($customer_plan && $customer_plan->plan_id==$plan->id?'(Current)':''); ?>
</span>
</h3>
<h6>
<?php echo e($plan->short_description); ?>
</h6>
</li>
<li class="price-tag text-muted"><strong><?php echo e(trans('Plan Price')); ?></strong>: <?php echo e(formatNumberWithCurrSymbol($plan->price)); ?></li>
<li class="text-muted"><strong><?php echo e(trans('Recurring Type')); ?></strong>: <?php echo e(ucfirst($plan->recurring_type)); ?></li>
<?php if($plan->unlimited_contact=='yes'): ?>
<li class="text-muted"><strong><?php echo e(trans('Contact Limit')); ?></strong>: <?php echo e(trans('Unlimited')); ?></li>
<?php else: ?>
<li class="text-muted"><strong><?php echo e(trans('Contact Limit')); ?></strong>: <?php echo e($plan->max_contact); ?></li>
<?php endif; ?>
<?php if($plan->unlimited_contact_group=='yes'): ?>
<li class="text-muted"><strong><?php echo e(trans('Group Limit')); ?></strong>: <?php echo e(trans('Unlimited')); ?></li>
<?php else: ?>
<li class="text-muted"><strong><?php echo e(trans('Group Limit')); ?></strong>: <?php echo e($plan->contact_group_limit); ?></li>
<?php endif; ?>
<li class="text-muted"><strong><?php echo e(trans('Free SMS Unit')); ?></strong>: <?php echo e($plan->free_sms_credit); ?></li>
<li class="text-muted"><strong><?php echo e(trans('SMS Unit Price')); ?></strong>: <?php echo e($plan->sms_unit_price); ?></li>
<?php if($plan->api_availability=='yes'): ?>
<li class="text-muted"><strong><?php echo e(trans('API Available')); ?></strong>: Yes</li>
<?php else: ?>
<li class="text-muted"><strong><?php echo e(trans('API Available')); ?></strong>: No</li>
<?php endif; ?>
<li class="text-muted"><strong><?php echo e(trans('SMS Send Limit')); ?></strong>: <?php echo e($plan->sms_sending_limit); ?>(<small>Per Month</small>)</li>
<li class="text-muted">
<a href="<?php echo e(route('coverage',[$plan->id])); ?>" target="_blank">See Coverage</a>
</li>
<li>
<?php if(!$customer_plan || $customer_plan->plan_id!=$plan->id): ?>
<?php if($pending_request && isset($pending_request->plan_id) && $pending_request->plan_id==$plan->id): ?>
<button class="btn btn-danger btn-sm disabled w-100 d-block" disabled="disabled"
type="button"><?php echo e(trans('Pending')); ?></button>
<?php else: ?>
<?php if(Module::has('PaymentGateway') && Module::find('PaymentGateway')->isEnabled()): ?>
<button
data-message="<?php echo trans('customer.messages.update_plan',['plan'=>$plan->title]); ?> <br/> <span class='text-sm text-muted'><?php echo e(trans('customer.messages.update_plan_nb')); ?></span>"
data-action="<?php echo e(route('paymentgateway::process')); ?>"
data-input='{"id":"<?php echo e($plan->id); ?>"}'
data-toggle="modal" data-target="#modal-confirm"
type="button"
class="btn btn-primary btn-sm w-100 d-block"><?php echo e(trans('customer.choose')); ?>
</button>
<?php else: ?>
<button
data-message="<?php echo trans('customer.messages.update_plan',['plan'=>$plan->title]); ?> <br/> <span class='text-sm text-muted'><?php echo e(trans('customer.messages.update_plan_nb')); ?></span>"
data-action="<?php echo e(route('customer.billing.update')); ?>"
data-input='{"id":"<?php echo e($plan->id); ?>"}'
data-toggle="modal" data-target="#modal-confirm"
type="button"
class="btn btn-primary btn-sm w-100 d-block"><?php echo e(trans('customer.choose')); ?>
</button>
<?php endif; ?>
<?php endif; ?>
<?php elseif($customer_plan->expire_date < now()): ?>
<?php if(Module::has('PaymentGateway') && Module::find('PaymentGateway')->isEnabled()): ?>
<button
data-message="<?php echo trans('customer.messages.update_plan',['plan'=>$plan->title]); ?> <br/> <span class='text-sm text-muted'><?php echo e(trans('customer.messages.update_plan_nb')); ?></span>"
data-action="<?php echo e(route('paymentgateway::process')); ?>"
data-input='{"id":"<?php echo e($plan->id); ?>"}'
data-toggle="modal" data-target="#modal-confirm"
type="button"
class="btn btn-primary btn-sm w-100 d-block"><?php echo e(trans('customer.choose')); ?>
</button>
<?php else: ?>
<button
data-message="<?php echo trans('customer.messages.update_plan',['plan'=>$plan->title]); ?> <br/> <span class='text-sm text-muted'><?php echo e(trans('customer.messages.update_plan_nb')); ?></span>"
data-action="<?php echo e(route('customer.billing.update')); ?>"
data-input='{"id":"<?php echo e($plan->id); ?>"}'
data-toggle="modal" data-target="#modal-confirm"
type="button"
class="btn btn-primary btn-sm w-100 d-block"><?php echo e(trans('customer.choose')); ?>
</button>
<?php endif; ?>
<?php endif; ?>
</li>
</ul>
</div>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</div>
</div>
</div>
<div class="card mt-5">
<div class="card-header">
<h5><?php echo e(trans('Billing Request')); ?></h5>
</div>
<div class="card-body">
<table id="billing_requests" class="table table-striped table-bordered dt-responsive nowrap">
<thead>
<tr>
<th><?php echo e(trans('Plan Title')); ?></th>
<th> <?php echo e(trans('Price')); ?> </th>
<th> <?php echo e(trans('Transaction ID')); ?> </th>
<th> <?php echo e(trans('Status')); ?> </th>
</tr>
</thead>
<tbody>
<?php $__currentLoopData = $billing_requests; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $billing_request): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td><?php echo e($billing_request->plan->title); ?></td>
<td><?php echo e(formatNumberWithCurrSymbol($billing_request->plan->price)); ?></td>
<td><?php echo e($billing_request->transaction_id); ?></td>
<td>
<?php if($billing_request->status=='accepted'): ?>
<span class="badge badge-success p-2"><?php echo e(trans('Accepted')); ?></span>
<?php elseif($billing_request->status=='pending'): ?>
<span class="badge badge-danger p-2"><?php echo e(trans('Pending')); ?></span>
<button class="btn btn-sm btn-danger ml-3" data-message="Are you sure you want to cancel this billing request?"
data-action="<?php echo e(route('customer.cancel.billing.request')); ?>"
data-input={"_method":"post","id":"<?php echo e($billing_request->id); ?>"}
data-toggle="modal" data-target="#modal-confirm" title="Reject" >Cancel</button>
<?php elseif($billing_request->status=='rejected'): ?>
<span class="badge badge-danger p-2"><?php echo e(trans('Rejected')); ?></span>
<?php endif; ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
</div>
</div>
</div>
<!-- /.col-md-6 -->
</div>
<!-- /.row -->
</div><!-- /.container-fluid -->
</div>
<?php $contactData = get_settings('contact_info') ? json_decode(get_settings('contact_info')) : ''; ?>
<!-- Modal -->
<div class="modal fade" id="contactModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Contact With Admin</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<h5>
<strong>Phone Number: </strong>
<?php if(isset($contactData) && isset($contactData->phone_number)): ?>
<a class="d-inline-block" href="tel:<?php echo clean($contactData->phone_number); ?>">
<?php echo clean($contactData->phone_number); ?>
</a>
<?php endif; ?>
</h5>
</div>
<div class="form-group">
<h5>
<strong>Email: </strong>
<?php if(isset($contactData) && isset($contactData->email_address)): ?>
<a class="d-inline-block" href="mailto:<?php echo clean($contactData->email_address); ?>">
<?php echo clean($contactData->email_address); ?>
</a>
<?php endif; ?>
</h5>
</div>
<div class="form-group">
<?php if(isset($contactData) && isset($contactData->address)): ?>
<?php echo clean($contactData->address); ?>
<?php endif; ?>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- /.content -->
<?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?>
<script src="<?php echo e(asset('plugins/datatables/jquery.dataTables.min.js')); ?>"></script>
<script src="<?php echo e(asset('plugins/datatables-bs4/js/dataTables.bootstrap4.min.js')); ?>"></script>
<script src="<?php echo e(asset('plugins/datatables-responsive/js/dataTables.responsive.min.js')); ?>"></script>
<script src="<?php echo e(asset('plugins/datatables-responsive/js/responsive.bootstrap4.min.js')); ?>"></script>
<script>
"use strict";
$('#billing_requests').DataTable({
processing: true,
serverSide: false,
responsive:true,
"ordering": false,
fnInitComplete: function(oSettings, json) {
$('#billing_requests_filter').addClass('d-none');
$('#billing_requests_length').addClass('d-none');
}
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH E:\Project\Pico-SMS-v-2\picosms\resources\views/customer/billings/index.blade.php ENDPATH**/ ?>
|