
<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-lg-12 col-md-12 col-12">

            <div>
                <div class="d-flex justify-content-between align-items-center">
                    <div class="mb-2 mb-lg-0">
                        <h3 class="mb-0  text-white"> About Us </h3>
                    </div>
                    <div>
                        <a href="<?php echo e(route('about-us.create')); ?>" class="btn btn-white">Create </a>
                    </div>
                </div>
            </div>
        </div> 

        <div class="col-12 mt-3">
         
            <?php if(session('success')): ?>
                <div class="alert alert-success"><?php echo e(session('success')); ?></div>
            <?php endif; ?>
       
                <table class="table table-bordered mt-3 bg-white">
                    <thead>
                        <tr>
                            <th>#</th>
                            <th>ID</th>
                            <th>Title</th>
                            <th>Description</th>
                            <th>Image</th>
                            <th>Actions</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php if(count($groups)): ?>
                        <?php $__currentLoopData = $groups; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                            <?php $__currentLoopData = $group->aboutUsEntries; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $item): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td><?php echo e($key + 1); ?></td>
                                    <td><?php echo e($item->id); ?></td>
                                    <td><?php echo e($item->title); ?></td>
                                    <td><?php echo $item->description; ?></td>
                                    <td>
                                        <?php if($item->image): ?>
                                            <img src="<?php echo e(asset($item->image)); ?>" alt="About Us Image" width="100">
                                        <?php else: ?>
                                            <p>No image available</p>
                                        <?php endif; ?>
                                    </td>
                                    <td class="d-flex justify-content-center align-items-center gap-1">
                                        <a href="<?php echo e(route('about-us.edit', $group->id)); ?>" class="btn btn-warning btn-sm">Edit</a>
                                        <!--<form action="<?php echo e(route('about-us.destroy', $group->id)); ?>" method="POST" style="display:inline-block;">-->
                                        <!--    <?php echo csrf_field(); ?>-->
                                        <!--    <?php echo method_field('DELETE'); ?>-->
                                        <!--    <button type="submit" class="btn btn-danger btn-sm">Delete</button>-->
                                        <!--</form>-->
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                    <?php else: ?>
                        <p>No About Us information found. <a href="<?php echo e(route('about-us.create')); ?>">Create About Us</a></p>
                    <?php endif; ?>
                    </tbody>
                </table>
         

          
        </div>
    </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\shresthi\app (2)\app\resources\views/admin/pages/about-us/index.blade.php ENDPATH**/ ?>