<!DOCTYPE html>
<html lang="en">
<?php echo $__env->make('includes.head', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
<body id="kt_body" class="header-fixed header-tablet-and-mobile-fixed toolbar-enabled toolbar-fixed aside-enabled aside-fixed">
    <div class="d-flex flex-column flex-root">
        <div class="page d-flex flex-row flex-column-fluid">
            <?php echo $__env->make('includes.side-nav', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <div class="wrapper d-flex flex-column flex-row-fluid" id="kt_wrapper">
                <?php echo $__env->make('includes.header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                <div class="content d-flex flex-column flex-column-fluid" id="kt_content">
                   
                    <div class="post d-flex flex-column-fluid" id="kt_post">
                        <div id="kt_content_container" class="container-xxl">
                            <div class="card">
                                <?php echo $__env->make('includes.messages', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                <div class="card-header border-0 pt-6">
                                    <form method="GET" action="<?php echo e(route('enquiry.list')); ?>" class="row g-3 align-items-end">
                                        <div class="col-md-3">
                                            <label>Search (Name/Email/Phone)</label>
                                            <input type="text" name="search" class="form-control" value="<?php echo e(request('search')); ?>" placeholder="Search...">
                                        </div>
                                        <div class="col-md-2">
                                            <label>From Date</label>
                                            <input type="date" name="from_date" class="form-control" value="<?php echo e(request('from_date')); ?>">
                                        </div>
                                        <div class="col-md-2">
                                            <label>To Date</label>
                                            <input type="date" name="to_date" class="form-control" value="<?php echo e(request('to_date')); ?>">
                                        </div>
                                        <div class="col-md-2">
                                            <button type="submit" class="btn btn-primary w-100">Filter</button>
                                        </div>
                                        <div class="col-md-2">
                                            <a href="<?php echo e(route('enquiry.list')); ?>" class="btn btn-secondary w-100">Reset</a>
                                        </div>
                                    </form>
                                </div>
                                <div class="card-body pt-0">
                                    <div class="table-responsive">
                                        <table class="table align-middle table-row-dashed fs-6 gy-5">
                                            <thead>
                                                <tr>
                                                    <th>ID</th>
                                                    <th>Name</th>
                                                    <th>Email</th>
                                                    <th>Phone</th>
                                                    <th>Requirement</th>
                                                    <th>Date</th>
                                                    <th class="text-end">Actions</th>
                                                </tr>
                                            </thead>
                                            <tbody>
                                                <?php $__currentLoopData = $enquiries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $enq): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <tr>
                                                    <td><?php echo e($enq->id); ?></td>
                                                    <td><?php echo e($enq->name); ?></td>
                                                    <td><?php echo e($enq->email); ?></td>
                                                    <td><?php echo e($enq->phone); ?></td>
                                                    <td><?php echo e(ucfirst($enq->requirement)); ?></td>
                                                    <td><?php echo e($enq->created_at->format('d M Y, h:i A')); ?></td>
                                                    <td class="text-end">
                                                        <a href="<?php echo e(route('enquiry.show', $enq->id)); ?>" class="btn btn-sm btn-primary">View</a>
                                                        <a href="<?php echo e(route('enquiry.delete', $enq->id)); ?>" class="btn btn-sm btn-danger" onclick="return confirm('Delete this enquiry?')">Delete</a>
                                                    </td>
                                                </tr>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </tbody>
                                        </table>
                                    </div>
                                    <?php echo e($enquiries->appends(request()->query())->links('pagination::bootstrap-4')); ?>

                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <?php echo $__env->make('includes.footer', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            </div>
        </div>
    </div>
    <?php echo $__env->make('includes.scripts', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
</body>
</html>
<?php /**PATH D:\xampp\htdocs\creativeValley9\resources\views/Admin/Enquiry/list.blade.php ENDPATH**/ ?>