@extends("layouts.main") @section('title', Lang::get('Egzersiz Soruları Yönetimi')) @section('content')

@lang("Egzersiz Soruları Yönetimi")

@lang('Toplam Soru') {{ $groupedExercises->count() }}
@lang('Toplam Seçenek') {{ $exercises->whereNotNull('optionId')->count() }}
@lang('Doğru Seçenek') {{ $exercises->where('isTrue', 1)->count() }}
@lang('Aktif Soru') {{ $exercises->where('isActive', 1)->unique('id')->count() }}
@if($groupedExercises->count() > 0) @foreach($groupedExercises as $questionId => $questionData) @php $firstQuestion = $questionData->first(); @endphp
@lang('Soru') #{{ $questionId }} @if($firstQuestion->isActive == 1) @lang('Aktif') @else @lang('Pasif') @endif

@lang('Soru:'): {{ $firstQuestion->question }}

@if($questionData->whereNotNull('optionId')->count() > 0)

@lang('Seçenekler:'):

    @foreach($questionData->whereNotNull('optionId') as $option)
  • {{ $option->option }} @if($option->isTrue == 1) @lang('Doğru Cevap') @else @lang('Seçenek') @endif
  • @endforeach
@else

@lang('Bu soru için seçenek bulunamadı.')

@endif

@lang('Oluşturulma:') {{ $firstQuestion->createdAt ? \Carbon\Carbon::parse($firstQuestion->createdAt)->format('d.m.Y H:i') : '-' }} | @lang('Güncellenme:') {{ $firstQuestion->updatedAt ? \Carbon\Carbon::parse($firstQuestion->updatedAt)->format('d.m.Y H:i') : '-' }}
@endforeach @else

@lang("Egzersiz Sorusu Bulunamadı")

@lang("Henüz hiçbir egzersiz sorusu eklenmemiş.")

@endif
{{ $exercises->links('pagination::bootstrap-4') }}
@endsection