Viewing file: d678c8c24de108ffe29ba9f2e0f562fdb328cdc0.php (6.48 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title'); ?> Campaign Report <?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-12 mt-3"> <div class="card"> <div class="card-header"> <h2 class="card-title">Campaign Report </h2> </div> <form action="<?php echo e(route('customer.campaign.report')); ?>" method="get" class="pl-4 mt-4"> <div class="row mr-3 mx-auto"> <div class="col-sm-2"></div> <div class="col-sm-5"> <div class="form-group"> <label for="">Select Campaign</label> <select name="campaign_id" class="form-control" id=""> <?php $__currentLoopData = $campaigns; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $campaign): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <option <?php echo e(isset($requestData) && isset($requestData['campaign_id']) && $requestData['campaign_id']==$campaign->id?'selected':''); ?> value="<?php echo e($campaign->id); ?>"><?php echo e($campaign->title); ?></option> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> </select> </div> </div>
<div class="col-sm-3 mt-2"> <button class="btn btn-primary mt-4" type="submit">Submit</button> </div> </div> </form>
<!-- /.card-header --> <div class="card-body table-body"> <table id="campaignReports" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th><?php echo app('translator')->get('customer.from'); ?></th> <th><?php echo app('translator')->get('customer.to'); ?></th> <th><?php echo app('translator')->get('customer.message'); ?></th> <th><?php echo app('translator')->get('customer.status'); ?></th> </tr> </thead> <tbody> <?php if($reports && $reports->isNotEmpty()): ?> <?php $__currentLoopData = $reports; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $report): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?> <tr> <td><?php echo e($report->from); ?></td> <td><?php echo e($report->to); ?></td> <td> <div class="show-more"> <?php echo e($report->body); ?>
</div> </td> <td> <?php if($report->status=='succeed'): ?> Delivered At: <?php echo e(formatDate($report->delivered_at)); ?>
<?php elseif($report->status=='failed'): ?> <?php if($q->failed_reason): ?> Failed Reason: <?php echo e($report->failed_reason); ?>
<?php else: ?> Failed Reason: n/a <?php endif; ?>
<?php elseif($report->status=='running' && $report->schedule_completed=='no' && $report->schedule_datetime): ?> Queued At: <?php echo e(formatDate($report->schedule_datetime)); ?>
<?php else: ?> <?php echo e(ucfirst($report->status)); ?>
<?php endif; ?> </td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <tr class="text-center"> <td colspan="4"><strong>No Data Available</strong></td> </tr> <?php endif; ?> </tbody> </table> <div class="row pt-1"> <div class="col-sm-12 text-right mt-4"> <?php if($reports): ?> <?php echo e($reports->withQueryString()); ?>
<?php endif; ?> </div> </div> </div> <!-- /.card-body --> </div> <!-- /.card --> </div> <!-- /.col --> </div> <!-- /.row --> </section> <!-- /.content --> <?php $__env->stopSection(); ?>
<?php $__env->startSection('extra-scripts'); ?> <script> $(".show-more").css('overflow', 'hidden').readmore({collapsedHeight: 20}); </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/picotext.picotech.app/public_html/resources/views/customer/campaign/report.blade.php ENDPATH**/ ?>
|