File: //var/www/html/punjabcabs/storage/framework/views/e02f411c1b5f1ac4946a77dbb06621cfd8868367.php
<?php $__env->startSection('title', 'Cab Charge | '); ?>
<?php $__env->startSection('content'); ?>
<div class="content-area py-1">
<div class="container-fluid">
<div class="row bg-title">
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-12">
<h4 class="page-title"><?php echo app('translator')->get('admin.payout.cc_taxi'); ?></h4>
</div>
<div class="col-lg-6 col-sm-6 col-md-6 col-xs-12">
<ol class="breadcrumb">
<li><a href="<?php echo e(route('admin.dashboard')); ?>"><?php echo app('translator')->get('admin.dashboard'); ?></a></li>
<li class="active"><?php echo app('translator')->get('admin.payout.cc'); ?></li>
</ol>
</div>
</div>
<div class="box box-block bg-white">
<table class="table table-striped table-bordered dataTable" id="cc-taxi">
<thead>
<tr>
<th>#</th>
<th><?php echo app('translator')->get('admin.payout.name'); ?></th>
<th><?php echo app('translator')->get('admin.payout.taxi'); ?></th>
<th><?php echo app('translator')->get('admin.payout.dc'); ?></th>
<th><?php echo app('translator')->get('admin.payout.company'); ?></th>
<th><?php echo app('translator')->get('admin.payout.list_charge'); ?></th>
<th><?php echo app('translator')->get('admin.payout.list_eftpos'); ?></th>
<th><?php echo app('translator')->get('admin.payout.iHail'); ?></th>
<th><?php echo app('translator')->get('admin.payout.eTicket'); ?></th>
<th><?php echo app('translator')->get('admin.payout.list_details'); ?></th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
<script>
$(window).load(function(){
updateTable();
});
function updateTable(){
$('#cc-taxi').DataTable({
"destroy": true,
"responsive": true,
"dom": 'Bfrtip',
"buttons": [
'excelHtml5',
'csvHtml5',
'pdfHtml5'
],
"oLanguage": {
'sProcessing': '<i class="fa fa-circle-o-notch fa-spin" style="font-size:24px;color:#a377b1;"></i>'
},
"processing": true,
"serverSide": true,
"ajax":{
"url": "<?php echo e(route('admin.cab-charge-list-taxi-wise')); ?>",
"headers": {'X-CSRF-TOKEN': "<?php echo e(csrf_token()); ?>"},
"dataType": "json",
"type": "POST",
},
"columns": [
{ "data": "count" },
{ "data": "name" },
{ "data": "service_number" },
{ "data": "dc" },
{ "data": "company" },
{ "data": "charge" },
{ "data": "eftpos" },
{ "data": "iHail" },
{ "data": "eTicket" },
{ "data": "details" },
],
"createdRow": function (row, data, dataIndex) {
$(row).addClass("openCabDetails"+data.driver_id);
}
});
}
$(document).ready(function() {
$(document).on("click", ".cabDetails > span", function() {
var driverId = $(this).attr('data-check');
if ($(this).hasClass("active")) {
$('.moreDetailsTr'+driverId).slideUp(300);
$(this).removeClass("active");
$(this)
.siblings(".content")
.slideUp(200);
$(this)
.find("i")
.removeClass("fa-minus")
.addClass("fa-plus");
$('.moreDetailsTr'+driverId).remove();
} else {
$('.fa-minus').click();
$('.openCabDetails'+driverId).after('<tr class="moreDetailsTr'+driverId+'"><td colspan="10"><div class="text-center moreDetails'+driverId+'"></div></td></tr>')
$(this).addClass("active");
$(this)
.find("i")
.removeClass("fa-plus")
.addClass("fa-minus");
$.ajax({
type: "POST",
headers: {'X-CSRF-TOKEN': "<?php echo e(csrf_token()); ?>"},
url: "<?php echo e(route('admin.more-taxi-details')); ?>",
data: {
driverId: driverId,
},
beforeSend: function() {
$('.moreDetails'+driverId).css({"text-align" : "center", "min-height": "35px"});
$('.moreDetails'+driverId).html('<i class="fa fa-circle-o-notch fa-spin" style="font-size:24px;color:#a377b1;"></i>');
},
success: function(res) {
$('.moreDetails'+driverId).css("text-align", '');
$('.moreDetails'+driverId).html(res);
}
});
}
});
});
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.base', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>