@extends('layouts.admin') @section('title', $role->name) @section('page-title', ucfirst(str_replace('-', ' ', $role->name))) @section('page-subtitle', 'Role Details') @section('content')
Back to Roles
Edit @if(!in_array($role->name, ['super-admin', 'admin', 'branch-admin']))
@csrf @method('DELETE')
@endif

{{ ucfirst(str_replace('-', ' ', $role->name)) }}

Guard: {{ $role->guard_name }}

Assigned Permissions

@if($role->permissions->isNotEmpty())
@foreach($role->permissions as $permission)
{{ ucfirst(str_replace('-', ' ', $permission->name)) }}
@endforeach
@else

No permissions assigned to this role.

@endif

Users with this Role

@if($role->users()->exists()) @else

No users have this role.

@endif

System Info

Role ID {{ $role->id }}
Created {{ $role->created_at->format('M d, Y') }}
Permissions {{ $role->permissions->count() }}
@endsection