@extends('layout.app') @section('title') {{ __('تفاصيل إجابات الطالب') }} @endsection @section('css') @endsection @section('content')

{{ __('معلومات الطالب') }}

{{ __('اسم الطالب') }} {{ $studentResponse->student_name ?? 'غير متوفر ' }}
{{ __('اسم المدرسة') }} {{ $studentResponse->school_name ?? 'غير متوفر ' }}

{{ __('تفاصيل الإجابات') }}

@php $lastDeptStandard = null; $lastIndicator = null; @endphp @foreach ($groupedGuidelines as $groupKey => $group) @php [$deptId, $standardId, $indicatorId] = explode('-', $groupKey); $department = $group->first()->department; $standard = $group->first()->standard; $indicator = $group->first()->indicator; @endphp @if ($lastDeptStandard !== $deptId . '-' . $standardId) @if ($lastDeptStandard !== null) @endif @php $lastDeptStandard = $deptId . '-' . $standardId; $lastIndicator = null; @endphp @endif @if ($lastIndicator !== $indicatorId) @php $lastIndicator = $indicatorId; @endphp @endif @foreach ($group as $guideline) @endforeach @endforeach
{{ $department->name }} - {{ $standard->standard_name }}
{{ __('المؤشر') }}: {{ $indicator->name }}
{{ __('الفقرة') }} {{ $guideline->paragraph->name }}
{{ __('السؤال') }} {{ 'كيف ' . $guideline->paragraph->name . '؟' }}
{{ __('الإجابات المتوقعة') }}
@foreach ($guideline->answers as $answer) {{ $answer->answer_text }} @endforeach
@endsection