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

@lang('Egzersiz Cevapları') - {{ $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("Toplam Cevap"): {{ $exercises->total() }}

@if($exercises->count() > 0) @foreach($exercises as $index => $exercise) @endforeach
# @lang("Soru") @lang("Verilen Cevap") @lang("Doğru/Yanlış") @lang("Soru ID") @lang("Seçenek ID") @lang("Cevaplama Tarihi") @lang("Soru Durumu")
{{ $index + 1 }} @if($exercise->question)
{{ Str::limit($exercise->question, 100) }} @if(strlen($exercise->question) > 100)
@lang('Tamamını görmek için üzerine gelin') @endif
@else @lang('Soru bulunamadı') @endif
@if($exercise->option)
{{ $exercise->option }}
@else @lang('Cevap bulunamadı') @endif
@if($exercise->isTrue == 1) @lang("Doğru") @elseif($exercise->isTrue == 0) @lang("Yanlış") @else @lang("Belirsiz") @endif {{ $exercise->questionId }} @if($exercise->optionId) {{ $exercise->optionId }} @else - @endif @if($exercise->createdAt) {{ \Carbon\Carbon::parse($exercise->createdAt)->format('d.m.Y H:i') }} @else - @endif @if($exercise->questionIsActive == 1) @lang("Aktif") @else @lang("Pasif") @endif
{{ $exercises->links('pagination::bootstrap-4') }}
@else

@lang("Egzersiz Cevabı Bulunamadı")

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

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