@extends('admin.layouts.master') @section('title','All Quiz Review') @section('maincontent') @component('components.breadcumb',['secondaryactive' => 'active']) @slot('heading') {{ __('Quiz Reviews') }} @endslot @slot('menu1') {{ __('Quiz Review') }} @endslot @endcomponent
{{ __('All Quiz Reviews') }}
@foreach($answers as $answer) @php if(Auth::user()->role == "instructor") { $check = $answer->courses->user_id == Auth::user()->id; } else{ $check = $answer->courses; } @endphp @if($check) @php $user = app\User::where('id',$answer->user_id)->first(); @endphp @isset($answer->quiz->question) @endisset @endif @endforeach
# {{ __('Course') }} {{ __('User Name') }} {{ __('Topic') }} {{ __('Question') }} {{ __('Answer') }} {{ __('View') }}
1 {{$answer->courses->title}}{{ $user->fname }} {{ $user->lname }} {{$answer->topic->title ?? '-'}}{!!$answer->quiz->question!!}- {!! $answer->txt_answer !!}
@endsection @section('scripts') @endsection