chore: finalize project updates
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
<form method="GET" action="{{ route('admin.users.index') }}" class="row g-3 align-items-end">
|
||||
|
||||
<div class="col-md-4">
|
||||
<label class="form-label">کلمه کلیدی (نام / ایمیل / موبایل)</label>
|
||||
<label class="form-label">کلمه کلیدی (نام / نام خانوادگی / ایمیل / موبایل)</label>
|
||||
<input type="text" name="search" value="{{ request('search') }}"
|
||||
class="form-control" placeholder="جستجو...">
|
||||
</div>
|
||||
@@ -110,7 +110,7 @@
|
||||
<tr>
|
||||
<td>{{ $user->id }}</td>
|
||||
<td>
|
||||
<div class="fw-semibold">{{ $user->full_name ?? $user->name }}</div>
|
||||
<div class="fw-semibold">{{ $user->first_name }} {{ $user->last_name }}</div>
|
||||
<small class="text-muted">کاربر سایت</small>
|
||||
</td>
|
||||
<td>{{ $user->email }}</td>
|
||||
@@ -126,31 +126,25 @@
|
||||
{{ $user->created_at?->toJalali()->format('Y/m/d') ?? '-' }}
|
||||
</td>
|
||||
|
||||
{{-- عملیات (بر اساس دسترسی) --}}
|
||||
{{-- عملیات --}}
|
||||
<td class="text-center">
|
||||
<div class="d-flex justify-content-center gap-2">
|
||||
|
||||
@can('users.edit')
|
||||
<a href="{{ route('admin.users.edit', $user) }}"
|
||||
class="btn btn-sm btn-primary fw-semibold">ویرایش</a>
|
||||
@endcan
|
||||
<a href="{{ route('admin.users.edit', $user) }}"
|
||||
class="btn btn-sm btn-primary fw-semibold">ویرایش</a>
|
||||
|
||||
@can('users.change-password')
|
||||
<a href="{{ route('admin.users.change-password', $user) }}"
|
||||
class="btn btn-sm btn-warning fw-semibold">تغییر رمز</a>
|
||||
@endcan
|
||||
<a href="{{ route('admin.users.change-password', $user) }}"
|
||||
class="btn btn-sm btn-warning fw-semibold">تغییر رمز</a>
|
||||
|
||||
@can('users.delete')
|
||||
<form action="{{ route('admin.users.destroy', $user) }}"
|
||||
method="POST" class="d-inline"
|
||||
onsubmit="return confirm('آیا از حذف این کاربر مطمئن هستید؟')">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button type="submit" class="btn btn-sm btn-danger fw-semibold">
|
||||
حذف
|
||||
</button>
|
||||
</form>
|
||||
@endcan
|
||||
<form action="{{ route('admin.users.destroy', $user) }}"
|
||||
method="POST" class="d-inline"
|
||||
onsubmit="return confirm('آیا از حذف این کاربر مطمئن هستید؟')">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
<button type="submit" class="btn btn-sm btn-danger fw-semibold">
|
||||
حذف
|
||||
</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
@@ -177,358 +171,3 @@
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
{{--@extends('admin.layouts.app')--}}
|
||||
|
||||
{{--@section('title', 'مدیریت کاربران')--}}
|
||||
|
||||
{{--@section('breadcrumb')--}}
|
||||
{{-- <div>--}}
|
||||
{{-- <h1 class="page-title fw-medium fs-18 mb-2">مدیریت کاربران</h1>--}}
|
||||
{{-- <nav>--}}
|
||||
{{-- <ol class="breadcrumb mb-0">--}}
|
||||
{{-- <li class="breadcrumb-item">--}}
|
||||
{{-- <a href="{{ route('admin.dashboard.index') }}">داشبورد</a>--}}
|
||||
{{-- </li>--}}
|
||||
{{-- <li class="breadcrumb-item active">مدیریت کاربران</li>--}}
|
||||
{{-- </ol>--}}
|
||||
{{-- </nav>--}}
|
||||
{{-- </div>--}}
|
||||
{{--@endsection--}}
|
||||
|
||||
{{--@section('content')--}}
|
||||
{{-- <div class="container-fluid pt-4">--}}
|
||||
|
||||
{{-- @if(session('success'))--}}
|
||||
{{-- <div class="alert alert-success alert-dismissible fade show" role="alert">--}}
|
||||
{{-- {{ session('success') }}--}}
|
||||
{{-- <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- @endif--}}
|
||||
|
||||
{{-- @if(session('error'))--}}
|
||||
{{-- <div class="alert alert-danger alert-dismissible fade show" role="alert">--}}
|
||||
{{-- {{ session('error') }}--}}
|
||||
{{-- <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- @endif--}}
|
||||
|
||||
{{-- --}}{{-- جستجو --}}
|
||||
{{-- <div class="row">--}}
|
||||
{{-- <div class="col-xl-12">--}}
|
||||
{{-- <div class="card custom-card">--}}
|
||||
{{-- <div class="card-body p-3">--}}
|
||||
{{-- <form method="GET" action="{{ route('admin.users.index') }}"--}}
|
||||
{{-- class="d-flex flex-wrap gap-2 align-items-center">--}}
|
||||
{{-- <div class="flex-grow-1" style="min-width: 200px;">--}}
|
||||
{{-- <input type="text"--}}
|
||||
{{-- name="search"--}}
|
||||
{{-- value="{{ request('search') }}"--}}
|
||||
{{-- class="form-control"--}}
|
||||
{{-- placeholder="جستجو بر اساس نام، ایمیل یا موبایل...">--}}
|
||||
{{-- </div>--}}
|
||||
{{-- <button type="submit" class="btn btn-primary">جستجو</button>--}}
|
||||
{{-- @if(request('search'))--}}
|
||||
{{-- <a href="{{ route('admin.users.index') }}" class="btn btn-secondary">پاککردن</a>--}}
|
||||
{{-- @endif--}}
|
||||
{{-- </form>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- --}}{{-- جدول کاربران --}}
|
||||
{{-- <div class="row">--}}
|
||||
{{-- <div class="col-xl-12">--}}
|
||||
{{-- <div class="card custom-card">--}}
|
||||
{{-- <div class="card-body p-3 d-flex justify-content-between align-items-center">--}}
|
||||
{{-- <h5 class="mb-0">لیست کاربران</h5>--}}
|
||||
{{-- <span class="badge bg-primary-transparent">{{ $users->total() }} کاربر</span>--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- <div class="table-responsive">--}}
|
||||
{{-- <table class="table text-nowrap table-hover table-bordered mb-0">--}}
|
||||
{{-- <thead>--}}
|
||||
{{-- <tr>--}}
|
||||
{{-- <th>#</th>--}}
|
||||
{{-- <th>نام کاربر</th>--}}
|
||||
{{-- <th>ایمیل</th>--}}
|
||||
{{-- <th>موبایل</th>--}}
|
||||
{{-- <th>وضعیت</th>--}}
|
||||
{{-- <th>تاریخ عضویت</th>--}}
|
||||
{{-- <th class="text-center">عملیات</th>--}}
|
||||
{{-- </tr>--}}
|
||||
{{-- </thead>--}}
|
||||
|
||||
{{-- <tbody>--}}
|
||||
{{-- @forelse($users as $user)--}}
|
||||
{{-- <tr>--}}
|
||||
{{-- <td>{{ $user->id }}</td>--}}
|
||||
|
||||
{{-- --}}{{-- نام --}}
|
||||
{{-- <td>--}}
|
||||
{{-- <div class="d-flex align-items-center">--}}
|
||||
{{-- <div class="avatar avatar-sm bg-primary-transparent me-2 fw-semibold">--}}
|
||||
{{-- {{ mb_substr($user->full_name ?? $user->name, 0, 1) }}--}}
|
||||
{{-- </div>--}}
|
||||
{{-- <div>--}}
|
||||
{{-- <div class="fw-semibold">{{ $user->full_name ?? $user->name }}</div>--}}
|
||||
{{-- <small class="text-muted">کاربر سایت</small>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </td>--}}
|
||||
|
||||
{{-- --}}{{-- ایمیل --}}
|
||||
{{-- <td>{{ $user->email }}</td>--}}
|
||||
|
||||
{{-- --}}{{-- موبایل --}}
|
||||
{{-- <td>{{ $user->mobile ?? '-' }}</td>--}}
|
||||
|
||||
{{-- --}}{{-- وضعیت --}}
|
||||
{{-- <td>--}}
|
||||
{{-- @if((int) $user->status === 1)--}}
|
||||
{{-- <span class="badge bg-success-subtle text-success">فعال</span>--}}
|
||||
{{-- @else--}}
|
||||
{{-- <span class="badge bg-danger-subtle text-danger">غیرفعال</span>--}}
|
||||
{{-- @endif--}}
|
||||
{{-- </td>--}}
|
||||
|
||||
{{-- --}}{{-- تاریخ عضویت --}}
|
||||
{{-- <td>--}}
|
||||
{{-- @if($user->created_at)--}}
|
||||
{{-- {{ $user->created_at->toJalali()->format('Y/m/d H:i') }}--}}
|
||||
{{-- @else--}}
|
||||
{{-- ---}}
|
||||
{{-- @endif--}}
|
||||
{{-- </td>--}}
|
||||
|
||||
{{-- --}}{{-- عملیات --}}
|
||||
{{-- <td class="text-center">--}}
|
||||
{{-- <div class="d-flex justify-content-center gap-2">--}}
|
||||
|
||||
{{-- --}}{{-- ویرایش --}}
|
||||
{{-- <a href="{{ route('admin.users.edit', $user) }}"--}}
|
||||
{{-- class="btn btn-sm btn-primary fw-semibold">--}}
|
||||
{{-- ویرایش--}}
|
||||
{{-- </a>--}}
|
||||
|
||||
{{-- --}}{{-- حذف --}}
|
||||
{{-- <form action="{{ route('admin.users.destroy', $user) }}"--}}
|
||||
{{-- method="POST"--}}
|
||||
{{-- class="d-inline"--}}
|
||||
{{-- onsubmit="return confirm('آیا از حذف این کاربر مطمئن هستید؟')">--}}
|
||||
{{-- @csrf--}}
|
||||
{{-- @method('DELETE')--}}
|
||||
{{-- <button type="submit" class="btn btn-sm btn-danger fw-semibold">--}}
|
||||
{{-- حذف--}}
|
||||
{{-- </button>--}}
|
||||
{{-- </form>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
{{-- </td>--}}
|
||||
{{-- </tr>--}}
|
||||
{{-- @empty--}}
|
||||
{{-- <tr>--}}
|
||||
{{-- <td colspan="7" class="text-center py-5 text-muted">--}}
|
||||
{{-- کاربری برای نمایش وجود ندارد.--}}
|
||||
{{-- </td>--}}
|
||||
{{-- </tr>--}}
|
||||
{{-- @endforelse--}}
|
||||
{{-- </tbody>--}}
|
||||
{{-- </table>--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- --}}{{-- صفحهبندی --}}
|
||||
{{-- @if($users->hasPages())--}}
|
||||
{{-- <div class="card-footer">--}}
|
||||
{{-- {{ $users->links() }}--}}
|
||||
{{-- </div>--}}
|
||||
{{-- @endif--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
{{--@endsection--}}
|
||||
|
||||
|
||||
{{--@extends('admin.layouts.app')--}}
|
||||
|
||||
{{--@section('title', 'مدیریت کاربران')--}}
|
||||
|
||||
{{--@section('breadcrumb')--}}
|
||||
{{-- <div>--}}
|
||||
{{-- <h1 class="page-title fw-medium fs-18 mb-2">مدیریت کاربران</h1>--}}
|
||||
{{-- <nav>--}}
|
||||
{{-- <ol class="breadcrumb mb-0">--}}
|
||||
{{-- <li class="breadcrumb-item">--}}
|
||||
{{-- <a href="{{ route('admin.dashboard.index') }}">داشبورد</a>--}}
|
||||
{{-- </li>--}}
|
||||
{{-- <li class="breadcrumb-item active">مدیریت کاربران</li>--}}
|
||||
{{-- </ol>--}}
|
||||
{{-- </nav>--}}
|
||||
{{-- </div>--}}
|
||||
{{--@endsection--}}
|
||||
|
||||
{{--@section('content')--}}
|
||||
{{-- <div class="container-fluid pt-4">--}}
|
||||
|
||||
{{-- @if(session('success'))--}}
|
||||
{{-- <div class="alert alert-success alert-dismissible fade show" role="alert">--}}
|
||||
{{-- {{ session('success') }}--}}
|
||||
{{-- <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- @endif--}}
|
||||
|
||||
{{-- @if(session('error'))--}}
|
||||
{{-- <div class="alert alert-danger alert-dismissible fade show" role="alert">--}}
|
||||
{{-- {{ session('error') }}--}}
|
||||
{{-- <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- @endif--}}
|
||||
|
||||
{{-- --}}{{----}}{{-- جستجو --}}
|
||||
{{-- <div class="row">--}}
|
||||
{{-- <div class="col-xl-12">--}}
|
||||
{{-- <div class="card custom-card">--}}
|
||||
{{-- <div class="card-body p-3">--}}
|
||||
{{-- <form method="GET" action="{{ route('admin.users.index') }}"--}}
|
||||
{{-- class="d-flex flex-wrap gap-2 align-items-center">--}}
|
||||
{{-- <div class="flex-grow-1" style="min-width: 200px;">--}}
|
||||
{{-- <input type="text"--}}
|
||||
{{-- name="search"--}}
|
||||
{{-- value="{{ request('search') }}"--}}
|
||||
{{-- class="form-control"--}}
|
||||
{{-- placeholder="جستجو بر اساس نام، ایمیل یا موبایل...">--}}
|
||||
{{-- </div>--}}
|
||||
{{-- <button type="submit" class="btn btn-primary">جستجو</button>--}}
|
||||
{{-- @if(request('search'))--}}
|
||||
{{-- <a href="{{ route('admin.users.index') }}" class="btn btn-secondary">پاککردن</a>--}}
|
||||
{{-- @endif--}}
|
||||
{{-- </form>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- --}}{{----}}{{-- جدول کاربران --}}
|
||||
{{-- <div class="row">--}}
|
||||
{{-- <div class="col-xl-12">--}}
|
||||
{{-- <div class="card custom-card">--}}
|
||||
{{-- <div class="card-body p-3 d-flex justify-content-between align-items-center">--}}
|
||||
{{-- <h5 class="mb-0">لیست کاربران</h5>--}}
|
||||
{{-- <span class="badge bg-primary-transparent">{{ $users->total() }} کاربر</span>--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- <div class="table-responsive">--}}
|
||||
{{-- <table class="table text-nowrap table-hover table-bordered mb-0">--}}
|
||||
{{-- <thead>--}}
|
||||
{{-- <tr>--}}
|
||||
{{-- <th>#</th>--}}
|
||||
{{-- <th>نام کاربر</th>--}}
|
||||
{{-- <th>ایمیل</th>--}}
|
||||
{{-- <th>موبایل</th>--}}
|
||||
{{-- <th>وضعیت</th>--}}
|
||||
{{-- <th>تاریخ عضویت</th>--}}
|
||||
{{-- <th class="text-center">عملیات</th>--}}
|
||||
{{-- </tr>--}}
|
||||
{{-- </thead>--}}
|
||||
|
||||
{{-- <tbody>--}}
|
||||
{{-- @forelse($users as $user)--}}
|
||||
{{-- <tr>--}}
|
||||
{{-- <td>{{ $user->id }}</td>--}}
|
||||
|
||||
{{-- --}}{{----}}{{-- نام --}}
|
||||
{{-- <td>--}}
|
||||
{{-- <div class="d-flex align-items-center">--}}
|
||||
{{-- <div class="avatar avatar-sm bg-primary-transparent me-2 fw-semibold">--}}
|
||||
{{-- {{ mb_substr($user->full_name ?? $user->name, 0, 1) }}--}}
|
||||
{{-- </div>--}}
|
||||
{{-- <div>--}}
|
||||
{{-- <div class="fw-semibold">{{ $user->full_name ?? $user->name }}</div>--}}
|
||||
{{-- <small class="text-muted">کاربر سایت</small>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </td>--}}
|
||||
|
||||
{{-- --}}{{----}}{{-- ایمیل --}}
|
||||
{{-- <td>{{ $user->email }}</td>--}}
|
||||
|
||||
{{-- --}}{{----}}{{-- موبایل --}}
|
||||
{{-- <td>{{ $user->mobile ?? '-' }}</td>--}}
|
||||
|
||||
{{-- --}}{{----}}{{-- وضعیت --}}
|
||||
{{-- <td>--}}
|
||||
{{-- @if((int) $user->status === 1)--}}
|
||||
{{-- <span class="badge bg-success-subtle text-success">فعال</span>--}}
|
||||
{{-- @else--}}
|
||||
{{-- <span class="badge bg-danger-subtle text-danger">غیرفعال</span>--}}
|
||||
{{-- @endif--}}
|
||||
{{-- </td>--}}
|
||||
|
||||
{{-- --}}{{----}}{{-- تاریخ عضویت --}}
|
||||
{{-- <td>--}}
|
||||
{{-- @if($user->created_at)--}}
|
||||
{{-- {{ $user->created_at->toJalali()->format('Y/m/d H:i') }}--}}
|
||||
{{-- @else--}}
|
||||
{{-- ---}}
|
||||
{{-- @endif--}}
|
||||
{{-- </td>--}}
|
||||
|
||||
{{-- --}}{{----}}{{-- عملیات --}}
|
||||
{{-- <td class="text-center">--}}
|
||||
{{-- <div class="d-flex justify-content-center gap-2">--}}
|
||||
|
||||
{{-- --}}{{----}}{{-- نمایش --}}
|
||||
{{-- <a href="{{ route('admin.users.show', $user) }}"--}}
|
||||
{{-- class="btn btn-sm btn-secondary fw-semibold">--}}
|
||||
{{-- نمایش--}}
|
||||
{{-- </a>--}}
|
||||
|
||||
{{-- --}}{{----}}{{-- ویرایش --}}
|
||||
{{-- <a href="{{ route('admin.users.edit', $user) }}"--}}
|
||||
{{-- class="btn btn-sm btn-primary fw-semibold">--}}
|
||||
{{-- ویرایش--}}
|
||||
{{-- </a>--}}
|
||||
|
||||
{{-- --}}{{----}}{{-- حذف --}}
|
||||
{{-- <form action="{{ route('admin.users.destroy', $user) }}"--}}
|
||||
{{-- method="POST"--}}
|
||||
{{-- class="d-inline"--}}
|
||||
{{-- onsubmit="return confirm('آیا از حذف این کاربر مطمئن هستید؟')">--}}
|
||||
{{-- @csrf--}}
|
||||
{{-- @method('DELETE')--}}
|
||||
{{-- <button type="submit" class="btn btn-sm btn-danger fw-semibold">--}}
|
||||
{{-- حذف--}}
|
||||
{{-- </button>--}}
|
||||
{{-- </form>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
{{-- </td>--}}
|
||||
{{-- </tr>--}}
|
||||
{{-- @empty--}}
|
||||
{{-- <tr>--}}
|
||||
{{-- <td colspan="7" class="text-center py-5 text-muted">--}}
|
||||
{{-- کاربری برای نمایش وجود ندارد.--}}
|
||||
{{-- </td>--}}
|
||||
{{-- </tr>--}}
|
||||
{{-- @endforelse--}}
|
||||
{{-- </tbody>--}}
|
||||
{{-- </table>--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- --}}{{----}}{{-- صفحهبندی --}}
|
||||
{{-- @if($users->hasPages())--}}
|
||||
{{-- <div class="card-footer">--}}
|
||||
{{-- {{ $users->links() }}--}}
|
||||
{{-- </div>--}}
|
||||
{{-- @endif--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
{{--@endsection--}}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user