<?php $__env->startSection('title'); ?>
Pembayaran kelas <?php echo e($kelas->tingkatan); ?> <?php echo e($kelas->jurusan); ?>

<?php $__env->stopSection(); ?>

<?php $__env->startPush('before-script'); ?>

<?php if(session('status')): ?>
<?php if (isset($component)) { $__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Sweetalertsession::class, ['tipe' => ''.e(session('tipe')).'','status' => ''.e(session('status')).'']); ?>
<?php $component->withName('sweetalertsession'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5)): ?>
<?php $component = $__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5; ?>
<?php unset($__componentOriginal6bb91b748cddfa526a1e6a6c5efd3ee0dde567e5); ?>
<?php endif; ?>
<?php endif; ?>
<?php $__env->stopPush(); ?>


<?php $__env->startSection('content'); ?>
<section class="section">
    <div class="section-header">
        <h1><?php echo $__env->yieldContent('title'); ?></h1>
        <div class="section-header-breadcrumb">
            <div class="breadcrumb-item active"><a href="<?php echo e(route('dashboard')); ?>">Dashboard</a></div>
            
            <div class="breadcrumb-item"><?php echo $__env->yieldContent('title'); ?></div>
        </div>
    </div>

    <div class="section-body">
        <div class="card">
            <div class="card-body">

                <div class="row align-items-center">

                    <div class="col-12 col-md-3">
                        <form action="<?php echo e(route('pembayaran')); ?>" method="GET">
                            <select class="js-example-basic-single py-0  <?php $__errorArgs = ['kelas_id'];
$__bag = $errors->getBag($__errorArgs[1] ?? 'default');
if ($__bag->has($__errorArgs[0])) :
if (isset($message)) { $__messageOriginal = $message; }
$message = $__bag->first($__errorArgs[0]); ?>
                            is-invalid
                        <?php unset($message);
if (isset($__messageOriginal)) { $message = $__messageOriginal; }
endif;
unset($__errorArgs, $__bag); ?>" name="kelas_id"  style="width: 100%" >

                            <option disabled selected value=""> Pilih Kelas</option>
                            <?php $__currentLoopData = $getkelas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $t): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <option value="<?php echo e($t->id); ?>"> <?php echo e($t->tingkatan); ?> <?php echo e($t->jurusan); ?> <?php echo e($t->suffix); ?> </option>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            </select>
                        </div>
                        <div class="col-12 col-md-4">

                            <span>
                                <input class="btn btn-info ml-1 mt-2 mt-sm-0" type="submit" id="babeng-submit"
                                    value="Pilih ">
                            </span>
                        </div>

                        <div class="col-12 col-md-4">

                        </form>

                    </div>
                </div>

                <?php if (isset($component)) { $__componentOriginal7f6fe7bbf5512b742c0bcffa8025ccbaf91ac921 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\Jsmultidel::class, ['link' => ''.e(route('tagihan.multidel')).'']); ?>
<?php $component->withName('jsmultidel'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal7f6fe7bbf5512b742c0bcffa8025ccbaf91ac921)): ?>
<?php $component = $__componentOriginal7f6fe7bbf5512b742c0bcffa8025ccbaf91ac921; ?>
<?php unset($__componentOriginal7f6fe7bbf5512b742c0bcffa8025ccbaf91ac921); ?>
<?php endif; ?>

                <?php if($datas->count()>0): ?>
                    
                    <?php $__env->startPush('after-style'); ?>
                        
                        <link rel="stylesheet" href="https://cdn.datatables.net/1.11.3/css/jquery.dataTables.min.css">
                    <?php $__env->stopPush(); ?>
                    <?php $__env->startPush('before-script'); ?>

    <script>
        $(document).ready(function() {
            $('#example').DataTable({
                paging: true,
                info: true,
               "pageLength": 10,
                searching: true,
                 "dom": '<lf<t>ip>',

                // "pagingType": "full_numbers",

                // "dom": '<"top"f>rt<"bottom"pil><"clear">'
            });
    $('#example').removeClass( 'display' ).addClass('table table-striped table-bordered table-sm');

        } );
    </script>
                    <?php $__env->stopPush(); ?>
                <?php endif; ?>

                <div style="clear: both;margin-top: 18px;">
                <table id="example" class="table table-striped table-bordered" style="width:100%">
                    <thead>
                        <tr style="background-color: #F1F1F1">
                            <th class="text-center py-2 babeng-min-row">
                                No</th>
                            <th >Bayar</th>
                            <th >Nama Tagihan </th>
                            <th >Nominal Tagihan</th>
                            <th >Terbayar</th>
                            <th >Kurang</th>
                            <th >% </th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $datas; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr >
                                <td class="text-center">
                                    <?php echo e(((($loop->index)+1))); ?></td>
                                <td class="babeng-min-row">
                                    <button class="btn btn-sm btn-light"><i class="far fa-money-bill-alt"></i></button>
                                </td>
                                <td>
                                    <?php echo e(Str::limit($data->siswa->nama,25,' ...')); ?>

                                </td>

                                <td>
                                    <?php echo e(Fungsi::rupiah($data->totaltagihan)); ?>

                                </td>
                                <td>
                                    <?php echo e(Fungsi::rupiah($data->terbayar)); ?>

                                </td>
                                <td>
                                    <?php echo e(Fungsi::rupiah($data->kurang)); ?>

                                </td>

                                <td class="text-center babeng-min-row">
                                    <?php
                                    $warna='light';
                                        if($data->persen>=75){
                                            $warna='success';
                                        }
                                    ?>
                                    <button class="btn btn-sm  btn-<?php echo e($warna); ?>"><?php echo e($data->persen); ?>%</button>
                                </td>
                            </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                            <tr>
                                <td colspan="5" class="text-center">Data tidak ditemukan</td>
                            </tr>
                        <?php endif; ?>
                    </tbody>
                </table>
                </div>

<?php
$cari=$request->cari;
?>
<div class="d-flex justify-content-between flex-row-reverse mt-3">
    <div >

    </div>
    <div>

    </div></div>
            </div>
        </div>
    </div>
</section>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.default', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Xampp 8.2\htdocs\sim\resources\views/pages/admin/pembayaran/index.blade.php ENDPATH**/ ?>