git commit "add flight image upload and update support"

This commit is contained in:
2026-08-18 17:58:02 +03:30
parent 0722cf3120
commit 62a95c411b
15 changed files with 896 additions and 26 deletions
+134
View File
@@ -0,0 +1,134 @@
@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>
لیست نقش‌ها
</h5>
</div>
<div class="card shadow">
<div class="card-body">
<div class="table-responsive">
<table class="table table-bordered text-center align-middle">
<thead class="table-light">
<tr>
<th>
شناسه
</th>
<th>
نام
</th>
<th>
نامک
</th>
<th>
توضیحات
</th>
<th>
عملیات
</th>
</tr>
</thead>
<tbody>
@forelse($roles as $role)
<tr>
<td>
{{ $role->id }}
</td>
<td>
{{ $role->name }}
</td>
<td>
{{ $role->slug }}
</td>
<td>
{{ $role->description }}
</td>
<td>
<a href="{{ route('admin.roles.permissions',$role) }}"
class="btn btn-sm btn-primary">
مدیریت دسترسی‌ها
</a>
</td>
</tr>
@empty
<tr>
<td colspan="5">
رکوردی وجود ندارد
</td>
</tr>
@endforelse
</tbody>
</table>
</div>
{{ $roles->links() }}
</div>
</div>
</div>
@endsection
@@ -0,0 +1,75 @@
@extends('admin.layouts.app')
@section('content')
<div class="container mt-4">
<div class="card">
<div class="card-header">
دسترسی‌های نقش:
{{ $role->name }}
</div>
<div class="card-body">
<form method="POST"
action="{{ route('admin.roles.permissions.update',$role) }}">
@csrf
@method('PUT')
@foreach($permissions as $permission)
<div class="form-check mb-2">
<input
class="form-check-input"
type="checkbox"
name="permissions[]"
value="{{ $permission->id }}"
@checked(
$role->permissions->contains($permission->id)
)
>
<label class="form-check-label">
{{ $permission->name }}
@if($permission->description)
-
{{ $permission->description }}
@endif
</label>
</div>
@endforeach
<button class="btn btn-primary mt-3">
ذخیره
</button>
</form>
</div>
</div>
</div>
@endsection