@extends('admin.layout.master') @section('title', __('admin.edit_question')) @section('content')

{{ __('labels.edit_question') }}

@csrf @method('PUT')
{{-- السؤال بكل اللغات --}} @foreach(Config::get('laravellocalization.supportedLocales') as $key => $lang)
@endforeach
{{-- التصنيفات --}}
@foreach($categories as $category)
id, $question->categories->pluck('id')->toArray()) ? 'checked' : '' }}>
@endforeach

{{ __('labels.option') }}

@foreach($question->options as $index => $option)
@foreach(Config::get('laravellocalization.supportedLocales') as $key => $lang)
@endforeach {{-- درجات التصنيفات --}}
@foreach($question->categories as $cat) @php $score = $option->categoryOptions->firstWhere('category_id', $cat->id)?->score; @endphp
@endforeach
@endforeach


@endsection @section('scripts') @endsection