@extends('layouts.app') @section('title', $role->name . ' - Rol Detayı') @section('page-title', $role->name) @section('content')
Rollere Dön

{{ $role->name }}

@if($role->is_system) Sistem @endif
{{ $role->is_active ? 'Aktif' : 'Pasif' }} Düzenle
Slug
{{ $role->slug }}
@if($role->description)
Açıklama
{{ $role->description }}
@endif
Kullanıcı Sayısı
{{ $role->users()->count() }} kullanıcı
İzin Sayısı
{{ $role->permissions()->count() }} izin
@if($role->users->count() > 0)

Bu Role Sahip Kullanıcılar

@foreach($role->users as $user)

{{ $user->name }}

{{ $user->email }}

Profil →
@endforeach
@endif

İzinler

@if($role->permissions->count() > 0)
@foreach($permissions as $group => $groupPermissions) @php $groupRolePermissions = $role->permissions->where('group', $group); @endphp @if($groupRolePermissions->count() > 0)

{{ ucfirst($group ?? 'Diğer') }}

@foreach($groupRolePermissions as $permission)
{{ $permission->name }}
@endforeach
@endif @endforeach
@else

Bu role henüz izin atanmamış.

@endif
@endsection