@extends('layouts.app') @section('title', 'Edit '.$student->fullName()) @section('content')
@csrf @method('PUT')
@foreach ([['first_name', 'First name', 4], ['last_name', 'Last name', 4], ['religion', 'Religion', 2], ['mother_tongue', 'Mother tongue', 2], ['nationality', 'Nationality', 2], ['phone', "Student's mobile", 3], ['email', 'Email', 3], ['address', 'Address', 6], ['city', 'City', 2], ['state', 'State', 2], ['pincode', 'Pincode', 2], ['previous_school', 'Previous school', 3], ['tc_no', 'TC number', 3]] as [$f, $l, $w])
@error($f)
{{ $message }}
@enderror
@endforeach
@error('aadhaar_no')
{{ $message }}
@enderror
@include('partials.custom-field-inputs', ['fields' => $customFields, 'values' => $customValues])
@endsection