@extends('layouts.app') @section('title', 'Roles Management') @section('page-title', 'Roles Management') @section('content')
Roles Management
Add New Role
@if($roles->count() > 0)
@foreach($roles as $role) @endforeach
ID Name Description Users Permissions Status Type Created Actions
{{ $role->id }} @if(isset($isCurrentUserSuperAdmin) && $isCurrentUserSuperAdmin)
@if($role->is_system) @else @endif
{{ $role->name }}
{{ $role->slug }} @if($role->creator)
Created by: {{ $role->creator->name }} @endif
@else {{ $role->name }}
{{ $role->slug }} @endif
{{ Str::limit($role->description, 50) }} {{ $role->users_count }} Users {{ count($role->permissions ?? []) }} Permissions
@if($role->is_active) Active @else Inactive @endif @if(!$role->is_system)
is_active ? 'checked' : '' }} onchange="toggleRoleStatus({{ $role->id }})">
@endif
@if(isset($isCurrentUserSuperAdmin) && $isCurrentUserSuperAdmin) @if($role->is_system) System @else Custom @endif @else @if($role->is_system) System @else Custom @endif @endif {{ $role->created_at->format('M d, Y') }}
@if($role->canBeDeleted()) @endif
@else
No Roles Found

Start by creating your first role.

Create First Role
@endif
@endsection @section('scripts') @endsection