

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

<div class="card">
    <div class="card-header">
        <h4>Data Inventaris</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="#tambahDataInventarisModal"><i class="far fa-edit"></i> Tambah Data Inventaris</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>Nama Barang</th>
                        <th>Harga Barang</th>
                        <th>Jumlah Barang</th>
                        <th>Total Harga</th>
                        <th>Tanggal</th>
                        <th>Action</th>
                    </tr>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $dataInvens; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $DataInventaris): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                    <tr>
                        <td class="d-none"><?php echo e($DataInventaris->id); ?></td>
                        <td><?php echo e($loop->iteration); ?></td>
                        <td><?php echo e($DataInventaris->nama_barang); ?></td>
                        <td>RP <?php echo e(number_format($DataInventaris->harga_barang, 0, ',', '.')); ?></td>
                        <td><?php echo e($DataInventaris->jumlah_barang); ?></td>
                        <td>RP <?php echo e(number_format($DataInventaris->harga_barang * $DataInventaris->jumlah_barang, 0, ',',
                            '.')); ?></td>
                        <td><?php echo e($DataInventaris->tanggal); ?></td>
                        <td>
                            <a href="#" class="btn btn-icon btn-warning" data-toggle="modal"
                                data-target="#editDataInventarisModal<?php echo e($DataInventaris->id); ?>">
                                <i class="fas fa-edit"></i>
                            </a>
                            <a href="#" class="btn btn-icon btn-danger delete-data-inven"
                                data-id="<?php echo e($DataInventaris->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 E:\WebLaundryV2\resources\views/Menu/datainven.blade.php ENDPATH**/ ?>