fix: update blades for admins
This commit is contained in:
@@ -116,6 +116,257 @@
|
||||
<span class="text-danger">{{ $message }}</span>
|
||||
@enderror
|
||||
</div>
|
||||
<div class="card custom-card mt-4">
|
||||
<div class="card-header">
|
||||
<div class="card-title">دسترسیهای مدیر</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="card-body">
|
||||
<div class="row gy-4">
|
||||
|
||||
{{-- مدیریت پروازها --}}
|
||||
<div class="col-xl-3 col-lg-6">
|
||||
<h6 class="fw-semibold mb-3">مدیریت پروازها</h6>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[flight_create]"
|
||||
value="1"
|
||||
@checked($admin->permission?->flight_create)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
درج پرواز
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[flight_edit]"
|
||||
value="1"
|
||||
@checked($admin->permission?->flight_edit)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
ویرایش پرواز
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[flight_delete]"
|
||||
value="1"
|
||||
@checked($admin->permission?->flight_delete)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
حذف پرواز
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- مدیریت تورها --}}
|
||||
<div class="col-xl-3 col-lg-6">
|
||||
<h6 class="fw-semibold mb-3">مدیریت تورها</h6>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[tour_create]"
|
||||
value="1"
|
||||
@checked($admin->permission?->tour_create)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
درج تور
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[tour_edit]"
|
||||
value="1"
|
||||
@checked($admin->permission?->tour_edit)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
ویرایش تور
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[tour_delete]"
|
||||
value="1"
|
||||
@checked($admin->permission?->tour_delete)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
حذف تور
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- مدیریت رزروها --}}
|
||||
<div class="col-xl-3 col-lg-6">
|
||||
<h6 class="fw-semibold mb-3">مدیریت رزروها</h6>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[booking_view]"
|
||||
value="1"
|
||||
@checked($admin->permission?->booking_view)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
مشاهده رزروها
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[booking_edit]"
|
||||
value="1"
|
||||
@checked($admin->permission?->booking_edit)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
ویرایش رزرو
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[booking_delete]"
|
||||
value="1"
|
||||
@checked($admin->permission?->booking_delete)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
حذف رزرو
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- مدیریت کاربران --}}
|
||||
<div class="col-xl-3 col-lg-6">
|
||||
<h6 class="fw-semibold mb-3">مدیریت کاربران</h6>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[user_view]"
|
||||
value="1"
|
||||
@checked($admin->permission?->user_view)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
مشاهده کاربران
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[user_edit]"
|
||||
value="1"
|
||||
@checked($admin->permission?->user_edit)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
ویرایش کاربر
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[user_delete]"
|
||||
value="1"
|
||||
@checked($admin->permission?->user_delete)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
حذف کاربر
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
{{-- مدیریت مدیران --}}
|
||||
<div class="col-xl-3 col-lg-6">
|
||||
<h6 class="fw-semibold mb-3">مدیریت مدیران</h6>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[admin_view]"
|
||||
value="1"
|
||||
@checked($admin->permission?->admin_view)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
مشاهده مدیران
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[admin_create]"
|
||||
value="1"
|
||||
@checked($admin->permission?->admin_create)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
ایجاد مدیر
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[admin_edit]"
|
||||
value="1"
|
||||
@checked($admin->permission?->admin_edit)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
ویرایش مدیر
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="form-check mb-2">
|
||||
<input
|
||||
class="form-check-input"
|
||||
type="checkbox"
|
||||
name="permissions[admin_delete]"
|
||||
value="1"
|
||||
@checked($admin->permission?->admin_delete)
|
||||
>
|
||||
<label class="form-check-label">
|
||||
حذف مدیر
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user