@extends('layouts.school') @section('title', 'Upload Preview') @section('header', 'Upload Preview') @section('content')

{{ $class->name }} — {{ $subject->name }}

{{ $term->name }} · {{ $assessmentType->name }} (max {{ $assessmentType->max_score }} · weight {{ $assessmentType->weight }}%)

{{ $toUpdate }} row(s) to update · {{ $toSkip }} blank row(s) skipped · {{ $existingCount }} existing score(s) will be overwritten

← Change file @if ($toUpdate > 0 && empty($parseErrors))
@csrf
@endif
@if (!empty($parseErrors))

Errors Found ({{ count($parseErrors) }}) — File Not Imported

Fix the errors below, re-download the template if needed, and upload again.

@endif

Parsed Rows

@forelse($preview as $row) @empty @endforelse
Student Admission No Score Status
{{ $row['student']->first_name }} {{ $row['student']->last_name }} {{ $row['student']->admission_no ?? '—' }} @if ($row['score'] === null) — @else {{ rtrim(rtrim(number_format($row['score'], 2), '0'), '.') }} / {{ $assessmentType->max_score }} @endif @if ($row['status'] === 'skip') Skipped (blank) @else Will be saved @endif
No rows found in the uploaded file.
@endsection