@extends('layouts.app') @section('title', 'Yetki Bazlı Kullanıcılar') @section('content')

Yetki Yönetimi

Bir yetki seçin ve o yetkiye sahip kullanıcıları görün.

@include('admin.partials.permissions-nav') @if (session('status'))
{{ session('status') }}
@endif {{-- Yetki Seçimi --}}
Yetki Seç
{{-- Modül seçimi --}}
{{-- Menü seçimi --}}
@if ($permKey !== '') {{-- Kullanıcı Arama --}}
@if ($userSearch !== '') Temizle @endif
{{-- Kullanıcı Tablosu --}}
Erisimi Olan Kullanıcılar {{ $rows->count() }}
{{ $permKey }}
@if ($rows->isEmpty())
Bu yetkiye sahip kullanıcı bulunamadı.
@else
@foreach ($rows as $row) @php $u = $row['user']; $sources = $row['sources']; $roles = $row['via_roles']; $direct = $row['direct']; @endphp @endforeach
Kullanıcı E-posta Kod Erisim Kaynağı Roller İşlem
{{ $u->name }} {{ $u->email }} {{ $u->user_code ?? '”' }} @if (in_array('role', $sources, true) && in_array('direct', $sources, true)) Rol + Direkt @elseif (in_array('role', $sources, true)) Rol @elseif (in_array('direct', $sources, true)) Direkt @endif @forelse ($roles as $roleName) {{ $roleName }} @empty @endforelse
@if ($direct)
@csrf
@endif
@endif
Rol kaynağı: kullanıcının rolü üzerinden erişim saglaniyor. Kaldırmak için rolü düzenleyin.  |  Direkt: kullanıcıya Özel atanmış yetki ” butonu ile kaldirilabilir.
@endif @endsection @push('scripts') @endpush