@php use App\Models\MockTestResult; @endphp @extends('student-panel.layouts.app') @section('main') Listening Duration 40 Min Sections 4 Questions 40 @if(in_array(['test_id' => $test->listening_test_id], $results, true)) @php $band = MockTestResult::where('test_id', $test->listening_test_id) ->where('user_id', auth()->user()->id) ->value('band'); @endphp {{ $band }} @else @if($test->id >= 130) @else @endif @endif Reading Duration 60 Min Sections 3 Questions 40 @if(in_array(['test_id' => $test->reading_test_id], $results, true)) @php $band = MockTestResult::where('test_id', $test->reading_test_id) ->where('user_id', auth()->user()->id) ->value('band'); @endphp {{ $band }} @else @if($test->id >= 130) @else @endif @endif Writing Duration 60 Min Sections 2 Words >400 @if(in_array(['test_id' => $test->writing_test_id], $results, true)) @php $band = MockTestResult::where('test_id', $test->writing_test_id) ->where('user_id', auth()->user()->id) ->value('band'); @endphp {{ $band }} @else @if($test->id >= 130) @else @endif @endif {{-- Speaking Duration 14 Min Sections 3 Questions 40 @if(in_array(['test_id' => $test->speaking_test_id], $results, true)) @php $band = MockTestResult::where('test_id', $test->speaking_test_id) ->where('user_id', auth()->user()->id) ->value('band'); @endphp @if($band) {{ $band ?? '0'}} @else @endif @else @if($test->id >= 130) @else @endif @endif --}} @endsection @section('css') @endsection @section('script') @endsection
Duration
40 Min
Sections
4
Questions
40
60 Min
3
2
Words
>400
14 Min