@extends('admin.layout') @section('title', 'Kullanıcılar') @section('content') @php $appFilter = $appFilter ?? 'all'; $appScopeLabel = $appFilter === 'all' ? 'tüm uygulamalar' : ($appLabels[$appFilter] ?? $appFilter); @endphp

Kullanıcılar

Üye onayları, roller, topluluklar ve hesap bilgileri.
+ Yeni Kullanıcı
@if(($pendingCount ?? 0) > 0)
{{ $pendingCount }} üyelik onay bekliyor ({{ $appScopeLabel }}). Bekleyenleri göster
@endif
@if($search !== '' || ($approvalFilter ?? '') !== '' || ($deletedFilter ?? '') !== '' || $appFilter !== 'all') Temizle @endif
@forelse($users as $user) @php $memberCommunities = $user->communityMemberships ->filter(fn ($m) => $m->status === 'active' && $m->community && ($m->community->status ?? 'active') === 'active'); $memberIds = $memberCommunities->pluck('community_id')->all(); $membershipsToShow = $appFilter === 'all' ? $user->appMemberships->sortBy(fn ($m) => array_search($m->app, array_keys($appLabels ?? []), true)) : $user->appMemberships->where('app', $appFilter); @endphp @empty @endforelse
Kullanıcı İletişim Rol Topluluklar Bakiye Uygulama onayı Durum
{{ $user->name }} @if($user->account_deleted_at) Silinen hesap @endif
{{ $user->title ?: 'Unvan belirtilmedi' }}
@foreach($membershipsToShow as $appMembership) @php $applicationRows = \App\Support\RegistrationAnswers::present($appMembership->registration_answers); @endphp @if($appMembership->approval_status === 'pending' && count($applicationRows))
Başvuru — {{ $appLabels[$appMembership->app] ?? $appMembership->app }}
@foreach($applicationRows as $row)
{{ $row['label'] }}
{{ $row['value'] }}
@endforeach
@endif @endforeach @if($user->accountDeletion)
Eski: {{ $user->accountDeletion->original_name }} · {{ $user->accountDeletion->original_email }} @if($user->accountDeletion->deletion_ip) · IP: {{ $user->accountDeletion->deletion_ip }} @endif
@endif
@if($user->accountDeletion)
{{ $user->accountDeletion->original_email }}
{{ $user->accountDeletion->original_phone ?: 'Telefon yok' }}
@else
{{ $user->email }}
{{ $user->phone ?: 'Telefon yok' }}
@endif
{{ $user->role?->label() }} @forelse($memberCommunities as $membership)
{{ $membership->community->name }}
@csrf @method('DELETE')
@empty Topluluk yok @endforelse
@csrf
{{ number_format((float)$user->balance, 2, ',', '.') }} ₺ @if($user->isOwner()) Sahip — tüm uygulamalar @elseif($membershipsToShow->isEmpty()) Üyelik yok @else @foreach($membershipsToShow as $appMembership) @php $status = $appMembership->approval_status ?? 'pending'; @endphp
{{ $appLabels[$appMembership->app] ?? $appMembership->app }}
@csrf
@endforeach @endif
@if($user->account_deleted_at) Silindi
{{ $user->account_deleted_at?->format('d.m.Y H:i') }}
@else {{ $user->is_active ? 'Aktif' : 'Pasif' }} @endif
@unless($user->account_deleted_at) Bakiye @if(!$user->isOwner() || auth()->user()->isOwner()) Düzenle @endif @else Kayıt @endunless
Kullanıcı bulunamadı.
@endsection