@extends('admin.layout') @section('title', 'Usuarios') @section('page-title', 'Kullanıcılar') @section('content')
Tüm Kullanıcılar
@forelse ($users as $u) @empty @endforelse
Kullanıcı E-posta Kayıt Kaynağı Kullanım Kaynağı Suscripción Öğretmen Token Rapor Kayıt İşlem
{{ trim(($u->name ?? '') . ' ' . ($u->last_name ?? '')) ?: '—' }} {{ $u->email }} @if (($u->registration_source ?? 'web') === 'mobile') Mobil @else Web @endif @if (in_array((string) ($u->provider ?? ''), ['google', 'facebook'], true)) {{ (string) $u->provider === 'google' ? 'Google' : 'Facebook' }} @endif @switch($u->usage_source ?? 'none') @case('web_api') Web API @break @case('api') API @break @case('web') Web @break @default Veri Yok @endswitch @if ($u->hasActiveSubscription()) Aktif @else Yok @endif {{-- Öğretmenlik yetkisi (canlı ders) SADECE buradan verilir/alınır --}}
@csrf @if ($u->isTeacher()) @else @endif
{{ number_format($u->chat_words_remaining ?? 0) }} {{ number_format($u->report_credits_remaining ?? 0) }} {{ $u->created_at?->format('d.m.Y') ?? '—' }} Yönet
Kullanıcı bulunamadı.
@if ($users->hasPages())
{{ $users->links() }}
@endif
@endsection @push('scripts') @endpush