@extends('student-panel.partials.master') @section('title') {{ ___('online-examination.online_examination') }} @endsection @section('content')

{{ ___('online-examination.online_examination') }}

@forelse ($data['exams'] as $key => $row) @empty @endforelse
{{ ___('common.sr_no') }} {{ ___('examination.subject') }} {{ ___('common.name') }} {{ ___('online-examination.Type') }} {{ ___('online-examination.Total Mark') }} {{ ___('online-examination.Result') }} {{ ___('online-examination.Exam Start') }} {{ ___('online-examination.Exam End') }} {{ ___('online-examination.Duration') }} {{ ___('common.status') }} {{ ___('common.action') }}
{{ ++$key }} {{ @$row->onlineExam->subject->name }} {{ @$row->onlineExam->name }} {{ @$row->onlineExam->type->name }} {{ @$row->onlineExam->total_mark }} {{ @$row->onlineExam->studentAnswer->where('student_id', $data['student'])->first()->result ?? '' }} {{ date('d-m-Y H:i a', strtotime(@$row->onlineExam->start)) }} {{ date('d-m-Y H:i a', strtotime(@$row->onlineExam->end)) }}
Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/uxvsuhne/public_html/chaabi.me/resources/views/student-panel/online-exam-list.blade.php on line 49

Deprecated: DateTime::__construct(): Passing null to parameter #1 ($datetime) of type string is deprecated in /home/uxvsuhne/public_html/chaabi.me/resources/views/student-panel/online-exam-list.blade.php on line 50
0 Day 0 Hour 0 Minute
@if (in_array($data['student'], @$row->onlineExam->studentAnswer->pluck('student_id')->toArray())) {{ ___('online-examination.Submitted') }} @else {{ ___('online-examination.Pending') }} @endif @if (!in_array($data['student'], @$row->onlineExam->studentAnswer->pluck('student_id')->toArray())) @php $currentTime = now()->format('Y-m-d H:i:s'); @endphp @if (@$row->onlineExam->start <= $currentTime && $currentTime <= @$row->onlineExam->end) {{ ___('online-examination.view') }} @else {{ ___('online-examination.Coming soon...') }} @endif @endif @if (optional(@$row->onlineExam->studentAnswer->where('student_id', $data['student'])->first())->result !== null) {{ ___('online-examination.view') }} @endif

{{ ___('common.No data available') }}

@endsection