Viewing file: 69a2983d9ba5606228a48f779ef5fd59.php (6.32 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php $__env->startSection('title', trans('customer.Campaign_Report')); ?>
<?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 <?php if(isset($requestData) && isset($requestData['response_code'])): ?> of status <span class="text-danger"><?php echo e($requestData['response_code']); ?></span><?php endif; ?></h2> </div> <form action="<?php echo e(route('customer.campaign.report')); ?>" method="get" class="pl-4 mt-4"> <div class="row mr-3"> <div class="col-sm-2"></div> <div class="col-sm-3"> <div class="form-group"> <label for=""><?php echo e(trans('customer.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"> <div class="form-group"> <label for=""><?php echo e(trans('customer.Select_Response_Code')); ?></label> <input type="number" name="response_code" placeholder="Enter Code" class="form-control" value="<?php echo e(isset($requestData) && isset($requestData['response_code'])?$requestData['response_code']:''); ?>"> </div> </div> <div class="col-sm-3 mt-2"> <button class="btn btn-primary mt-4" type="submit"><?php echo e(trans('customer.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.response_code'); ?></th> <th><?php echo app('translator')->get('customer.updated_at'); ?></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->from); ?></td> <td> <div class="show-more"> <?php echo e($report->body); ?>
</div> </td> <td><?php echo e($report->response_code); ?></td> <td><?php echo e(formatDate($report->updated_at)); ?></td> </tr> <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?> <?php else: ?> <tr class="text-center"> <td colspan="5"><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> "use strict";
$(".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/sms.picotech.app/public_html/resources/views/customer/campaign/report.blade.php ENDPATH**/ ?>
|