```blade id="v3m8kp"




<?php $__env->startSection('title', 'Data Buku Nonaktif'); ?>

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

<style>

.container{
    max-width:1200px;
    margin:auto;
}

.title{
    margin-bottom:30px;
}

.title h1{
    font-size:38px;
    font-weight:700;
    background:linear-gradient(to right,#f59e0b,#f97316);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.table-wrapper{
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    border-radius:24px;
    overflow:hidden;
}

table{
    width:100%;
    border-collapse:collapse;
}

th{
    padding:20px;
    background:rgba(255,255,255,.05);
    color:#e2e8f0;
}

td{
    padding:18px;
    text-align:center;
    color:white;
    border-bottom:1px solid rgba(255,255,255,.05);
}

.btn-aktif{
    width:130px;
    height:40px;

    display:flex;
    align-items:center;
    justify-content:center;

    margin:auto;

    border:none;
    border-radius:12px;

    background:linear-gradient(135deg,#10b981,#059669);

    color:white;
    font-weight:700;
    cursor:pointer;
}

.alert-success{
    background:#10b981;
    color:white;
    padding:14px;
    border-radius:14px;
    margin-bottom:20px;
}

</style>

<div class="container">

    <?php if(session('success')): ?>

        <div class="alert-success">
            <?php echo e(session('success')); ?>

        </div>

    <?php endif; ?>

    <div class="title">

        <h1>📚 Buku Nonaktif</h1>

    </div>

    <div class="table-wrapper">

        <table>

            <thead>

                <tr>

                    <th>ID</th>
                    <th>Judul Buku</th>
                    <th>Pengarang</th>
                    <th>Aksi</th>

                </tr>

            </thead>

            <tbody>

                <?php $__currentLoopData = $buku; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $b): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                <tr>

                    <td><?php echo e($b->id_buku); ?></td>

                    <td><?php echo e($b->judul_buku); ?></td>

                    <td><?php echo e($b->pengarang); ?></td>

                    <td>

                        <form
                            action="/buku/<?php echo e($b->id_buku); ?>/aktifkan"
                            method="POST">

                            <?php echo csrf_field(); ?>
                            <?php echo method_field('PUT'); ?>

                            <button
                                type="submit"
                                class="btn-aktif">

                                ✅ Aktifkan

                            </button>

                        </form>

                    </td>

                </tr>

                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>

            </tbody>

        </table>

    </div>

</div>

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

<?php echo $__env->make('layouts.petugas', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\laragon\www\aplikasi-perpustakaan\resources\views/buku/nonaktif.blade.php ENDPATH**/ ?>