git commit "add dynamic settings management"
This commit is contained in:
@@ -1,209 +0,0 @@
|
||||
@extends('admin.layouts.app')
|
||||
|
||||
@section('breadcrumb')
|
||||
<span>
|
||||
مدیریت مدیران
|
||||
</span>
|
||||
@endsection
|
||||
|
||||
|
||||
@section('content')
|
||||
|
||||
<div class="container mt-4">
|
||||
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
|
||||
<h5 class="mb-0">
|
||||
لیست مدیران
|
||||
</h5>
|
||||
|
||||
<a href="{{ route('admin.admins.create') }}" class="btn btn-primary">
|
||||
افزودن مدیر جدید
|
||||
</a>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card shadow-sm mb-3">
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<form method="GET" action="{{ route('admin.admins.index') }}">
|
||||
|
||||
<div class="row g-2">
|
||||
|
||||
<div class="col-md-5">
|
||||
<input
|
||||
type="text"
|
||||
name="keyword"
|
||||
value="{{ request('keyword') }}"
|
||||
class="form-control"
|
||||
placeholder="جستجو بر اساس نام..."
|
||||
>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-3">
|
||||
|
||||
<select
|
||||
class="form-control"
|
||||
name="sort"
|
||||
onchange="this.form.submit()"
|
||||
>
|
||||
|
||||
<option value="">
|
||||
مرتبسازی بر اساس
|
||||
</option>
|
||||
|
||||
|
||||
<option value="first_name_asc"
|
||||
{{ request('sort') == 'first_name_asc' ? 'selected' : '' }}>
|
||||
نام (الف - ی)
|
||||
</option>
|
||||
|
||||
|
||||
<option value="first_name_desc"
|
||||
{{ request('sort') == 'first_name_desc' ? 'selected' : '' }}>
|
||||
نام (ی - الف)
|
||||
</option>
|
||||
|
||||
|
||||
<option value="newest"
|
||||
{{ request('sort') == 'newest' ? 'selected' : '' }}>
|
||||
جدیدترین
|
||||
</option>
|
||||
|
||||
|
||||
</select>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-md-2">
|
||||
|
||||
<button class="btn btn-primary w-100">
|
||||
جستجو
|
||||
</button>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card shadow">
|
||||
|
||||
<div class="card-body">
|
||||
|
||||
<div class="table-responsive">
|
||||
|
||||
<table class="table table-bordered table-hover text-center align-middle">
|
||||
|
||||
<thead class="table-light">
|
||||
|
||||
<tr>
|
||||
<th>شناسه</th>
|
||||
<th>نام</th>
|
||||
<th>نام خانوادگی</th>
|
||||
<th>نام کاربری</th>
|
||||
<th>ایمیل</th>
|
||||
<th>وضعیت</th>
|
||||
<th>عملیات</th>
|
||||
</tr>
|
||||
|
||||
</thead>
|
||||
|
||||
|
||||
<tbody>
|
||||
|
||||
@forelse($admins as $admin)
|
||||
|
||||
<tr>
|
||||
|
||||
<td>{{ $admin->id }}</td>
|
||||
|
||||
<td>{{ $admin->first_name }}</td>
|
||||
|
||||
<td>{{ $admin->last_name }}</td>
|
||||
|
||||
<td>{{ $admin->username }}</td>
|
||||
|
||||
<td>{{ $admin->email }}</td>
|
||||
|
||||
|
||||
<td>
|
||||
|
||||
@if($admin->status)
|
||||
|
||||
<span class="badge bg-success">
|
||||
فعال
|
||||
</span>
|
||||
|
||||
@else
|
||||
|
||||
<span class="badge bg-danger">
|
||||
غیرفعال
|
||||
</span>
|
||||
|
||||
@endif
|
||||
|
||||
</td>
|
||||
|
||||
|
||||
<td>
|
||||
|
||||
<a href="{{ route('admin.admins.edit', $admin->id) }}"
|
||||
class="btn btn-sm btn-warning">
|
||||
ویرایش
|
||||
</a>
|
||||
|
||||
|
||||
<form action="{{ route('admin.admins.destroy', $admin->id) }}"
|
||||
method="POST"
|
||||
class="d-inline">
|
||||
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
|
||||
<button class="btn btn-sm btn-danger"
|
||||
onclick="return confirm('آیا مطمئن هستید؟')">
|
||||
حذف
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
|
||||
@empty
|
||||
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
رکوردی پیدا نشد
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
@endforelse
|
||||
|
||||
|
||||
</tbody>
|
||||
|
||||
</table>
|
||||
|
||||
</div>
|
||||
|
||||
{{ $admins->links() }}
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
Reference in New Issue
Block a user