@extends('layouts.admin') @section('page-css') @endsection @section('content') {{ $title }} Dashboard {{ $title }} @csrf {{ $sub_title }} Card Select... @foreach ($cards as $card) card_id == $card->id ? 'selected' : '' }}> {{ $card->title }} @endforeach Title Exam Questions: Save @if (isset($edit->id)) @foreach ($edit->CardExamQuestion as $i => $val) Question({{ ++$i }}) Question* {{ $val->question }} @foreach ($val->QuestionOptions as $key => $option) Option {{ ++$key }}: @endforeach {{-- Type type == 'radio' ? 'selected' : '' }}>Radio type == 'check' ? 'selected' : '' }}>Checkbox --}} Correct Answer correct_answer_number == 1 ? 'selected' : '' }}>Option 1 correct_answer_number == 2 ? 'selected' : '' }}>Option 2 correct_answer_number == 3 ? 'selected' : '' }}>Option 3 correct_answer_number == 4 ? 'selected' : '' }}>Option 4 @endforeach @else @for ($i = 1; $i <= 100; $i++) Question({{ $i }}) Question* Option 1: Option 2: Option 3: Option 4: Correct Answer Option 1 Option 2 Option 3 Option 4 @endfor @endif Save @endsection @section('page-scripts') @endsection