@extends('dashboard.layouts.master') @section('css') @endsection @section('breadcrumb')

{{trans('labels.questions')}}

@endsection @section('content')
@method('patch') @csrf {{-- --}}
@error('degree') {{ $message }} @enderror
@error('section_id') {{ $message }} @enderror
@error('lecture_id') {{ $message }} @enderror
@error('hint') {{ $message }} @enderror
@if($data['question']->hint_image_full_path) @endif @error('hint_image') {{ $message }} @enderror

@if($data['question']->image_full_path) @endif @error('image') {{ $message }} @enderror
@if($data['question']->type == 'multi_choose') @foreach($data['question']->answers as $key=> $answer)
is_correct) checked @endif>
@endforeach @elseif($data['question']->type == 'true_or_false')
correct_answer == 'true') checked @endif>
correct_answer == 'false') checked @endif>
@elseif($data['question']->type == 'essay') @endif
@endsection @section('script') @endsection