<?php $__env->startSection('title', __('locale.phone_numbers.buy_number')); ?> <?php $__env->startSection('vendor-style'); ?> <link rel="stylesheet" href="<?php echo e(asset(mix('vendors/css/tables/datatable/dataTables.bootstrap5.min.css'))); ?>"> <link rel="stylesheet" href="<?php echo e(asset(mix('vendors/css/tables/datatable/responsive.bootstrap5.min.css'))); ?>"> <link rel="stylesheet" href="<?php echo e(asset(mix('vendors/css/tables/datatable/buttons.bootstrap5.min.css'))); ?>"> <link rel="stylesheet" href="<?php echo e(asset(mix('vendors/css/extensions/sweetalert2.min.css'))); ?>"> <?php $__env->stopSection(); ?> <?php $__env->startSection('content'); ?> <!-- Basic table --> <section id="datatables-basic"> <div class="row"> <div class="col-12"> <div class="card"> <table class="table datatables-basic"> <thead> <tr> <th></th> <th></th> <th><?php echo e(__('locale.labels.id')); ?></th> <th><?php echo e(__('locale.labels.number')); ?> </th> <th><?php echo e(__('locale.plans.price')); ?></th> <th><?php echo e(__('locale.labels.capabilities')); ?></th> <th><?php echo e(__('locale.labels.actions')); ?></th> </tr> </thead> </table> </div> </div> </div> </section> <!--/ Basic table --> <?php $__env->stopSection(); ?> <?php $__env->startSection('vendor-script'); ?> <script src="<?php echo e(asset(mix('vendors/js/tables/datatable/jquery.dataTables.min.js'))); ?>"></script> <script src="<?php echo e(asset(mix('vendors/js/tables/datatable/dataTables.bootstrap5.min.js'))); ?>"></script> <script src="<?php echo e(asset(mix('vendors/js/tables/datatable/dataTables.responsive.min.js'))); ?>"></script> <script src="<?php echo e(asset(mix('vendors/js/tables/datatable/responsive.bootstrap5.min.js'))); ?>"></script> <script src="<?php echo e(asset(mix('vendors/js/tables/datatable/datatables.checkboxes.min.js'))); ?>"></script> <script src="<?php echo e(asset(mix('vendors/js/tables/datatable/datatables.buttons.min.js'))); ?>"></script> <script src="<?php echo e(asset(mix('vendors/js/tables/datatable/buttons.html5.min.js'))); ?>"></script> <script src="<?php echo e(asset(mix('vendors/js/tables/datatable/dataTables.rowGroup.min.js'))); ?>"></script> <script src="<?php echo e(asset(mix('vendors/js/extensions/sweetalert2.all.min.js'))); ?>"></script> <script src="<?php echo e(asset(mix('vendors/js/extensions/polyfill.min.js'))); ?>"></script> <?php $__env->stopSection(); ?> <?php $__env->startSection('page-script'); ?> <script> $(document).ready(function () { "use strict" // init list view datatable $('.datatables-basic').DataTable({ "processing": true, "serverSide": true, "ajax": { "url": "<?php echo e(route('customer.numbers.available_numbers')); ?>", "dataType": "json", "type": "POST", "data": {_token: "<?php echo e(csrf_token()); ?>"} }, "columns": [ {"data": 'responsive_id', orderable: false, searchable: false}, {"data": "uid"}, {"data": "uid"}, {"data": "number"}, {"data": "price"}, {"data": "capabilities", orderable: false, searchable: false}, {"data": "action", orderable: false, searchable: false} ], searchDelay: 1500, columnDefs: [ { // For Responsive className: 'control', orderable: false, responsivePriority: 2, targets: 0 }, { targets: 1, visible: false }, { targets: 2, visible: false }, { // Actions targets: -1, title: '<?php echo e(__('locale.labels.actions')); ?>', orderable: false, render: function (data, type, full) { return ( '<a href="'+full['checkout']+'" class="text-primary" data-bs-toggle="tooltip" data-placement="top" title=' + full['buy'] + '>' + feather.icons['shopping-cart'].toSvg({class: 'font-medium-4'}) + '</a>' ); } } ], dom: '<"d-flex justify-content-between align-items-center mx-0 row"<"col-sm-12 col-md-6"l><"col-sm-12 col-md-6"f>>t<"d-flex justify-content-between mx-0 row"<"col-sm-12 col-md-6"i><"col-sm-12 col-md-6"p>>', language: { paginate: { // remove previous & next text from pagination previous: ' ', next: ' ' }, sLengthMenu: "_MENU_", sZeroRecords: "<?php echo e(__('locale.datatables.no_results')); ?>", sSearch: "<?php echo e(__('locale.datatables.search')); ?>", sProcessing: "<?php echo e(__('locale.datatables.processing')); ?>", sInfo: "<?php echo e(__('locale.datatables.showing_entries', ['start' => '_START_', 'end' => '_END_', 'total' => '_TOTAL_'])); ?>" }, responsive: { details: { display: $.fn.dataTable.Responsive.display.modal({ header: function (row) { let data = row.data(); return 'Details of ' + data['number']; } }), type: 'column', renderer: function (api, rowIdx, columns) { let data = $.map(columns, function (col) { return col.title !== '' // ? Do not show row in modal popup if title is blank (for check box) ? '<tr data-dt-row="' + col.rowIdx + '" data-dt-column="' + col.columnIndex + '">' + '<td>' + col.title + ':' + '</td> ' + '<td>' + col.data + '</td>' + '</tr>' : ''; }).join(''); return data ? $('<table class="table"/>').append('<tbody>' + data + '</tbody>') : false; } } }, aLengthMenu: [[10, 20, 50, 100], [10, 20, 50, 100]], order: [[2, "desc"]], displayLength: 10, }); }); </script> <?php $__env->stopSection(); ?> <?php echo $__env->make('layouts/contentLayoutMaster', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/bouloter/sms/resources/views/customer/Numbers/buy.blade.php ENDPATH**/ ?>