163 lines
8.2 KiB
PHP
163 lines
8.2 KiB
PHP
<?php $__env->startSection('breadcrumb'); ?>
|
|
<div>
|
|
<div>
|
|
<h1 class="page-title fw-medium fs-18 mb-2">سطل زباله کاربران</h1>
|
|
<div class="">
|
|
<nav>
|
|
<ol class="breadcrumb mb-0">
|
|
<li class="breadcrumb-item"><a href="javascript:void(0);">مدیریت کاربران</a></li>
|
|
<li class="breadcrumb-item"><a href="<?php echo e(route('admin.users.index')); ?>">لیست کاربران</a></li>
|
|
<li class="breadcrumb-item active" aria-current="page">سطل زباله کاربران</li>
|
|
</ol>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
<?php $__env->startSection('content'); ?>
|
|
<div class="container-fluid pt-4">
|
|
|
|
<div class="row">
|
|
<div class="col-xl-12">
|
|
<div class="card custom-card">
|
|
<div class="card-body p-3">
|
|
<div class="d-flex align-items-center justify-content-between flex-wrap gap-3">
|
|
|
|
<div>
|
|
<h6 class="mb-0 fw-semibold">
|
|
کاربران حذفشده
|
|
</h6>
|
|
</div>
|
|
|
|
<div class="d-flex">
|
|
<a href="<?php echo e(route('admin.users.index')); ?>" class="btn btn-primary me-2">
|
|
<i class="ri-arrow-go-back-line me-1 fw-medium align-middle"></i>
|
|
بازگشت به لیست کاربران
|
|
</a>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- Start::row -->
|
|
<div class="row">
|
|
<div class="col-xl-12">
|
|
<div class="card custom-card">
|
|
<div class="table-responsive">
|
|
<table class="table text-nowrap table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>نام و نام خانوادگی</th>
|
|
<th>ایمیل</th>
|
|
<th>شماره موبایل</th>
|
|
<th>تاریخ ثبت نام</th>
|
|
<th>تاریخ حذف</th>
|
|
<th>عملیات</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<?php if(session('success')): ?>
|
|
<tr>
|
|
<td colspan="6">
|
|
<span style="color: green"><?php echo e(session('success')); ?></span>
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
<?php if($errors->any()): ?>
|
|
<tr>
|
|
<td colspan="6">
|
|
<?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
|
|
<span style="color: red"><?php echo e($error); ?></span>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
<?php $__empty_1 = true; $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
|
|
<tr>
|
|
<td>
|
|
<div class="d-flex align-items-center">
|
|
<div class="flex-fill">
|
|
<span class="fw-medium fs-14 d-block text-truncate">
|
|
<?php echo e(getUserFullName($user)); ?>
|
|
|
|
</span>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
|
|
<td><?php echo e($user->email); ?></td>
|
|
|
|
<td><?php echo e($user->mobile); ?></td>
|
|
|
|
<td><?php echo e($user->created_at->toJalali()->format('H:i Y-m-d')); ?></td>
|
|
|
|
<td><?php echo e($user->deleted_at?->toJalali()->format('H:i Y-m-d')); ?></td>
|
|
|
|
<td>
|
|
<div class="hstack gap-2 fs-15">
|
|
|
|
<form action="<?php echo e(route('admin.users.restore', $user->id)); ?>"
|
|
method="POST">
|
|
<?php echo csrf_field(); ?>
|
|
|
|
<button type="submit"
|
|
class="btn btn-icon btn-sm btn-success-light"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="بازگردانی">
|
|
<i class="ri-arrow-go-back-line"></i>
|
|
</button>
|
|
</form>
|
|
|
|
<form action="<?php echo e(route('admin.users.forceDelete', $user->id)); ?>"
|
|
method="POST"
|
|
onsubmit="return confirm('آیا از حذف دائمی این کاربر مطمئن هستید؟')">
|
|
<?php echo csrf_field(); ?>
|
|
<?php echo method_field('DELETE'); ?>
|
|
|
|
<button type="submit"
|
|
class="btn btn-icon btn-sm btn-danger-light"
|
|
data-bs-toggle="tooltip"
|
|
data-bs-placement="top"
|
|
title="حذف دائمی">
|
|
<i class="ri-delete-bin-6-line"></i>
|
|
</button>
|
|
</form>
|
|
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
|
|
<tr>
|
|
<td colspan="6" class="text-center">
|
|
کاربری در سطل زباله وجود ندارد.
|
|
</td>
|
|
</tr>
|
|
<?php endif; ?>
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="card-footer d-flex justify-content-center align-items-center">
|
|
<div>
|
|
<?php echo e($users->links()); ?>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- End::row -->
|
|
|
|
</div>
|
|
<?php $__env->stopSection(); ?>
|
|
|
|
<?php echo $__env->make('admin.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH C:\Users\ASUS\Desktop\airline-agency\resources\views/admin/users/trash.blade.php ENDPATH**/ ?>
|