@extends('layouts.app_view'); @section('content')

{{isset($student)? 'Edit': 'Add New'}} Student {{isset($student)? 'with The Number: '.$student->student_num: ''}}

@csrf
@if ($errors->has('first_name'))
{{$errors->first('first_name')}}
@endif
@if ($errors->has('surname'))
{{$errors->first('surname')}}
@endif
@if ($errors->has('birth_date'))
{{$errors->first('birth_date')}}
@endif
@if ($errors->has('enrollment_date'))
{{$errors->first('enrollment_date')}}
@endif
{{ csrf_field() }}
@if ($errors->has('parent_phone_number'))
{{$errors->first('parent_phone_number')}}
@endif
@if ($errors->has('second_phone_number'))
{{$errors->first('second_phone_number')}}
@endif
@if ($errors->has('address'))
{{$errors->first('address')}}
@endif
Cancel
@endsection