156 lines
5.7 KiB
PHP
156 lines
5.7 KiB
PHP
@extends('dashboard.layouts.app')
|
|
|
|
@section('title', 'مدیریت کاربران')
|
|
|
|
@section('account-content')
|
|
|
|
<div class="user-profile-wrapper">
|
|
<div class="user-profile-card user-profile-listing">
|
|
|
|
<div class="user-profile-card-header">
|
|
<h4 class="user-profile-card-title">فهرست کاربران</h4>
|
|
|
|
<div class="user-profile-card-header-right">
|
|
<div class="user-profile-search">
|
|
<form action="{{ route('admin.user.index') }}" method="GET">
|
|
<div class="form-group">
|
|
<input type="text"
|
|
name="search"
|
|
class="form-control"
|
|
placeholder="جستجو...">
|
|
|
|
<button type="submit" style="border: none; background: none;">
|
|
<i class="far fa-search"></i>
|
|
</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
<div class="table-responsive">
|
|
|
|
<table class="table text-nowrap">
|
|
|
|
<thead>
|
|
<tr>
|
|
<th>نام و نام خانوادگی</th>
|
|
<th>شماره موبایل</th>
|
|
<th>ایمیل</th>
|
|
<th>کد ملی</th>
|
|
<th>استان</th>
|
|
<th>شهر</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@forelse($users as $user)
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
<div class="table-listing-info">
|
|
<div class="table-listing-content">
|
|
<h6>
|
|
{{ $user->first_name }}
|
|
{{ $user->last_name }}
|
|
</h6>
|
|
</div>
|
|
</div>
|
|
</td>
|
|
|
|
<td>
|
|
<h6>
|
|
{{ $user->mobile }}
|
|
</h6>
|
|
</td>
|
|
|
|
<td>
|
|
<h6>
|
|
{{ $user->email }}
|
|
</h6>
|
|
</td>
|
|
|
|
<td>
|
|
<h6>
|
|
{{ $user->national_code }}
|
|
</h6>
|
|
</td>
|
|
|
|
<td>
|
|
@if($user->user_province == null)
|
|
<h6>-----</h6>
|
|
@else
|
|
<h6>
|
|
{{ $user->user_province }}
|
|
</h6>
|
|
@endif
|
|
|
|
</td>
|
|
|
|
<td>
|
|
@if($user->user_city == null)
|
|
<h6>-----</h6>
|
|
@else
|
|
<h6>
|
|
{{ $user->user_city }}
|
|
</h6>
|
|
@endif
|
|
|
|
</td>
|
|
<td>
|
|
<a href="{{ route('admin.user.edit', $user->id) }}"
|
|
class="btn btn-outline-secondary btn-sm">
|
|
<i class="far fa-pen"></i>
|
|
</a>
|
|
|
|
<form action="{{ route('admin.user.destroy', $user->id) }}"
|
|
method="POST"
|
|
style="display: inline-block;"
|
|
onsubmit="return confirm('آیا از حذف این کاربر مطمئن هستید؟');">
|
|
|
|
@csrf
|
|
@method('DELETE')
|
|
|
|
<button type="submit" class="btn btn-outline-secondary btn-sm">
|
|
<i class="far fa-trash-can"></i>
|
|
</button>
|
|
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
|
|
@empty
|
|
|
|
<tr>
|
|
<td colspan="6" class="text-center">
|
|
کاربری وجود ندارد.
|
|
</td>
|
|
</tr>
|
|
|
|
@endforelse
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<div class="pagination-area my-3">
|
|
<div aria-label="Page navigation example">
|
|
|
|
{{ $users->links() }}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
@endsection
|
|
|