<div class="content-wrapper">
    <div class="container-xxl flex-grow-1 container-p-y">
        <div class="row mt-3">

            <div class="col-12 col-sm-6 col-lg-4 mb-6">
                <div class="card">
                    <div class="card-body text-center">
                        <i class="mb-4 text-heading ti ti-vocabulary ti-32px"></i>
                        <h5>Add New Division</h5>
                        <a href="/create_division">
                            <button type="button" class="btn btn-primary">
                                ADD
                            </button>
                        </a>
                    </div>
                </div>
            </div>

            <div class="col-12 col-sm-6 col-lg-4 mb-6">
                <div class="card">
                    <div class="card-body text-center">
                        <i class="mb-4 text-heading ti ti-map-search ti-32px"></i>
                        <h5>Add New GN Division</h5>
                        <a href="/create_division_by_gn">
                            <button type="button" class="btn btn-primary">
                                ADD
                            </button>
                        </a>
                    </div>
                </div>
            </div>

            <div class="col-12 col-sm-6 col-lg-4 mb-6">
                <div class="card">
                    <div class="card-body text-center">
                        <i class="mb-4 text-heading ti ti-users-group ti-32px"></i>
                        <h5>Add New Small Group</h5>
                        <a href="/create_smallgroup_by_gn">
                            <button type="button" class="btn btn-primary">
                                ADD
                            </button>
                        </a>
                    </div>
                </div>
            </div>

        </div>
        <div class="row">
            <div class="col">
                <div class="card shadow">
                    <div class="card-header text-uppercase custom-header bg-primary text-bg-info fw-bold">
                        <i class="menu-icon ti ti-users-plus"></i> Division by GN
                    </div>
                    <div class="card-body">
                        <div class="row mt-3">
                            <table class="table table-sm datatableView">
                                <thead>
                                    <tr>
                                        <th>#</th>
                                        <th>Division Name</th>
                                        <th>Gn Division Name</th>
                                        <th>Small Group</th>
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php
                                        $i = 1;
                                    ?>

                                    <?php $__currentLoopData = $getGnSmallGroup; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gnsmall): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><?php echo e($i++); ?></td>
                                            <td>
                                                <?php $__currentLoopData = $getDivision; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $divi): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php if($divi->id == $gnsmall->divisionId): ?>
                                                        <?php echo e($divi->divisionName); ?>

                                                    <?php endif; ?>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </td>
                                            <td>
                                                <?php $__currentLoopData = $getGnDivision; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $gn): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                    <?php if($gn->id == $gnsmall->gnDivisionId): ?>
                                                        <?php echo e($gn->gnDivisionName); ?>

                                                    <?php endif; ?>
                                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </td>
                                            <td><?php echo e($gnsmall->smallGroupName); ?></td>
                                            <td>
                                                <div class="dropdown">
                                                    <button type="button" class="btn p-0 dropdown-toggle hide-arrow"
                                                        data-bs-toggle="dropdown">
                                                        <i class="ti ti-dots-vertical"></i>
                                                    </button>
                                                    <div class="dropdown-menu">
                                                        <a class="dropdown-item text-black" href="#"><i
                                                                class="ti ti-edit me-1"></i> Edit</a>
                                                        <a class="dropdown-item text-danger" href="#"><i
                                                                class="ti ti-trash me-1"></i> Delete</a>

                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>


                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php /**PATH /Users/anlex/Desktop/untitled folder/ngo/resources/views/pages/allpages/manage_division.blade.php ENDPATH**/ ?>