@extends('admin.layouts.main') @section('content')
@section('page_title') {{ ucwords(str_replace('_', ' ', $type)) }} Questions @endsection
@if (Session::has('message')) @endif

{{ ucwords(str_replace('_', ' ', $type)) }} Questions

@if(in_array($type, ['mcq', 'neet_pg_mcq'])) @endif @foreach ($contents as $index => $content) @php $data = json_decode($content->text_content, true); @endphp @if(in_array($type, ['mcq', 'neet_pg_mcq'])) @endif @endforeach
# QuestionCorrectActions
{{ $index + 1 }} @if($type === 'reasoning_question' && isset($data['question'])) {{ strip_tags($data['question']) }} @else {!! $content->title ?? '' !!} @endif {{ $data['correct'] ?? '' }}
@endsection @section('jscode') @endsection