<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-md-10 col-xl-10 col-xxl-8 m-auto">
        <div class="card">
            <div class="card-header card-custom-bg d-flex flex-row align-items-center justify-content-between border-bottom mb-3">
                <h6 class="m-0 table__top__txt">Class Fees</h6>
                <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('accounting.class-wise-fees.create')): ?>
                <a href="<?php echo e(route('class_fees.create')); ?>" class="btn btn-sm btn-light-blue">Add New</a>
                <?php endif; ?>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="table-responsive">
                        <table class="table" id="dataTable">
                            <thead class="thead-light">
                                <tr>
                                    <th>ID</th>
                                    <th>Class</th>
                                    <th>Academic Year</th>
                                    <th>Total Fees</th>
                                    <th class="action__col">Action</th>
                                </tr>
                            </thead>

                            <tbody>
                                <?php
                                    $sn = 0;
                                ?>
                                <?php $__currentLoopData = $classFees; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $fees): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e(++$sn); ?></td>
                                        <td><?php echo e($fees->class_name); ?></td>
                                        <td><?php echo e($fees->year); ?></td>
                                        <td><?php echo e($fees->amount); ?></td>
                                        <td class="d-flex justify-content-start">
                                            <?php
                                                $routeParam = "$fees->student_class_id/$fees->academic_year_id";
                                            
                                            ?>
                                            <a href="<?php echo e(URL("accounting/class-fees/view/$routeParam")); ?>" class="btn btn-sm btn-soft-success mr-1"><i class="fas fa-eye"></i></a>
                                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('accounting.class-wise-fees.edit')): ?>
                                                <a href="<?php echo e(URL("accounting/class-fees/edit/$routeParam")); ?>" class="btn btn-sm btn-soft-info mr-1"><i class="fas fa-edit"></i></a>
                                                
                                            <?php endif; ?>
                                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('accounting.class-wise-fees.delete')): ?>
                                                <form action="<?php echo e(URL("accounting/class-fees/delete/$routeParam")); ?>"
                                                    method="POST"
                                                    onsubmit="return confirm('Are you sure you want to delete this')"
                                                    style="display:inline-block;">
                                                    <?php echo csrf_field(); ?>
                                                    <?php echo method_field('DELETE'); ?>
                                                    <button type="submit" class="btn btn-sm btn-soft-danger"><i class="fas fa-trash"></i></button>
                                                </form>
                                            <?php endif; ?>
                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.master', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /var/www/html/EdueasyCollege/resources/views/pages/accounting/class_fees/index.blade.php ENDPATH**/ ?>