@extends('layouts.admin') @section('content')

{{ $question->title }}

Edit
@csrf @method('delete')
@if (session()->has('success'))
{{ session('success') }}
@endif

Quiz: {{ $question->quiz->title }}

Section: {{ $question->section->title }}

Type: {{ $question->type }}

Title: {{ $question->title }}

Options:

    @foreach (json_decode($question->options) as $option)
  1. {{ $option }}
  2. @endforeach

Correct Answer: {{ implode(',',json_decode($question->answer)) }}

@endsection