{{ csrf_field() }} @if(isset($category)) @method('PATCH') @endif
{{-- name --}}
{{-- discription --}}
{{-- --}}
@if(isset($category)) @foreach($category->questions as $index => $question)
choices[0]['correct_choice'] ? 'checked' : '' }}/>
choices[1]['correct_choice'] ? 'checked' : '' }}/>
choices[2]['correct_choice'] ? 'checked' : '' }}/>
@endforeach @endif
@if(isset($category)) {{-- for unique validation when edit --}} @endif