@extends('layouts.versions.vertical-light') @section('title') عرض السؤال @endsection @section('css') @endsection @section('content')

عرض السؤال

تفاصيل السؤال

{{ $question->title['ar'] ?? 'غير محدد' }}

{{ $question->title['en'] ?? 'غير محدد' }}

@if($question->description)

{{ $question->description }}

@endif

@if($question->target_type == 'client') طلاب @elseif($question->target_type == 'provider') معلمين @else كلاهما @endif

@if($question->is_active) نشط @else غير نشط @endif

{{ $question->created_at->format('Y-m-d H:i:s') }}

{{ $question->updated_at->format('Y-m-d H:i:s') }}

@if($question->responses->count() > 0)
الردود على هذا السؤال ({{ $question->responses->count() }})
@foreach($question->responses->take(10) as $response) @endforeach
# المستخدم النوع الإجابة النص المخصص التاريخ
{{ $response->id }} {{ $response->getRespondentName() }} {{ $response->getRespondentType() }} @if($response->answer) {{ $response->answer->title['ar'] ?? $response->answer->title['en'] ?? '' }} @else لا توجد @endif @if($response->custom_answer) {{ Str::limit($response->custom_answer, 50) }} @else لا يوجد @endif {{ $response->created_at->format('Y-m-d H:i') }}
@if($question->responses->count() > 10) @endif
@endif
@endsection @section('script') @endsection