@extends('Component.layout') @section('title', 'Manage Marks - Iqra Admin') @section('breadcrumb', 'Test Management / Manage Marks') @section('content')

Add / Edit Marks

Enter marks for all students in this test.

{{-- Exam Info Card --}}

{{ $exam->title }}

{{ $exam->subject }} {{ $exam->schoolClass->name }} {{ $exam->section ? '- ' . $exam->section->name : '' }} {{ $exam->exam_date->format('d M, Y') }}
Max Marks
{{ number_format($exam->max_marks, 0) }}
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($errors->any())
@foreach($errors->all() as $error)

• {{ $error }}

@endforeach
@endif
@csrf @method('PUT')
@forelse($students as $index => $student) @php $markRecord = $existingMarks->get($student->id); $markValue = $markRecord ? rtrim(rtrim(number_format($markRecord->marks_obtained, 2), '0'), '.') : ''; @endphp @empty @endforelse
# Student ID (Login ID) Student Name Marks Obtained
{{ $index + 1 }} {{ $student->login_id ?? '-' }} {{ $student->first_name }} {{ $student->surname }}

No Students Found

There are no students registered in this class.

@if($students->isNotEmpty())
@endif
@endsection