@extends('adminlte::page')
@section('title', 'Kullanıcı & Yetki Yönetimi')
@section('content')
{{-- Toast --}}
{{-- Session Mesajları --}}
@if(session('success'))
{{ session('success') }}
@endif
@if(session('error'))
{{ session('error') }}
@endif
{{-- Başlık --}}
{{-- Sekme Navigasyon --}}
{{-- ══════════════════════════════════════════════════ --}}
{{-- SEKME 1: KULLANICILAR --}}
{{-- ══════════════════════════════════════════════════ --}}
{{-- Arama --}}
@foreach($users as $index => $user)
@php
$avatarColor = 'avatar-' . ($index % 8);
$initials = collect(explode(' ', $user->name))->map(fn($w) => strtoupper($w[0] ?? ''))->take(2)->join('');
@endphp
@endforeach
{{-- ══════════════════════════════════════════════════ --}}
{{-- SEKME 2: ROLLER --}}
{{-- ══════════════════════════════════════════════════ --}}
{{-- Yeni Rol Butonu --}}
@can('role.create')
{{-- Yeni Rol Formu --}}
@endcan
{{-- Rol Listesi --}}
@foreach($roles as $role)
@php
$isSystem = in_array($role->name, ['admin', 'sistem yöneticisi']);
@endphp
@can('role.update')
@endcan
@endforeach
{{-- ══════════════════════════════════════════════════ --}}
{{-- SEKME 3: İZİNLER --}}
{{-- ══════════════════════════════════════════════════ --}}
Tüm sistem izinleri aşağıda listelenmiştir. İzinler config/permissions.php dosyasından yönetilir.
@foreach($groupedPermissions as $moduleKey => $group)
@foreach($group['actions'] as $action)
{{ $action['name'] }}
{{ $action['label'] }}
@endforeach
@endforeach
@endsection
@section('js')
@endsection