@extends('website.layout.master') @section('title', 'الرئيسية') @section('content')

Demo

{{\App\Models\Category::find($question['category_id'])->name}}
{{\App\Models\Category::find($question['category_id'])->slug}}
Questions:{{$question_number}}
00:39
{!! $question['description_image'] !!}
{{$question['question']}}?

    @foreach(\App\Models\Answer::where('question_id',$question['id'])->get() as $answer) @if(session()->has('question_'.$question['id']) && session('question_'.$question['id']) == $answer->id) @if(\App\Models\Answer::find(session()->get('question_'.$question['id']))->is_correct == 1)
  • {{$answer->title}}
  • @else
  • {{$answer->title}}
  • @endif @else
  • {{$answer->title}}
  • @endif @endforeach
answer

{!! $question['long_answer'] !!}
@stop @push('script') @endpush