IMMREX7
@extends('schools.school_layout')
@section('content')
<style>
label{
font-size: 11px;
color: #6572b8;
font-weight: 500;
}
</style>
<div class="row clearfix">
<div class="col-lg-12 col-sm-12">
<div class="card">
<div class="header">
<h2><strong>Transfer Form</strong></h2>
<a class="btn btn-raised btn-primary btn-round waves-effect" style="float: right;" href="javascript:void(0)" onclick="submitTransferForm()">Print Form</a>
</div>
<div class="body">
<p style="font-size:18px;"><b><u>SCHOOL LEAVING CERTIFICATE FORM</u></b></p>
{!! Form::open(['url' => 'school/transfer-data', 'class' => 'form-horizontal', 'id'=>'transfer-form']) !!}
<input type="hidden" value="{{ $id }}" name="idStudent"/>
<div class="row clearfix form-group">
<div class="col-md-3">
<label>Student ID</label>
<input type="text" class="form-control" name="student_id" @if($saved != null) value="{{ $saved->student_id }}" @endif>
</div>
<div class="col-md-3">
<label>UDISE No.</label>
<input type="text" class="form-control" name="udise_no" @if($saved != null) value="{{ $saved->udise_no }}" @endif>
</div>
<div class="col-md-4">
<label>Gr No.</label>
<input type="text" class="form-control" name="book_no" @if($saved != null) value="{{ $saved->book_no }}" @endif>
</div>
<div class="col-md-4" style="margin-top:20px;">
<label>Name of Pupil</label>
<input type="text" class="form-control" name="name_of_pupil" @if($saved != null) value="{{ $saved->name_of_pupil }}" @else value="{{$student->firstName . " " . $student->middleName . " " . $student->lastName}}" @endif>
</div>
<div class="col-md-4" style="margin-top:20px;">
<label>Mother’s Name</label>
<input type="text" class="form-control" name="mother_name" @if($saved != null) value="{{ $saved->mother_name }}" @else value="{{$student->mother_fname . " " . $student->mother_lname}}" @endif>
</div>
<div class="col-md-4" style="margin-top:20px;">
<label>Father’s / Guardian’s Name</label>
<input type="text" class="form-control" name="father_name" @if($saved != null) value="{{ $saved->father_name }}" @else value="{{$student->father_fname ." ". $student->father_lname}}"@endif >
</div>
<div class="col-md-6" style="margin-top:20px;">
<label>Date of Birth (in Christian Era) according to Admission & Withdrawal Register (in Figures)</label>
<input type="date" class="form-control" name="dob_figures" @if($saved != null) value="{{ \Carbon\Carbon::parse($saved->dob_figures)->format('Y-m-d') }}" @else
@if($student->studentDob != null) value="{{\Carbon\Carbon::parse($student->studentDob)->format('Y-m-d')}}" @endif @endif>
</div>
<?php
$dob = \Carbon\Carbon::parse($student->studentDob)->format('d.F.Y');
$pieces = explode(".", $dob);
?>
<div class="col-md-6" style="margin-top:20px;">
<label>Date of Birth (in Words)</label>
<input type="text" class="form-control" name="dob_words" @if($saved != null) value="{{ $saved->dob_words }}" @else value="@if(count($pieces) > 1) {{str_replace("only","",figToWordDob($pieces[0]))}} {{$pieces[1]}} {{str_replace("only","",figToWordDob($pieces[2]))}} @endif" @endif>
</div>
<div class="col-md-2" style="margin-top:20px;">
<label>Nationality</label>
<input type="text" class="form-control" name="nationality" @if($saved != null) value="{{ $saved->nationality }}" @endif>
</div>
<div class="col-md-6" style="margin-top:20px;">
<label>Whether the candidates belongs to Schedule Cast or Schedule Tribe or OBC</label><br>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="belongs_sc_st_obc" id="failedYes1" value="Yes" @if($saved != null) @if($saved->belongs_sc_st_obc == "Yes") checked @endif @endif>
<label class="form-check-label" for="failedYes1">Yes</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="belongs_sc_st_obc" id="failedNo1" value="No" @if($saved != null) @if($saved->belongs_sc_st_obc == "No") checked @endif @endif>
<label class="form-check-label" for="failedNo1">No</label>
</div>
</div>
<div class="col-md-4" style="margin-top:20px;">
<label>Date of first admission in the school with class</label>
<input type="date" class="form-control" name="first_admission_date_class" @if($saved != null) value="{{ \Carbon\Carbon::parse($saved->first_admission_date_class)->format('Y-m-d') }}" @endif>
</div>
<div class="col-md-3" style="margin-top:20px;">
<label>Class in which the pupil last studied (in figures)</label>
<input type="text" class="form-control" name="last_class_figures" @if($saved != null) value="{{ $saved->last_class_figures }}" @else value="{{$student->className}}" @endif>
</div>
<div class="col-md-3" style="margin-top:20px;">
<label>Class in which the pupil last studied (in words)</label>
<input type="text" class="form-control" name="last_class_words" @if($saved != null) value="{{ $saved->last_class_words }}" @else value="{{$student->className}}" @endif>
</div>
<div class="col-md-6" style="margin-top:20px;">
<label>School / Board Annual examination last taken with result</label>
<input type="text" class="form-control" name="last_exam_result" @if($saved != null) value="{{ $saved->last_exam_result }}" @endif>
</div>
<div class="col-md-6" style="margin-top:20px;">
<label>Whether failed, if so once/twice in the same class</label><br>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="failed_info" id="failedYes" value="Yes" @if($saved != null) @if($saved->failed_info == "Yes") checked @endif @endif>
<label class="form-check-label" for="failedYes">Yes</label>
</div>
<div class="form-check form-check-inline">
<input class="form-check-input" type="radio" name="failed_info" id="failedNo" value="No" @if($saved != null) @if($saved->failed_info == "No") checked @endif @endif>
<label class="form-check-label" for="failedNo">No</label>
</div>
</div>
<div class="col-md-12" style="margin-top:20px;">
<label>Subjects studied</label>
<div class="row" id="subjects-container">
@if($saved != null)
<?php $arr = $saved->subjects_studied;
$i =1;?>
@foreach ($arr as $k=>$v)
@if($v != null)
<div class="col-md-3 mb-2">
<input type="text" class="form-control" name="subjects_studied[]" placeholder="Subject {{ $i }}" value="{{ $v }}">
</div>
<?php $i++;?>
@endif
@endforeach
@else
@for($i = 1; $i <= 4; $i++)
<div class="col-md-3 mb-2">
<input type="text" class="form-control" name="subjects_studied[]" placeholder="Subject {{ $i }}">
</div>
@endfor
@endif
</div>
<button type="button" class="btn btn-raised btn-primary btn-round waves-effect mt-2" id="add-subject">Add More</button>
</div>
<div class="col-md-6" style="margin-top:20px;">
<label>Whether qualified for promotion to the higher class. If so, to which class (in figures)</label>
<input type="text" class="form-control" name="promotion_class_figures" @if($saved != null) value="{{ $saved->promotion_class_figures }}" @endif>
</div>
<div class="col-md-6" style="margin-top:20px;">
<label>Whether qualified for promotion to the higher class. If so, to which class (in words)</label>
<input type="text" class="form-control" name="promotion_class_words" @if($saved != null) value="{{ $saved->promotion_class_words }}" @endif>
</div>
<div class="col-md-4" style="margin-top:20px;">
<label>Month upto which the pupil has paid school dues</label>
<input type="date" class="form-control" name="dues_paid_upto" @if($saved != null) value="{{ \Carbon\Carbon::parse($saved->dues_paid_upto)->format('Y-m-d') }}" @endif>
</div>
<div class="col-md-5" style="margin-top:20px;">
<label>Any fee concession availed of, if so, the nature of such concession</label>
<input type="text" class="form-control" name="fee_concession" @if($saved != null) value="{{ $saved->fee_concession }}" @endif>
</div>
<div class="col-md-3" style="margin-top:20px;">
<label>School Leaving Date, Month and Year</label>
<input type="date" class="form-control" name="school_leaving_date" @if($saved != null) value="{{ \Carbon\Carbon::parse($saved->school_leaving_date)->format('Y-m-d') }}" @endif>
</div>
<div class="col-md-4" style="margin-top:20px;">
<label>Total No. of working days in the academic session</label>
<input type="number" class="form-control" name="total_working_days" @if($saved != null) value="{{ $saved->total_working_days }}" @endif>
</div>
<div class="col-md-4" style="margin-top:20px;">
<label>Total No. working days pupil present in the school</label>
<input type="number" class="form-control" name="working_days_present" @if($saved != null) value="{{ $saved->working_days_present }}" @endif>
</div>
<div class="col-md-4" style="margin-top:20px;">
<label>Whether NCC Cadet Boy Scout / Guide (details may be given)</label>
<input type="text" class="form-control" name="ncc_scout_guide" @if($saved != null) value="{{ $saved->ncc_scout_guide }}" @endif>
</div>
<div class="col-md-8" style="margin-top:20px;">
<label>Games played or extra circular activities in which the pupil usually took part (mention achievement level therein)</label>
<input type="text" class="form-control" name="extra_curricular" @if($saved != null) value="{{ $saved->extra_curricular }}" @endif>
</div>
<div class="col-md-4" style="margin-top:20px;">
<label>General conduct</label>
<input type="text" class="form-control" name="general_conduct" @if($saved != null) value="{{ $saved->general_conduct }}" @endif>
</div>
<div class="col-md-4" style="margin-top:20px;">
<label>Date of application for certificate</label>
<input type="date" class="form-control" name="application_date" @if($saved != null) value="{{ \Carbon\Carbon::parse($saved->application_date)->format('Y-m-d') }}" @endif>
</div>
<div class="col-md-4" style="margin-top:20px;">
<label>Date of issue of certificate</label>
<input type="date" class="form-control" name="certificate_issue_date" @if($saved != null) value="{{ \Carbon\Carbon::parse($saved->certificate_issue_date)->format('Y-m-d') }}" @endif>
</div>
<div class="col-md-4" style="margin-top:20px;">
<label>Reasons for leaving the school</label>
<input type="text" class="form-control" name="reason_for_leaving" @if($saved != null) value="{{ $saved->reason_for_leaving }}" @endif>
</div>
<div class="col-md-12" style="margin-top:20px;">
<label>Any other remarks</label>
<textarea class="form-control" name="remarks" rows="2">@if($saved != null) {{ $saved->remarks }} @endif</textarea>
</div>
</div>
<div class="row clearfix">
<div class="col-sm-3">
{!! Form::submit('SAVE',['class' => 'btn btn-raised btn-primary btn-round waves-effect']) !!}
{!! Form::close() !!}
</div>
</div>
</div>
</div>
</div>
</div>
@stop
@section('script')
<script>
document.getElementById('add-subject').addEventListener('click', function () {
const container = document.getElementById('subjects-container');
const inputCount = container.querySelectorAll('input').length;
const newDiv = document.createElement('div');
newDiv.className = 'col-md-3 mb-2';
newDiv.innerHTML = `<input type="text" class="form-control" name="subjects_studied[]" placeholder="Subject ${inputCount + 1}">`;
container.appendChild(newDiv);
});
function submitTransferForm() {
const $form = $('#transfer-form');
if ($form.length) {
$form.submit();
console.log('Form with ID "transfer-form" submitted programmatically using jQuery.');
}
}
</script>
@stop
Copyright © 2021 -