@extends('layouts.app') @section('title', 'Test Series Scores') @section('page-title', 'Test Series Scores Report') @section('breadcrumb', 'Reports / Test Series Scores') @section('content')
@if($records->count())
@foreach($records as $record) @php $score = $record->meta['test_series_score'] ?? 0; $total = $record->meta['test_series_total'] ?? 100; $pct = $total > 0 ? round(($score / $total) * 100, 1) : 0; @endphp @endforeach
Learner Email Test Series Score Total Marks Percentage Attempt Date Pass/Fail
{{ $record->user?->name }} {{ $record->user?->email }} {{ $record->course?->title ?? $record->bundle?->title ?? '—' }} {{ $score }} {{ $total }} {{ $pct }}% {{ $record->updated_at?->format('M d, Y') }} {{ $pct >= 40 ? 'Pass' : 'Fail' }}
{{ $records->links() }}
@else @endif
@endsection