<?php $__env->startSection('title', 'Trash Bahan Baku Paket'); ?>
<?php $__env->startSection('active8', 'active'); ?>
<?php $__env->startSection('menu1', 'open'); ?>
<?php $__env->startSection('content'); ?>

    <div class="content-wrapper">
        <div class="container-xxl flex-grow-1 container-p-y">
            <!-- Invoice List Table -->
            <div class="card">
                <div class="header-menu d-flex justify-content-between align-items-center">
                    <h3 class="card-header">Trash Bahan Baku Paket</h3>
                    <div class="box">

                        <button type="button" class="btn btn-primary btn-sm me-2" data-bs-toggle="modal"
                            data-bs-target="#staticBackdrop"><i class="bx bx-plus bx-sm"></i> Pulihkan</button>
                    </div>
                </div>


                <div class="table-responsive">
                    <table class="table" id="Mytable">
                        <thead>
                            <tr>
                                <th scope="col">Paket</th>
                                <th scope="col">Barang</th>
                                <th scope="col">Qty</th>
                                <th scope="col">Action</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__currentLoopData = $data; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $data): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <tr>
                                    <td><?php echo e($data->paket->nama_paket); ?> - <?php echo e('(' . $data->paket->satuan . ')'); ?></td>
                                    <td><?php echo e($data->barang->nama_barang); ?> - <?php echo e('(' . $data->barang->satuan . ')'); ?></td>

                                    <td><?php echo e($data->qty . '(' . $data->satuan . ')'); ?></td>
                                    <td><a href="<?php echo e(route('paket.edit', $data->id)); ?>"
                                            class="btn btn-sm btn-label-secondary"> <i class="bx bx-edit-alt"></i></a>
                                        <form action="<?php echo e(route('paket.aktifasi', $data->id)); ?>" method="POST">
                                            <?php echo csrf_field(); ?>
                                            <?php if($data->status == 'tidak aktif'): ?>
                                                <button type="submit" class="btn btn-sm btn-label-success"
                                                    onclick="return confirm('Apakah Anda yakin ingin mengaktifkan paket ini?')">
                                                    <i class="bx bx-check"></i></button>
                                            <?php elseif($data->status == 'aktif'): ?>
                                                <button type="submit" class="btn btn-sm btn-label-danger"
                                                    onclick="return confirm('Apakah Anda yakin ingin menonaktifkan paket ini?')">
                                                    <i class="bx bx-x"></i></button>
                                            <?php endif; ?>

                                        </form>

                                    </td>

                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        </tbody>
                    </table>
                </div>

            </div>

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

<?php echo $__env->make('component.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp_2\htdocs\Laundry\resources\views/paket/trash.blade.php ENDPATH**/ ?>