@extends('front.layouts.app') @section('css') @endsection @section('content') @php $competitor = new stdClass(); $competitor->name = "محمد علي"; $competitor->image = "https://via.placeholder.com/150"; $competitor->video = "https://www.w3schools.com/html/mov_bbb.mp4"; @endphp

{{ $book_name }}

@include('vendor.errors')
@csrf @php $i = 1; @endphp @foreach($rows as $row)

{!! $row->question !!}

@if($row->mcq && $row->options()->count() > 0)
@php $col = 12 / $row->options()->count(); @endphp @foreach( $row->options()->get() as $op)
id() )->where('question_id', $row->id)->first()->answer ?? '' ) == trim( $op->content ) ) ? 'checked' : '' !!} name="answer[{{$row->id}}]" id="q{{$op->id}}a" value="{{$op->content}}">
@endforeach
@else @endif
@endforeach
{{-- {!! getSettingValue('compitation') !!} --}}
@endsection @section('js') @endsection