fix : fix panel admin blades
This commit is contained in:
@@ -19,112 +19,111 @@
|
||||
@endsection
|
||||
|
||||
@section('content')
|
||||
<div class="main-content app-content">
|
||||
|
||||
@error('general')
|
||||
<span class="alert alert-danger">{{ $message }}</span>
|
||||
@enderror
|
||||
@error('general')
|
||||
<span class="alert alert-danger">{{ $message }}</span>
|
||||
@enderror
|
||||
|
||||
<div class="container-fluid pt-4">
|
||||
<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="row">
|
||||
<div class="col-xl-12">
|
||||
<div class="card custom-card">
|
||||
<div class="card-body p-3">
|
||||
|
||||
<form method="GET">
|
||||
<div class="d-flex align-items-center justify-content-between flex-wrap gap-3">
|
||||
<form method="GET">
|
||||
<div class="d-flex align-items-center justify-content-between flex-wrap gap-3">
|
||||
|
||||
<div class="d-flex flex-wrap gap-1 project-list-main align-items-center">
|
||||
<div class="d-flex flex-wrap gap-1 project-list-main align-items-center">
|
||||
|
||||
<div class="d-flex me-2">
|
||||
<input
|
||||
class="form-control me-2"
|
||||
type="search"
|
||||
name="search"
|
||||
placeholder="جستجوی کاربر"
|
||||
value="{{ request()->input('search') }}"
|
||||
aria-label="جستجوی کاربر"
|
||||
>
|
||||
|
||||
<button class="btn btn-light" type="submit">
|
||||
جستجو
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<select
|
||||
id="choices-single-default"
|
||||
class="form-control"
|
||||
name="sort"
|
||||
<div class="d-flex me-2">
|
||||
<input
|
||||
class="form-control me-2"
|
||||
type="search"
|
||||
name="search"
|
||||
placeholder="جستجوی کاربر"
|
||||
value="{{ request()->input('search') }}"
|
||||
aria-label="جستجوی کاربر"
|
||||
>
|
||||
<option value="" selected>
|
||||
مرتبسازی بر اساس
|
||||
</option>
|
||||
|
||||
<option
|
||||
value="newest"
|
||||
@selected(request()->input('sort') == 'newest')
|
||||
>
|
||||
جدیدترین
|
||||
</option>
|
||||
|
||||
<option
|
||||
value="name_asc"
|
||||
@selected(request()->input('sort') == 'name_asc')
|
||||
>
|
||||
الفبا (الف - ی)
|
||||
</option>
|
||||
|
||||
<option
|
||||
value="name_desc"
|
||||
@selected(request()->input('sort') == 'name_desc')
|
||||
>
|
||||
الفبا (ی - الف)
|
||||
</option>
|
||||
</select>
|
||||
|
||||
<button class="btn btn-light" type="submit">
|
||||
جستجو
|
||||
</button>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
<select
|
||||
id="choices-single-default"
|
||||
class="form-control"
|
||||
name="sort"
|
||||
>
|
||||
<option value="" selected>
|
||||
مرتبسازی بر اساس
|
||||
</option>
|
||||
|
||||
<option
|
||||
value="newest"
|
||||
@selected(request()->input('sort') == 'newest')
|
||||
>
|
||||
جدیدترین
|
||||
</option>
|
||||
|
||||
<option
|
||||
value="name_asc"
|
||||
@selected(request()->input('sort') == 'name_asc')
|
||||
>
|
||||
الفبا (الف - ی)
|
||||
</option>
|
||||
|
||||
<option
|
||||
value="name_desc"
|
||||
@selected(request()->input('sort') == 'name_desc')
|
||||
>
|
||||
الفبا (ی - الف)
|
||||
</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<!-- Users Table -->
|
||||
<div class="row">
|
||||
<div class="col-xl-12">
|
||||
<!-- Users Table -->
|
||||
<div class="row">
|
||||
<div class="col-xl-12">
|
||||
|
||||
<div class="card custom-card">
|
||||
<div class="card custom-card">
|
||||
|
||||
<div class="table-responsive">
|
||||
<div class="table-responsive">
|
||||
|
||||
<table class="table text-nowrap table-bordered">
|
||||
<table class="table text-nowrap table-bordered">
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">عکس</th>
|
||||
<th scope="col">نام و نام خانوادگی</th>
|
||||
<th scope="col">وضعیت تأهل</th>
|
||||
<th scope="col">نام و نام خانوادگی همسر</th>
|
||||
<th scope="col">ایمیل</th>
|
||||
<th scope="col">استان</th>
|
||||
<th scope="col">شهر</th>
|
||||
<th scope="col">شماره موبایل</th>
|
||||
<th scope="col">تاریخ ثبت نام</th>
|
||||
<th scope="col">عملیات</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
@foreach($users as $user)
|
||||
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">عکس</th>
|
||||
<th scope="col">نام و نام خانوادگی</th>
|
||||
<th scope="col">وضعیت تأهل</th>
|
||||
<th scope="col">نام و نام خانوادگی همسر</th>
|
||||
<th scope="col">ایمیل</th>
|
||||
<th scope="col">استان</th>
|
||||
<th scope="col">شهر</th>
|
||||
<th scope="col">شماره موبایل</th>
|
||||
<th scope="col">تاریخ ثبت نام</th>
|
||||
<th scope="col">عملیات</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
|
||||
@foreach($users as $user)
|
||||
|
||||
<tr>
|
||||
<td>
|
||||
<td>
|
||||
<span class="avatar avatar-md avatar-square bg-light">
|
||||
|
||||
@if($user->file?->id)
|
||||
@@ -142,113 +141,112 @@
|
||||
|
||||
|
||||
</span>
|
||||
</td>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<div class="d-flex align-items-center">
|
||||
<td>
|
||||
<div class="d-flex align-items-center">
|
||||
|
||||
<div class="flex-fill">
|
||||
<div class="flex-fill">
|
||||
|
||||
<span class="fw-medium fs-14 d-block">
|
||||
{{ getUserFullName($user) }}
|
||||
</span>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
<td>
|
||||
|
||||
@if($user->marital_status == \App\Enums\UserMaritalStatus::SINGLE)
|
||||
<span class="badge bg-primary-transparent">
|
||||
@if($user->marital_status == \App\Enums\UserMaritalStatus::SINGLE)
|
||||
<span class="badge bg-primary-transparent">
|
||||
مجرد
|
||||
</span>
|
||||
|
||||
@elseif($user->marital_status == \App\Enums\UserMaritalStatus::MARRIED)
|
||||
<span class="badge bg-success-transparent">
|
||||
@elseif($user->marital_status == \App\Enums\UserMaritalStatus::MARRIED)
|
||||
<span class="badge bg-success-transparent">
|
||||
متأهل
|
||||
</span>
|
||||
|
||||
@elseif($user->marital_status == \App\Enums\UserMaritalStatus::SEPARATED)
|
||||
<span class="badge bg-warning-transparent">
|
||||
@elseif($user->marital_status == \App\Enums\UserMaritalStatus::SEPARATED)
|
||||
<span class="badge bg-warning-transparent">
|
||||
جداشده
|
||||
</span>
|
||||
|
||||
@else
|
||||
-
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@if($user->spouse_name)
|
||||
{{ $user->spouse_name }}
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
{{ $user->email }}
|
||||
</td>
|
||||
<td>
|
||||
{{$user->province}}
|
||||
</td>
|
||||
<td>
|
||||
{{$user->city}}
|
||||
</td>
|
||||
<td>
|
||||
{{ $user->mobile }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $user->created_at->toJalali()->format('H:i Y-m-d') }}
|
||||
</td>
|
||||
<td>
|
||||
<div class="hstack gap-2 fs-15">
|
||||
|
||||
@if(auth('admin')->user()->permission?->user_edit)
|
||||
<a href="{{ route('admin.users.edit', $user->id) }}"
|
||||
class="btn btn-secondary-light btn-icon btn-sm"
|
||||
title="ویرایش">
|
||||
<i class="ti ti-pencil"></i>
|
||||
</a>
|
||||
@endif
|
||||
|
||||
</td>
|
||||
<td>
|
||||
@if($user->spouse_name)
|
||||
{{ $user->spouse_name }}
|
||||
@else
|
||||
-
|
||||
@if(auth('admin')->user()->permission?->user_delete)
|
||||
<form action="{{ route('admin.users.destroy', $user->id) }}"
|
||||
method="POST"
|
||||
onsubmit="return confirm('آیا از حذف این کاربر مطمئن هستید؟')">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
|
||||
<button type="submit"
|
||||
class="btn btn-icon btn-sm btn-danger-light">
|
||||
<i class="ri-delete-bin-line"></i>
|
||||
</button>
|
||||
</form>
|
||||
@endif
|
||||
</td>
|
||||
<td>
|
||||
{{ $user->email }}
|
||||
</td>
|
||||
<td>
|
||||
{{$user->province}}
|
||||
</td>
|
||||
<td>
|
||||
{{$user->city}}
|
||||
</td>
|
||||
<td>
|
||||
{{ $user->mobile }}
|
||||
</td>
|
||||
<td>
|
||||
{{ $user->created_at->toJalali()->format('H:i Y-m-d') }}
|
||||
</td>
|
||||
<td>
|
||||
<div class="hstack gap-2 fs-15">
|
||||
|
||||
@if(auth('admin')->user()->permission?->user_edit)
|
||||
<a href="{{ route('admin.users.edit', $user->id) }}"
|
||||
class="btn btn-secondary-light btn-icon btn-sm"
|
||||
title="ویرایش">
|
||||
<i class="ti ti-pencil"></i>
|
||||
</a>
|
||||
@endif
|
||||
</div>
|
||||
</td>
|
||||
|
||||
@if(auth('admin')->user()->permission?->user_delete)
|
||||
<form action="{{ route('admin.users.destroy', $user->id) }}"
|
||||
method="POST"
|
||||
onsubmit="return confirm('آیا از حذف این کاربر مطمئن هستید؟')">
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
</tr>
|
||||
|
||||
<button type="submit"
|
||||
class="btn btn-icon btn-sm btn-danger-light">
|
||||
<i class="ri-delete-bin-line"></i>
|
||||
</button>
|
||||
</form>
|
||||
@endif
|
||||
@endforeach
|
||||
|
||||
</div>
|
||||
</td>
|
||||
</tbody>
|
||||
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
{{ $users->links() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ $users->links() }}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
|
||||
Reference in New Issue
Block a user