Viewing file: 9476aed9d1e3bc8c0b3f5a5292c7f471.php (6.09 KB) -rwxrwxrwx Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Campaign Overview <?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')); ?>"> <?php $__env->stopSection(); ?>
<?php $__env->startSection('content'); ?> <!-- Main content --> <section class="content"> <div class="row">
<div class="col-md-6"> <div class="small-box"> <div class="inner"> <p class="dashboard_counter mb-2"><?php echo e(count($overviews)); ?></p>
<h4><?php echo e(trans('Total Clicked')); ?></h4> </div> <div class="icon total-inbox-icon"> <i class="fa fa-envelope-open" aria-hidden="true"></i> </div> </div> </div> <div class="col-md-6"> <div class="small-box"> <div class="inner"> <p class="dashboard_counter mb-2"><?php echo e($total_contact); ?></p>
<h4><?php echo e(trans('Total Contacts')); ?></h4> </div> <div class="icon total-sent-icon"> <i class="fa fa-star" aria-hidden="true"></i> </div> </div> </div>
<div class="col-md-12 mb-4 mt-2"> <div class="row"> <div class="col-md-6 col-8"> <select name="short_url" id="short_url" class="form-control"> <option value=""><?php echo e(trans('--Select URL--')); ?></option> <?php $__currentLoopData = $short_links; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $short_link): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option value="<?php echo e($short_link->id); ?>"><?php echo e($short_link->url); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> <div class="col-md-6 col-8"> <div class="pt-1"> <strong class="url_result"> Select URL To See Statistic </strong> </div> </div>
</div> </div>
<div class="col-md-12"> <div class="card"> <div class="card-body"> <table id="contacts" class="table table-striped bg-white table-bordered dt-responsive nowrap"> <thead> <tr> <th scope="col">#</th> <th scope="col">Name</th> <th scope="col">Number</th> <th scope="col">URL</th> <th scope="col">IP Address</th> <th scope="col">Clicked At</th> </tr> </thead> <tbody> <?php if($overviews->isNotEmpty()): ?> <?php $__currentLoopData = $overviews; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key=>$overview): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e(++$key); ?></td> <td><?php echo e($overview->contact->fullname); ?></td> <td><?php echo e($overview->number); ?></td> <td><?php echo e($overview->short_link->url); ?></td> <td><?php echo e($overview->ip_address); ?></td> <td><?php echo e($overview->created_at->format('d-m-Y h:i A')); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <tr class="text-center"> <td colspan="5">No Data Available</td> </tr> <?php endif; ?> </tbody>
</table> </div> </div> </div>
<!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?> <script> "use strict";
$(".show-more").css('overflow', 'hidden').readmore({collapsedHeight: 20});
$(document).on('change', '#short_url', function(e){ const id=$(this).val();
$.ajax({ type:'GET', url:'<?php echo e(route('customer.shortlink.url.statistic')); ?>', data:{ id:id, campaign_id:'<?php echo e($campaign_id); ?>' },
success:function(res){
if(res.status=='success'){ $('.url_result').text('Total Clicked: '+res.clicked); }else{ $('.url_result').text('Select URL To See Statistic'); }
} }) }) </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/campaign/overview.blade.php ENDPATH**/ ?>
|