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