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/4929cc60e9d3e27398ba34c8f7345d8a21360a21.php
<?php $__env->startSection('title', 'Complaints'); ?>

<?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">Complaints</h4>
            </div>
        </div>

        <div class="box box-block bg-white">
            <table class="table table-striped table-bordered dataTable" id="table-2">
                <thead>
                    <tr>
                        <th><?php echo app('translator')->get('admin.member.id'); ?></th>
                        <th>Name</th>
                        <th>Email</th>
                        <th>Phone</th>
                        <th>Complaint type</th>
                        <th>Complaint Description</th>
                        <th>Created at</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $complaints; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $index => $complaint): $__env->incrementLoopIndices(); $loop = $__env->getFirstLoop(); ?>
                    <tr>
                        <td><?php echo e($index + 1); ?></td>
                        <td><?php echo e($complaint->name); ?></td>
                        <td><?php echo e($complaint->email); ?></td>
                        <td><?php echo e($complaint->phone); ?></td>
                        <td><?php echo e($complaint->complaint_type); ?></td>
                        <td><?php echo e($complaint->complaint_desc); ?></td>
                        <td><?php echo e(datetime_formatter($complaint->created_at)); ?></td>
                        <td>
                           <form action="<?php echo e(route('admin.complaint.destroy', $complaint->id)); ?>" method="POST">
                                <?php echo e(csrf_field()); ?>

                                <input type="hidden" name="_method" value="DELETE">
                                <button class="btn btn-danger btn-rounded label-left b-a-0 waves-effect waves-light" onclick="return confirm('Are you sure?')"><span class="btn-label"><i class="fa fa-trash"></i></span> <?php echo app('translator')->get('admin.member.delete'); ?></button>
                            </form> 
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getFirstLoop(); ?>
                </tbody>
                <tfoot>
                    <tr>
                        <th><?php echo app('translator')->get('admin.member.id'); ?></th>
                        <th>Name</th>
                        <th>Email</th>
                        <th>Phone</th>
                        <th>Complaint type</th>
                        <th>Complaint Description</th>
                        <th>Created at</th>
                        <th>Action</th>
                    </tr>
                </tfoot>
            </table>
        </div>
    </div>
</div>

<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.layout.base', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>