<?php if (isset($component)) { $__componentOriginal1a6cca1fb3b05e19b47840b98800a235 = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginal1a6cca1fb3b05e19b47840b98800a235 = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.layouts.dashboard','data' => ['title' => 'Contact Messages']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('layouts.dashboard'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Contact Messages']); ?>
    <?php if (isset($component)) { $__componentOriginald938e474240bb91dae7eded41f706ecb = $component; } ?>
<?php if (isset($attributes)) { $__attributesOriginald938e474240bb91dae7eded41f706ecb = $attributes; } ?>
<?php $component = Illuminate\View\AnonymousComponent::resolve(['view' => 'components.widgets.page-header','data' => ['title' => 'Contact Messages']] + (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag ? (array) $attributes->getIterator() : [])); ?>
<?php $component->withName('widgets.page-header'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php if (isset($attributes) && $attributes instanceof Illuminate\View\ComponentAttributeBag && $constructor = (new ReflectionClass(Illuminate\View\AnonymousComponent::class))->getConstructor()): ?>
<?php $attributes = $attributes->except(collect($constructor->getParameters())->map->getName()->all()); ?>
<?php endif; ?>
<?php $component->withAttributes(['title' => 'Contact Messages']); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginald938e474240bb91dae7eded41f706ecb)): ?>
<?php $attributes = $__attributesOriginald938e474240bb91dae7eded41f706ecb; ?>
<?php unset($__attributesOriginald938e474240bb91dae7eded41f706ecb); ?>
<?php endif; ?>
<?php if (isset($__componentOriginald938e474240bb91dae7eded41f706ecb)): ?>
<?php $component = $__componentOriginald938e474240bb91dae7eded41f706ecb; ?>
<?php unset($__componentOriginald938e474240bb91dae7eded41f706ecb); ?>
<?php endif; ?>

    <div class="card">
        <div class="card-body">
            <table class="table table-bordered" id="messages-table">
                <thead>
                    <tr>
                        <th>S/N</th>
                        <th class="fw-bold">Name</th>
                        <th>Email</th>
                        <th>Subject</th>
                        <th>Phone</th>
                        <th></th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $contacts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $contact): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <td><?php echo e($id++); ?></td>
                            <td> <?php echo e($contact->name); ?> </td>
                            <td> <?php echo e($contact->email); ?> </td>
                            <td> <?php echo e($contact->subject); ?> </td>
                            <td> <?php echo e($contact->phone); ?> </td>
                            <td class="text-end">
                                <a wire:navigate href="<?php echo e(route('contact-message.single', $contact->id)); ?>" class="btn btn-primary"><i class="feather icon-eye"></i></a>
                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </div>
    <script>
        $('#messages-table').DataTable({
            columnDefs: [{
                targets: [5],
                orderable: false
            }]
        });
    </script>
        <?php if(session('success')): ?>
        <script>
            toast.success(<?php echo \Illuminate\Support\Js::from(session('success'))->toHtml() ?>)
        </script>
    <?php endif; ?>
 <?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__attributesOriginal1a6cca1fb3b05e19b47840b98800a235)): ?>
<?php $attributes = $__attributesOriginal1a6cca1fb3b05e19b47840b98800a235; ?>
<?php unset($__attributesOriginal1a6cca1fb3b05e19b47840b98800a235); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal1a6cca1fb3b05e19b47840b98800a235)): ?>
<?php $component = $__componentOriginal1a6cca1fb3b05e19b47840b98800a235; ?>
<?php unset($__componentOriginal1a6cca1fb3b05e19b47840b98800a235); ?>
<?php endif; ?><?php /**PATH /home/u334869836/domains/xpressdeliveryltd.com/public_html/resources/views/admin/contact-message/all.blade.php ENDPATH**/ ?>