File: //var/www/html/punjabcabs/storage/framework/views/5701eb85e5c3468825d0ae7202a15940df6a8c56.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(); ?>