HEX
Server: Apache/2.4.41 (Amazon) OpenSSL/1.0.2k-fips PHP/5.6.40
System: Linux ip-172-31-40-18 4.14.146-93.123.amzn1.x86_64 #1 SMP Tue Sep 24 00:45:23 UTC 2019 x86_64
User: apache (48)
PHP: 5.6.40
Disabled: NONE
Upload Files
File: //var/www/html/punjabcabs/storage/framework/views/3200c83cb22091d0a950c4a5167eb10cede888a2.php
<?php $__env->startSection('title', 'Trip Payout Report | '); ?>
<?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.at_payout_report'); ?></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.at_payout_report'); ?></li>
        </ol>
      </div>
    </div>
    <div class="box box-block bg-white">
      <table class="table table-striped table-bordered dataTable" id="tripPayOutReportTable">
        <thead>
          <tr>
            <th>#</th>
            <th><?php echo app('translator')->get('admin.payout.cab_trans_id'); ?></th>
            <th><?php echo app('translator')->get('admin.payout.company'); ?></th>
            <th><?php echo app('translator')->get('admin.payout.name'); ?></th>
            <th><?php echo app('translator')->get('admin.payout.total'); ?></th>
            <th><?php echo app('translator')->get('admin.payout.commission'); ?></th>
            <th><?php echo app('translator')->get('admin.payout.cab_payout'); ?></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(){
    $('#tripPayOutReportTable').DataTable({
      "searching": true,
      "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.app-trip-payout-report-list')); ?>",
        "headers": {'X-CSRF-TOKEN': "<?php echo e(csrf_token()); ?>"},
        "dataType": "json",
        "type": "POST",
      },
      "columns": [
          { "data": "id" },
          { "data": "transaction_id" },
          { "data": "fleetCompany" },
          { "data": "fleetName" },
          { "data": "total" },
          { "data": "commission" },
          { "data": "payout" },
          { "data": "details" },
      ],    
      "createdRow": function (row, data, dataIndex) {
        $(row).addClass("openPayOutDetails"+data.payoutId);
      }
    });
  }
  $(document).ready(function() {
    $(document).on("click", ".payOutDetails > span", function() {
      var payOutId = $(this).attr('data-check');
      if ($(this).hasClass("active")) {
        $('.moreDetailsTr'+payOutId).slideUp(300);
        $(this).removeClass("active");
        $(this)
          .siblings(".content")
          .slideUp(200);
        $(this)
          .find("i")
          .removeClass("fa-minus")
          .addClass("fa-plus");
        $('.moreDetailsTr'+payOutId).remove();
      } else {
        $('.fa-minus').click();
        $('.openPayOutDetails'+payOutId).after('<tr class="moreDetailsTr'+payOutId+'"><td colspan="8"><div class="text-center moreDetails'+payOutId+'"></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.app-trip-payout-details')); ?>",
          data: {
            payOutId: payOutId,
          },
          beforeSend: function() {
            $('.moreDetails'+payOutId).css({"text-align" : "center", "min-height": "35px"});
            $('.moreDetails'+payOutId).html('<i class="fa fa-circle-o-notch fa-spin" style="font-size:24px;color:#a377b1;"></i>');
          },
          success: function(res) {
            $('.moreDetails'+payOutId).css("text-align", '');
            $('.moreDetails'+payOutId).html(res);
          }
        });
      }
    });
  });
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layout.base', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>