 
 <?php $__env->startSection('content'); ?>
     <div class="content-page">
         <div class="content">

             <!-- Start Content-->
             <div class="container-fluid">

                 <!-- start page title -->
                 <div class="row">
                     <div class="col-12">
                         <div class="page-title-box">
                             <div class="page-title-right">
                                 <ol class="breadcrumb m-0">
                                     <a href="<?php echo e(route('enquiry.index')); ?>" class="btn btn-sm btn-dark waves-effect">
                                         <i class="mdi mdi-plus me-1"></i> All enquiry
                                     </a>
                                 </ol>
                             </div>
                             <h4 class="page-title">All Enquiry</h4>
                         </div>
                     </div>
                 </div>

                 <!-- end page title -->

                 <div class="row">
                     <div class="card">
                         <div class="card-body">
                             <table class="table table-striped table-centered mb-0">
                                 <thead>
                                     <tr>
                                         <th>Name</th>
                                         <th>Phone Number</th>
                                         <th>Email</th>
                                         <th>Subject</th>
                                         <th>Message</th>
                                         <th>Action</th>
                                     </tr>
                                 </thead>
                                 <tbody>

                                     <?php $__currentLoopData = $enquirys; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $enquiry): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                         <tr>

                                             <td><?php echo e($enquiry->name); ?></td>
                                             <td><?php echo e($enquiry->number); ?></td>
                                             <td><?php echo e($enquiry->email); ?></td>
                                             <td><?php echo e($enquiry->subject); ?></td>
                                             <?php if(isset($enquiry->message)): ?>
                                                 <td><?php echo e($enquiry->message); ?></td>
                                             <?php else: ?>
                                                 <td class="text-danger">N/A</td>
                                             <?php endif; ?>
                                             <td>

                                                 <form action="<?php echo e(route('enquiry.destroy', $enquiry->id)); ?>" method="POST">
                                                     <?php echo method_field('DELETE'); ?>
                                                     <?php echo csrf_field(); ?>
                                                     <button class="btn text-danger btn-sm" onclick="return areyousure();  "
                                                         title="Delete" class="action-icon">
                                                         <i class="mdi mdi-delete" aria-hidden="true"></i> </button>
                                                 </form>
                                             </td>
                                         </tr>
                                     <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

                                 </tbody>
                             </table>
                         </div>
                     </div>
                 </div>

             </div>
             <!-- container -->

         </div>
         <!-- content -->

     </div>

     </div>
     <!-- END wrapper -->
 <?php $__env->stopSection(); ?>

<?php echo $__env->make('backend.layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\auto-enterprises\resources\views/backend/enquiry/index.blade.php ENDPATH**/ ?>