@extends('layouts.app') @section('title', 'Bulk Marks Entry') @section('page-title', 'Bulk Marks Entry') @section('content')

Upload marks for an entire class using an Excel template.

Back to Exams
{{-- Messages --}} @if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(session('upload_errors'))

Some rows had issues:

@endif {{-- Step 1: Select Exam & Download Template --}}

1 Select Exam & Download Template

@if($exams->count())
@else

No exams found. Create an exam first before uploading marks.

Create Exam
@endif
{{-- Step 2: Upload Marks --}}

2 Upload Filled Marks Sheet

@csrf
{{-- How It Works --}}

How It Works

Download — Template pre-filled with student names for the selected exam

Fill In — Enter marks in the "Marks Obtained" column. Mark absent students with "yes"

Upload — Grades are auto-calculated. Existing marks will be updated with audit trail

{{-- Recent Exams Quick Stats --}} @if($exams->count())

Recent Exams

@foreach($exams->take(10) as $exam) @endforeach
Exam Subject Class Max Marks Entries Date
{{ $exam->name }} {{ $exam->subject?->name ?? '—' }} {{ $exam->class_?->full_name ?? '—' }} {{ $exam->total_marks }} {{ $exam->marks->count() }} {{ $exam->exam_date?->format('d M Y') }}
@endif
@endsection