@extends('Training::backend.layouts.app') @section('title', 'Surprise Test Result') @push('css') @endpush @section('content')

Surprise Test Result

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
    {{ $trSurpriseParticipant->employee->user->name ?? '' }}
  • Designation: {{ $trSurpriseParticipant->employee->designation->name ?? ''}}
  • Total Marks: {{ $trSurpriseParticipant->trSurpriseResponses()->totalMarks() }}
  • Result: {{ +$trSurpriseParticipant->obtained }} ({{ +$trSurpriseParticipant->percentage }}%)
  • Total Question: {{ $trSurpriseParticipant->trSurpriseResponses()->totalQuestion() }}
  • Total Answered: {{ $trSurpriseParticipant->trSurpriseResponses()->totalAnswered() }}
  • Correct Answer: {{ $trSurpriseParticipant->trSurpriseResponses()->correctAnswer() }}
  • Theory Answer: {{ $trSurpriseParticipant->trSurpriseResponses()->theoryQuestion() }}
  • @csrf
@csrf @method('PUT') @forelse($trSurpriseParticipant->trSurpriseResponses as $trSurpriseResponse)
@empty No answers found @endforelse @if($trSurpriseParticipant->trSurpriseResponses()->theoryQuestion() > 0) @endif
@include('admin.sections.footer')
@endsection @push('js') @endpush