@extends('layouts.app') @section('content')

LMS Individual Report

@include('flash::message')
{!! Form::open(['url' => 'lms/individual', 'files'=>true]) !!}
{!! Form::label('', 'Course:') !!}
{!! Form::label('', 'User:') !!}


{!! Form::submit('Search', ['id' => 'm-submit', 'class' => 'btn btn-primary']) !!}
{!! Form::close() !!}
@if(isset($result)) @if(count($result) && is_array($result) && array_key_exists(0, $result) && $result) Download PDF
{!! config('config.lms_report_name') ?: '' !!}
Candidate’s E-Learning Statistic and Analysis Report
{!! ($result[0]->Course_Title) !!}
Training Date: {!! gmdate("d/m/Y", ($result[0]->Quiz_attempt_time_start)) !!}
Training Duration: 2 hours

Personal Data:

Name of Officer : {!! $officer= strtoupper($result[0]->Firstname.' '.$result[0]->Lastname ) !!}
NRIC / FIN : {!! strtoupper($result[0]->NRIC) !!}
Site Name : {!! str_replace($result[0]->Company.'-', '',$result[0]->Venue) !!}

INVIGILATION OF E-ASSESSMENT

Photograph: Officer attempting the E-Assessment
Date: {!! gmdate("d/m/Y", ($result[0]->Quiz_attempt_time_start)) !!}
@if($invigilationImg) @endif

Assessment Quiz:

@for($key = 0; $key < 5; $key++) {!! $key+1 !!}. {!! strip_tags($questions[$key]->questiontext) !!}
@endfor
@for($key = 5; $key < count($questions); $key++) {!! $key+1 !!}. {!! strip_tags($questions[$key]->questiontext) !!}
@endfor
Result Achieved:
@if($pass) 1. {!! $officer !!} has successfully completed the E-Learning programme and {!! count($questions) !!} questions designed for this quiz. @else 1. {!! $officer !!} has not completed the E-Learning programme and {!! count($questions) !!} questions designed for this quiz. @endif
Analysis:
@if($pass && count($sortedAttempts) == 1 )
1. {!! $officer !!} completed and passed the criteria with only 1 attempt.
@endif @if($pass && count($sortedAttempts) > 1 )
1. 1st attempt: Answered correctly: {!! $wrongCorrects[0]['correctCount'] !!} questions. Answered wrongly: {!! $wrongCorrects[0]['wrongs'] !!}. @if($wrongCorrects[0]['noattempt']) No Attempt: {!! $wrongCorrects[0]['noattempt'] !!} @endif
@if(count($sortedAttempts) >= 2) 2. 2nd attempt: Tested on {!! $wrongCorrects[0]['wrongs'] !!} @if($wrongCorrects[0]['noattempt']) and {!! $wrongCorrects[0]['noattempt'] !!}. @else . @endif @if($wrongCorrects[1]['newCorrects'] ) Answered correctly: {!! $wrongCorrects[1]['newCorrects'] !!}. @endif @if($wrongCorrects[1]['wrongs']) Answered wrongly: {!! $wrongCorrects[1]['wrongs'] !!}. @endif @endif
@if(count($sortedAttempts) == 3) 3. 3rd attempt: Tested on {!! $wrongCorrects[0]['wrongs'] !!} @if($wrongCorrects[1]['noattempt']) and {!! $wrongCorrects[1]['noattempt'] !!}. @else . @endif Answered correctly: @if(isset($wrongCorrects[2]['newCorrects'])) {!! $wrongCorrects[2]['newCorrects'] !!} @endif
@endif {!! count($sortedAttempts)+1 !!}. {!! $officer !!} has understood the topic has answered all questions in the assessment and is deemed competent.
@endif @if(!$pass)
1. In the last attempt, {!! $officer !!} still gets the same question(s) wrong. {!! $officer !!} will have to attend the training again.
@endif
@for($i =0; $i< $questionperattemptscount; $i++) @endfor @for($i =0; $i< count($sortedAttempts); $i++) @for ($q =0; $q < $questionperattemptscount; $q++) @endfor @endfor
{!! $i+1 !!}
{!! $i+1 !!}@if($i == 0)st@elseif($i == 1)nd@elserd@endif Attempt @if(isset($sortedAttempts[$i][$q])) @if(($sortedAttempts[$i][$q]->State) == 'gradedpartial' ) @elseif(($sortedAttempts[$i][$q]->State) == 'gradedwrong') @elseif(($sortedAttempts[$i][$q]->State) == 'gradedright') @else @endif @else @endif
@if(count($sortedAttempts)>=2)
@endif @if(count($sortedAttempts)>=3)
@endif

@if(count($explaination) > 0) The trainer has explained the reason why the candidate has answered wrongly.
@foreach($explaination as $explain) {!! $explain !!}
@endforeach @endif
It is recommended that the candidate should attempt the following modules to gain holistic security knowledge.







Detecting and responding to suspicious situations. Recognising threat-based surveillance. Detecting and responding to unattended suspicious baggage. Responding to unattended stationary vehicles. Responding to vehicular attacks. Responding to disorderly behaviour in public. Responding to fire emergency.
@elseif(is_array($result) && count($result) == 0) This officer have not attend this Course. @endif @endif
@section('js') {!! Html::style('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/css/select2.min.css') !!} {!! Html::script('https://cdnjs.cloudflare.com/ajax/libs/select2/4.0.3/js/select2.min.js') !!} @endsection
@endsection