bff0c7ea4d
git commit "Implement admin roles and permissions system"
135 lines
2.7 KiB
PHP
135 lines
2.7 KiB
PHP
@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
|