fix: update blades for admins

This commit is contained in:
2026-08-19 12:44:55 -07:00
parent 0f85123ea0
commit 9d58a75873
3 changed files with 489 additions and 18 deletions
@@ -74,6 +74,244 @@
</div>
</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-6">
<label class="form-label fw-semibold">مدیریت پرواز</label>
<div class="d-flex gap-4 flex-wrap">
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[flight_create]"
value="1"
id="flight_create">
<label class="form-check-label" for="flight_create">
درج پرواز
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[flight_edit]"
value="1"
id="flight_edit">
<label class="form-check-label" for="flight_edit">
ویرایش پرواز
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[flight_delete]"
value="1"
id="flight_delete">
<label class="form-check-label" for="flight_delete">
حذف پرواز
</label>
</div>
</div>
</div>
{{-- مدیریت تور --}}
<div class="col-xl-6">
<label class="form-label fw-semibold">مدیریت تور</label>
<div class="d-flex gap-4 flex-wrap">
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[tour_create]"
value="1"
id="tour_create">
<label class="form-check-label" for="tour_create">
درج تور
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[tour_edit]"
value="1"
id="tour_edit">
<label class="form-check-label" for="tour_edit">
ویرایش تور
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[tour_delete]"
value="1"
id="tour_delete">
<label class="form-check-label" for="tour_delete">
حذف تور
</label>
</div>
</div>
</div>
{{-- مدیریت رزرو --}}
<div class="col-xl-6">
<label class="form-label fw-semibold">مدیریت رزرو</label>
<div class="d-flex gap-4 flex-wrap">
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[booking_view]"
value="1"
id="booking_view">
<label class="form-check-label" for="booking_view">
مشاهده رزرو
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[booking_edit]"
value="1"
id="booking_edit">
<label class="form-check-label" for="booking_edit">
ویرایش رزرو
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[booking_delete]"
value="1"
id="booking_delete">
<label class="form-check-label" for="booking_delete">
حذف رزرو
</label>
</div>
</div>
</div>
{{-- مدیریت کاربران --}}
<div class="col-xl-6">
<label class="form-label fw-semibold">مدیریت کاربران</label>
<div class="d-flex gap-4 flex-wrap">
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[user_view]"
value="1"
id="user_view">
<label class="form-check-label" for="user_view">
مشاهده کاربران
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[user_edit]"
value="1"
id="user_edit">
<label class="form-check-label" for="user_edit">
ویرایش کاربران
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[user_delete]"
value="1"
id="user_delete">
<label class="form-check-label" for="user_delete">
حذف کاربران
</label>
</div>
</div>
</div>
{{-- مدیریت مدیران --}}
<div class="col-xl-6">
<label class="form-label fw-semibold">مدیریت مدیران</label>
<div class="d-flex gap-4 flex-wrap">
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[admin_view]"
value="1"
id="admin_view">
<label class="form-check-label" for="admin_view">
مشاهده مدیران
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[admin_create]"
value="1"
id="admin_create">
<label class="form-check-label" for="admin_create">
درج مدیر
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[admin_edit]"
value="1"
id="admin_edit">
<label class="form-check-label" for="admin_edit">
ویرایش مدیر
</label>
</div>
<div class="form-check">
<input class="form-check-input"
type="checkbox"
name="permissions[admin_delete]"
value="1"
id="admin_delete">
<label class="form-check-label" for="admin_delete">
حذف مدیر
</label>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="card-footer text-end">