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


<div class="mb-4">
    <h4 class="fw-bold">Trash</h4>
    <p class="text-muted small">Recover deleted users or packages.</p>
</div>


<ul class="nav nav-tabs mb-3" id="recycleTabs" role="tablist">
    <li class="nav-item">
        <button class="nav-link active" id="users-tab" data-bs-toggle="tab" data-bs-target="#users"
            type="button" role="tab">
            <i class="fas fa-user me-1"></i> Users
        </button>
    </li>

    <li class="nav-item">
        <button class="nav-link" id="packages-tab" data-bs-toggle="tab" data-bs-target="#packages"
            type="button" role="tab">
            <i class="fas fa-store me-1"></i> Packages
        </button>
    </li>
</ul>

<div class="tab-content">

    
    <div class="tab-pane fade show active" id="users" role="tabpanel">
        <div class="card shadow-sm">
            <div class="card-body">

                <table class="table table-hover align-middle">
                    <thead class="table-light">
                        <tr>
                            <th>ID</th>
                            <th>Username</th>
                            <th>Email</th>
                            <th>Deleted Date</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $usertrashs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $usertrash): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr>
                            <td><?php echo e($usertrash->id); ?></td>
                            <td><?php echo e($usertrash->name); ?></td>
                            <td><?php echo e($usertrash->email); ?></td>
                            <td><?php echo e($usertrash->deleted_at); ?></td>
                            <td>
                                <div class="d-flex gap-2">

                                    
                                    <form action="<?php echo e(route('trash.rollbackUser', $usertrash->id)); ?>" method="post">
                                        <?php echo csrf_field(); ?>
                                        <?php echo method_field('post'); ?>
                                        <button type="submit" class="btn btn-success btn-sm">Restore</button>
                                    </form>

                                    
                                    <form action="<?php echo e(route('trash.forcedeleteUser', $usertrash->id)); ?>" method="post">
                                        <?php echo csrf_field(); ?>
                                        <?php echo method_field('post'); ?>
                                        <button type="submit" class="btn btn-danger btn-sm">Delete</button>
                                    </form>

                                </div>
                            </td>
                        </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <tr>
                            <td colspan="5" class="text-center text-danger fw-bold">
                                Nothing in recycle bin.
                            </td>
                        </tr>
                        <?php endif; ?>
                    </tbody>
                </table>

            </div>
        </div>
    </div>

    
    <div class="tab-pane fade" id="packages" role="tabpanel">
        <div class="card shadow-sm">
            <div class="card-body">

                <table class="table table-hover align-middle">
                    <thead class="table-light">
                        <tr>
                            <th>ID</th>
                            <th>Package Name</th>
                            <th>Description</th>
                            <th>Deleted Date</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $__empty_1 = true; $__currentLoopData = $packagetrashs; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $packagetrash): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                        <tr>
                            <td><?php echo e($packagetrash->package_id); ?></td>
                            <td><?php echo e($packagetrash->package_name); ?></td>
                            <td><?php echo e($packagetrash->package_desc); ?></td>
                            <td><?php echo e($packagetrash->deleted_at); ?></td>
                            <td>
                                <div class="d-flex gap-2">

                                    
                                    <form action="<?php echo e(route('trash.rollbackPackageshop', $packagetrash->package_id)); ?>" method="post">
                                        <?php echo csrf_field(); ?>
                                        <?php echo method_field('post'); ?>
                                        <button class="btn btn-success btn-sm">Restore</button>
                                    </form>

                                    
                                    <form action="<?php echo e(route('trash.forcedeletePackageshop', $packagetrash->package_id)); ?>" method="post">
                                        <?php echo csrf_field(); ?>
                                        <?php echo method_field('post'); ?>
                                        <button class="btn btn-danger btn-sm">Delete</button>
                                    </form>

                                </div>
                            </td>
                        </tr>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                        <tr>
                            <td colspan="5" class="text-center text-danger fw-bold">
                                Nothing in recycle bin.
                            </td>
                        </tr>
                        <?php endif; ?>
                    </tbody>
                </table>

            </div>
        </div>
    </div>

</div>

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

<?php echo $__env->make('manage.admin.index', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\xampp8.2\htdocs\MCCMS\resources\views/manage/admin/trash/trash.blade.php ENDPATH**/ ?>