@extends("layouts.main") @section('title', Lang::get('Kullanıcı Egzersizleri')) @section('content')

@lang('Kullanıcı Egzersizleri') - {{ $user->firstName }} {{ $user->lastName }}

@lang("Kullanıcı Bilgileri")

@lang("Ad Soyad"): {{ $user->firstName }} {{ $user->lastName }}

@lang("E-posta"): {{ $user->email ?? '-' }}

@lang("Telefon"): {{ $user->phone ?? '-' }}

@lang("Egzersiz Bildirimleri"): {{ $notifications->total() }}

@lang("Cevaplanan Sorular"): {{ $notificationItems->total() }}

@if($notifications->count() > 0) @foreach($notifications as $index => $notification) @endforeach
# @lang("Bildirim ID") @lang("Tarih") @lang("Tamamlandı") @lang("Durum") @lang("Güncellenme")
{{ $index + 1 }} {{ $notification->id }} @if($notification->date) {{ \Carbon\Carbon::parse($notification->date)->format('d.m.Y H:i') }} @else - @endif @if($notification->isCompleted == 1) @lang("Evet") @else @lang("Hayır") @endif @if($notification->isActive == 1) @lang("Aktif") @else @lang("Pasif") @endif @if($notification->updatedAt) {{ \Carbon\Carbon::parse($notification->updatedAt)->format('d.m.Y H:i') }} @else - @endif
{{ $notifications->appends(['tab' => 'notifications'])->links('pagination::bootstrap-4') }}
@else

@lang("Egzersiz Bildirimi Bulunamadı")

@lang("Bu kullanıcıya ait egzersiz bildirimi bulunamadı.")

@endif
@if($notificationItems->count() > 0) @foreach($notificationItems as $index => $item) @endforeach
# @lang("Soru") @lang("Verilen Cevap") @lang("Doğru/Yanlış") @lang("Soru ID") @lang("Puan") @lang("Tarih")
{{ $index + 1 }} @if($item->question)
{{ Str::limit($item->question, 100) }}
@else @lang('Soru bulunamadı') @endif
@if($item->option)
{{ $item->option }}
@else @lang('Cevap bulunamadı') @endif
@if($item->isCorrect == 1) @lang("Doğru") @elseif($item->isCorrect == 0) @lang("Yanlış") @else @lang("Belirsiz") @endif {{ $item->questionId }} @if($item->point) {{ $item->point }} @else - @endif @if($item->createdAt) {{ \Carbon\Carbon::parse($item->createdAt)->format('d.m.Y H:i') }} @else - @endif
{{ $notificationItems->appends(['tab' => 'answers'])->links('pagination::bootstrap-4') }}
@else

@lang("Cevaplanan Soru Bulunamadı")

@lang("Bu kullanıcı henüz hiçbir egzersiz sorusunu cevaplamamış.")

@endif
@if($notificationItems->count() > 0)
@lang('Toplam Cevap') {{ $notificationItems->total() }}
@lang('Doğru Cevap') {{ $notificationItems->where('isCorrect', 1)->count() }}
@lang('Yanlış Cevap') {{ $notificationItems->where('isCorrect', 0)->count() }}
@lang('Başarı Oranı') @php $totalAnswers = $notificationItems->total(); $correctAnswers = $notificationItems->where('isCorrect', 1)->count(); $successRate = $totalAnswers > 0 ? round(($correctAnswers / $totalAnswers) * 100, 1) : 0; @endphp {{ $successRate }}%
@endif
@endsection