@extends('layouts.admin') @section('title', 'Bulk Student Import') @section('page-title', 'Bulk Student Import') @section('content')
Back to Student List
Upload Student Data (CSV)
@if(session('import_fail')) @endif
@csrf
Only .csv files are supported. Max file size: 2MB.
CSV Structure Guidelines

Your CSV file must have precisely the following 5 columns in the exact header row order. Do not include spaces or special characters in the column headers.

roll_number name class_name section_name branch_name
ROLL101 Jerry Smith Nursery Section A Main Campus
ROLL102 Emma Watson Class 1 Section B West Branch
Active Database Reference Values:
Allowed Classes: Nursery, LKG, UKG, Class 1, Class 2, Class 3, Class 4, Class 5, Class 6, Class 7, Class 8
Allowed Sections: Section A, Section B, Section C
Allowed Branches: Main Campus, West Branch
@if(session('errors_list'))
Validation Errors Details
{{ count(session('errors_list')) }} Errors Found
@foreach(session('errors_list') as $err) @endforeach
Row Roll Number Name Class Section Branch Error Reason
#{{ $err['row'] }} {{ $err['roll_number'] ?: 'N/A' }} {{ $err['name'] ?: 'N/A' }} {{ $err['class_name'] ?: 'N/A' }} {{ $err['section_name'] ?: 'N/A' }} {{ $err['branch_name'] ?: 'N/A' }} {{ $err['errors'] }}
@endif @endsection