@if ($mode == 'edit')
{{--
--}} @csrf @method('get')
{{ $serial ?? '' }} Edit
{{--
--}} id}}" action="{{ route('dashboard.questions_test.update', ['question' => $question->id, "elmAutoFocus"=>"quesId".$question->id]) }}" style="width: 100%;"> @csrf @method('PUT')
@foreach($activeLanguages as $language) @php $translation = $question->translation->where('locale', $language->alies)->first(); @endphp
{{ $language->alies }} 
@if ($translation)
{{ $translation->title }}
@else
@endif
@endforeach
status ? 'checked' : '' }} type="checkbox">
required ? 'checked' : '' }} type="checkbox">
@inject('questionService', 'App\Services\QuestionService()') @if (! $questionService->ignoreAnswers($question->type))
@foreach ($question->answers as $answer)
@foreach($activeLanguages as $language) @php $translation = $answer->translations->where('locale', $language->alies)->first(); @endphp {{-- {{$answer->translations->locale}}--}} {{-- {{$question->answers}}--}}
{{ $language->alies }} : 
@if ($translation) {{--
{{ $translation->title }}
--}}
{{ $translation->title }}
@else
@endif
@endforeach
isCorrectAnswer($question->correct_answers) ? 'checked' : '' }} type="checkbox">
status ? 'checked' : '' }} type="checkbox">
{{-- --}} {{-- --}} {{-- --}}{{-- --}} {{-- @csrf--}} {{-- @method('delete')--}} {{-- --}} {{-- --}} {{--
--}}
@endforeach
@endif
@endif @if ($mode == 'add')
{{--
--}} @csrf
@foreach($activeLanguages as $language)
{{ $language->alies }} 
@endforeach
@endif