
<?php $__env->startSection('content'); ?>
<div class="card p-3">
    <div class="d-flex justify-content-between mb-3">
        <h4>Testimonials List</h4>
        <a href="<?php echo e(route('testimonials.create')); ?>" class="btn btn-primary">Create New</a>
    </div>
    <?php if(session('success')): ?>
        <div class="alert alert-success"><?php echo e(session('success')); ?></div>
    <?php endif; ?>
    <table class="table table-bordered">
        <thead>
            <tr>
                <th>Image</th>
                <th>Name</th>
                <th>Position</th>
                <th>Message</th>
                <th>Action</th>
            </tr>
        </thead>
        <tbody>
            <?php $__currentLoopData = $testimonials; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td><img src="<?php echo e(asset('uploads/testimonials/' . $item->image)); ?>" width="60" alt=""></td>
                <td><?php echo e($item->name); ?></td>
                <td><?php echo e($item->position); ?></td>
                <td><?php echo e(Str::limit($item->desc, 100)); ?></td>
                <td>
                    <a href="<?php echo e(route('testimonials.edit', $item->id)); ?>" class="btn btn-sm btn-warning">Edit</a>
                    <form action="<?php echo e(route('testimonials.destroy', $item->id)); ?>" method="POST" class="d-inline-block" onsubmit="return confirm('Are you sure?')">
                        <?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?>
                        <button class="btn btn-sm btn-danger">Delete</button>
                    </form>
                </td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
    </table>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.admin-dashboard', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\HP\Desktop\nehan-tech-solution\app\resources\views/admin/pages/testimonials/index.blade.php ENDPATH**/ ?>