

<?php $__env->startSection('content'); ?>

<div class="card">
    <div class="card-header">
        <h4>Data Paket</h4>
    </div>
    <div class="card-body">
        <!-- Tambahkan button di sini -->
        <div class="buttons">
            <a href="#" class="btn btn-icon icon-left btn-primary" data-toggle="modal"
                data-target="#tambahDataPaketModal"><i class="far fa-edit"></i> Tambah Data Paket</a>
        </div>
        <div class="table-responsive">
            <table class="table table-striped table-hover" id="tableExport" style="width:100%;">
                <thead>
                    <tr>
                        <th class="d-none">ID</th>
                        <th>No</th>
                        <th>Kode Paket</th>
                        <th>Nama Paket</th>
                        <th>Harga Per Kg</th>
                        <th>Waktu Per Hari</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $dataPakets; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $dataPaket): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td class="d-none"><?php echo e($dataPaket->id); ?></td>
                        <td><?php echo e($loop->iteration); ?></td>
                        <td><?php echo e($dataPaket->kode_paket); ?></td>
                        <td><?php echo e($dataPaket->nama_paket); ?></td>
                        <td>RP <?php echo e(number_format($dataPaket->harga_per_kg, 0, ',', '.')); ?></td>
                        <td><?php echo e($dataPaket->waktu); ?></td>
                        <td>
                            <a href="#" class="btn btn-icon btn-warning" data-toggle="modal"
                                data-target="#editDataPaketModal<?php echo e($dataPaket->id); ?>">
                                <i class="fas fa-edit"></i>
                            </a>
                            <a href="#" class="btn btn-icon btn-danger delete-data-paket"
                                data-id="<?php echo e($dataPaket->id); ?>"><i class="fas fa-times"></i></a>
                        </td>
                    </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </div>
</div>

<?php $__env->stopSection(); ?>
<?php echo $__env->make('Layout.main', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\Users\Iluvia\Desktop\WebLaundryV2\resources\views/Menu/datapaket.blade.php ENDPATH**/ ?>