Viewing file: 02c5dce2265819cc1d7bf43d91c6a7d7168bb53a.php (6.95 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Numbers <?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> .capability-badge{ font-size: 11px !important; font-weight: 400; padding: 3px 6px !important; } </style>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <!-- Main content --> <section class="content"> <div class="row"> <div class="col-12"> <div class="card"> <div class="card-header"> <h2 class="card-title"><?php echo e(trans('customer.choose_a_number')); ?></h2> </div> <!-- /.card-header --> <div class="card-body"> <table id="numbers" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th><?php echo e(trans('customer.number')); ?></th> <th><?php echo e(trans('Capability')); ?></th> <th><?php echo e(trans('customer.cost')); ?></th> <th><?php echo e(trans('customer.action')); ?></th> </tr> </thead> <tbody> <?php $__currentLoopData = $numbers; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $number): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<?php $admin_number =\App\Models\Number::where('id', $number->id)->first(); $capability=''; ?>
<tr> <td><?php echo e($number->number); ?></td> <td> <?php if($admin_number): ?> <?php if($admin_number->sms_capability=='yes'): ?> <span class="badge badge-success capability-badge">SMS</span> <?php endif; ?> <?php if($admin_number->sms_capability=='yes'): ?> <span class="badge badge-success capability-badge ml-2">MMS</span> <?php endif; ?> <?php if($admin_number->voice_capability=='yes'): ?> <span class="badge badge-success capability-badge ml-2">Voice SMS</span> <?php endif; ?> <?php if($admin_number->whatsapp_capability=='yes'): ?> <span class="badge badge-success capability-badge ml-2">Whatsapp</span> <?php endif; ?> <?php endif; ?> </td> <td><?php echo e(formatNumberWithCurrSymbol($number->sell_price)); ?></td> <td> <?php if(Module::has('PaymentGateway') && Module::find('PaymentGateway')->isEnabled()): ?> <button data-message="Are you sure you want to buy <b> <?php echo e($number->number); ?> </b> ?" data-action="<?php echo e(route('paymentgateway::number.process')); ?>" data-input='{"id":"<?php echo e($number->id); ?>"}' data-toggle="modal" data-target="#modal-confirm" type="button" class="btn btn-info btn-sm"><?php echo e(trans('Buy')); ?>
</button> <?php else: ?> <button data-message="Are you sure you want to buy <b> <?php echo e($number->number); ?> </b> ?" data-action="<?php echo e(route('customer.buy.number')); ?>" data-input='{"id":"<?php echo e($number->id); ?>"}' data-toggle="modal" data-target="#modal-confirm" type="button" class="btn btn-info btn-sm"><?php echo e(trans('Buy')); ?>
</button> <?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </tbody>
</table> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.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"; $('#numberssss').DataTable({ processing: true, serverSide: true, responsive:true, ajax:'<?php echo e(route('customer.numbers.purchase.list_get')); ?>', columns: [ { "data": "number" ,"name":"number"}, { "data": "cost" }, { "data": "action" }, ] }); </script> <?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.customer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/picotech/domains/test.sms.picotech.app/public_html/resources/views/customer/numbers/purchase_list.blade.php ENDPATH**/ ?>
|