@extends('admin.layout.app') @section('body')

Role #{{ $role->id }}

Name: {{ $role->name }}
Guard: {{ $role->guard_name ?? 'web' }}
Created: {{ optional($role->created_at)->format('Y-m-d H:i') }}
Permissions
@forelse($rolePermissions as $p) @empty @endforelse
# Name Guard Created
{{ $p->id }} {{ $p->name }} {{ $p->guard_name ?? 'web' }} {{ optional($p->created_at)->format('Y-m-d') }}
No permissions assigned.
{{ $rolePermissions->links() }}
@endsection