
<?php $__env->startSection('title'); ?>
    Admin | All Data
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
<div class="container-fluid">
    <?php echo $__env->make('back.parts.message', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
    <div class="row justify-content-center">
        <div class="col-lg-10">
            <div class="card mb-4">
                <div class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
                    <div class="col-md-6">
                        <h6 class="m-0 font-weight-bold text-primary">All Testimonial</h6>
                    </div>
                    <div class="col-md-6">
                        <a href="<?php echo e(route('testimonial.create')); ?>" class="btn btn-primary float-right">Add New</a>
                    </div>
                </div>
                    <div class="table-responsive">
                        <table class="table align-items-center table-flush">
                            <thead class="thead-light">
                            <tr>
                                <th class="text-center" style="width: 70px">ID</th>
                                <th>Client Name</th>
                                <th>Designation</th>
                                <th>Order</th>
                                <th>Comment</th>
                                <th class="text-center">Image</th>
                                <th class="text-center" style="width: 170px">Action</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php $__currentLoopData = $items; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td class="text-center"><?php echo e($item->id); ?></td>
                                    <td><?php echo e($item->client_name); ?></td>
                                    <td><?php echo e($item->designation); ?></td>
                                    <td><?php echo e($item->order); ?></td>
                                    <td><?php echo e($item->comment); ?></td>
                                    <td class="text-center"> 
                                    <?php if(!empty($item->image)): ?>
                                        <img class="profileImgShow" src="<?php echo e(asset('img/testimonial/'.$item->image)); ?>">
                                    <?php endif; ?>
                                    </td>
                                    <td class="text-center col__action__body">
                                        <a href="<?php echo e(route('testimonial.edit', ['id' => $item->id])); ?>"
                                           class="btn btn-soft-primary btn-icon btn-circle btn-sm"><i class="fa fa-edit"></i></a>
                                        <a href="<?php echo e(route('testimonial.destroy', ['id' => $item->id])); ?>"
                                           onclick="return confirm('Are you sure to delete this!')"
                                           class="btn btn-soft-danger btn-icon btn-circle btn-sm"><i class="fa fa-trash"></i> </a>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
            </div>
        </div>
    </div>
</div>
    
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.backend', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/hotelier/public_html/resources/views/back/testimonial/index.blade.php ENDPATH**/ ?>