

<?php $__env->startSection('content'); ?>
    <div class="card">
        <div class="card-header d-flex justify-content-between align-items-center">
            <h5 class="mb-0">Founders</h5>
            <a href="<?php echo e(route('founders.create')); ?>" class="btn btn-sm btn-primary">Add Founder</a>
        </div>
        <div class="card-body">
            <?php echo $__env->make('components.alert', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
            <div class="table-responsive">
                <table class="table table-bordered w-100" id="dt-responsive">
                    <thead class="thead-light">
                        <tr>
                            <th>SL</th>
                            <th>Image</th>
                            <th>Name</th>
                            <th>Designation</th>
                            <th>About</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $founders; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $founder): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                            <tr>
                                <td><?php echo e($loop->iteration); ?></td>
                                <td>
                                    <?php if(isset($founder) && $founder->image): ?>
                                        <div class="mt-2">
                                            <img src="<?php echo e(asset($founder->image)); ?>" width="120" alt="founder Image">
                                        </div>
                                    <?php else: ?>
                                        <img src="<?php echo e(asset('images/no-image.png')); ?>" width="80" alt="No Image">
                                    <?php endif; ?>
                                </td>
                                <td><?php echo e($founder->name); ?></td>
                                <td><?php echo e($founder->position); ?></td>
                                <td><?php echo e($founder->about); ?></td>
                                <td>
                                    <a href="<?php echo e(route('founders.edit', $founder->id)); ?>" class="btn btn-sm btn-primary">
                                        Edit
                                    </a>
                                    <form action="<?php echo e(route('founders.destroy', $founder->id)); ?>" method="POST"
                                        class="d-inline-block"
                                        onsubmit="return confirm('Are you sure you want to delete this founder?')">
                                        <?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(); if ($__empty_1): ?>
                            <tr>
                                <td colspan="8" class="text-center">No Founder found.</td>
                            </tr>
                        <?php endif; ?>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('admin.masterAdmin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\TGP-hospital-site\resources\views/admin/founders/index.blade.php ENDPATH**/ ?>