<?php $__env->startSection('title', 'Fee Types'); ?>
<?php $__env->startSection('page_title', 'Fee Types'); ?>
<?php $__env->startSection('breadcrumbs'); ?>
    <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>">Home</a></li><li class="breadcrumb-item active">Fee Types</li>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('page_actions'); ?>
    <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('fees.update')): ?><a href="<?php echo e(route('fee-types.create')); ?>" class="btn btn-primary"><i class="bi bi-plus-lg me-1"></i>Add Fee Type</a><?php endif; ?>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="card"><div class="card-body">
        <table class="table table-hover align-middle js-datatable">
            <thead><tr><th>Name</th><th>Code</th><th>Frequency</th><th class="text-end">Default Amount</th><th class="text-center">Discountable</th><th class="text-center">Status</th><th class="text-end">Actions</th></tr></thead>
            <tbody>
                <?php $__currentLoopData = $types; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $type): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td class="fw-semibold"><?php echo e($type->name); ?></td>
                        <td><?php echo e($type->code ?: '—'); ?></td>
                        <td><span class="badge bg-soft-info text-capitalize"><?php echo e(str_replace('_',' ',$type->frequency)); ?></span></td>
                        <td class="text-end"><?php echo e(number_format($type->default_amount)); ?></td>
                        <td class="text-center"><?php if($type->discountable): ?><i class="bi bi-check-circle text-success"></i><?php else: ?><i class="bi bi-dash text-muted"></i><?php endif; ?></td>
                        <td class="text-center"><?php if($type->is_active): ?><span class="badge bg-soft-success">Active</span><?php else: ?><span class="badge bg-soft-danger">Inactive</span><?php endif; ?></td>
                        <td class="text-end">
                            <?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)->check('fees.update')): ?>
                                <a href="<?php echo e(route('fee-types.edit', $type)); ?>" class="btn btn-sm btn-light border"><i class="bi bi-pencil"></i></a>
                                <form method="POST" action="<?php echo e(route('fee-types.destroy', $type)); ?>" class="d-inline" data-confirm="Delete <?php echo e($type->name); ?>?"><?php echo csrf_field(); ?> <?php echo method_field('DELETE'); ?><button class="btn btn-sm btn-light border text-danger"><i class="bi bi-trash"></i></button></form>
                            <?php endif; ?>
                        </td>
                    </tr>
                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
            </tbody>
        </table>
    </div></div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /home/u385418287/domains/itartificer.com/public_html/sms-erp/resources/views/fees/types/index.blade.php ENDPATH**/ ?>