@extends('layouts.app') @section('title', 'Roles Management') @section('page-title', 'Roles Management') @section('content')
| ID | Name | Description | Users | Permissions | Status | Type | Created | Actions |
|---|---|---|---|---|---|---|---|---|
| {{ $role->id }} |
@if(isset($isCurrentUserSuperAdmin) && $isCurrentUserSuperAdmin)
@if($role->is_system)
@else
@endif
@else
{{ $role->name }}
{{ $role->name }}
{{ $role->slug }} @if($role->creator) Created by: {{ $role->creator->name }} @endif {{ $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') }} |