<?php $__env->startSection('title', 'All Product'); ?>

<?php $__env->startSection('body'); ?>
    <div class="page-header">
        <div>
            <h1 class="page-title">Message</h1>
        </div>
    </div>

    <!-- Row -->
    <div class="row row-sm">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header border-bottom">
                    <h3 class="card-title">Messages</h3>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table table-bordered text-nowrap border-bottom" id="basic-datatable">
                            <thead>
                            <tr>
                                <th class="wd-15p border-bottom-0">Id</th>
                                <th class="wd-15p border-bottom-0">Name</th>
                                <th class="wd-15p border-bottom-0">Mobile</th>
                                <th class="wd-15p border-bottom-0">Subject</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $messages; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $message): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><a class="text-info" href="<?php echo e(route('detail.message', ['id' => $message->id])); ?>"><?php echo e($message->id); ?></a></td>
                                        <td><a class="text-info" href="<?php echo e(route('detail.message', ['id' => $message->id])); ?>"><?php echo e($message->name); ?></a></td>
                                        <td><a class="text-info" href="<?php echo e(route('detail.message', ['id' => $message->id])); ?>"><?php echo e(isset($message->phone) ? $message->phone : ' No Number'); ?></a></td>
                                        <td><a class="text-info" href="<?php echo e(route('detail.message', ['id' => $message->id])); ?>"><?php echo e(isset($message->subject) ? $message->subject : ' No Subject'); ?></a></td>
                                    </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- End Row -->

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


<?php echo $__env->make($master, \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\primary\resources\views/admin/dashboard/index.blade.php ENDPATH**/ ?>