IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/admentries/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/admentries/index.blade.php

@extends('schools.school_layout')
@section('content')
<div class="row clearfix">
    <div class="col-sm-12">
        <div class="card">
            <div class="header">
                <h2><strong>Admission Entry</strong></h2>
            </div>
            <div class="body">
                @if(isset($student))
                {!! Form::model($student, ['method' => 'PATCH', 'action' => ['School\AdmissionEntryController@update', $student->idStudent], 'class' => 'form-horizontal','files'=>true]) !!}
                @else
                {!! Form::open(['url' => 'school/admentries', 'class' => 'form-horizontal','files'=>true,'id'=>'admentry_form']) !!}
                @endif
                <fieldset>
                    <p class="form-control-static" style="font-weight: bold">Application Form For Registeration</p>
                    <div class="row clearfix">
                        @if(isset($student))
                        <input class="form-control" type="hidden" id="idStudent" value="{{$student->idStudent}}">
                        @endif
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Admission No.</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                @if(isset($student))
                                {!! Form::text('admissionNo',$student->admissionNo,['class' => 'form-control','readonly'=>'readonly']) !!}
                                @else
                                {!! Form::text('admissionNo',$adm_no,['class' => 'form-control','readonly'=>'readonly']) !!}
                                @endif
                                @if ($errors->has('admissionNo'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('admissionNo') }}</strong>
                                </label>
                                @endif
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname" class="required">Ec NO.</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                @if(isset($student))
                                {!! Form::text('ecNo',$student->ecNo,['class' => 'form-control','minlength'=>'8','maxlength'=>'8','onkeypress'=>'return isNumber(event)','required'=>'required','readonly'=>'readonly']) !!}
                                @else
                                {!! Form::text('ecNo',null,['class' => 'form-control','minlength'=>'8','maxlength'=>'8','onkeypress'=>'return isNumber(event)','required'=>'required']) !!}
                                @endif
                                @if ($errors->has('ecNo'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('ecNo') }}</strong>
                                </label>
                                @endif
                                <span id="ecnoerror"></span>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname" class="required">First Name</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('firstName',null,['class' => 'form-control','onkeypress'=>'return lettersOnly(event)','required'=>'required']) !!}
                                @if ($errors->has('firstName'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('firstName') }}</strong>
                                </label>
                                @endif
                                <span id="fnameerror"></span>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Middle Name</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('middleName',null,['class' => 'form-control','onkeypress'=>'return lettersOnly(event)']) !!}
                                @if ($errors->has('middleName'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('middleName') }}</strong>
                                </label>
                                @endif
                                <span id="mnameerror"></span>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname" class="required">Last Name</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('lastName',null,['class' => 'form-control','onkeypress'=>'return lettersOnly(event)']) !!}
                                @if ($errors->has('lastName'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('lastName') }}</strong>
                                </label>
                                @endif
                                <span id="lnameerror"></span>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname" class="required">Admission For Class</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::select('idClass',$classes,null,['class' => 'form-control show-tick ms select2','required'=>'required']) !!}
                                @if ($errors->has('idClass'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('idClass') }}</strong>
                                </label>
                                @endif
                                <span id='classerror'></span>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname" class="required">Select Section</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                @if(isset($student))
                                {!! Form::select('idSection',$section,null,['class' => 'form-control show-tick ms','required'=>'required']) !!}
                                @else
                                <select name='idSection' class="form-control show-tick ms select2"></select>
                                @endif
                                @if ($errors->has('idSection'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('idSection') }}</strong>
                                </label>
                                @endif
                                <span id='sectionerror'></span>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname" class="required">Select Session</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::select('idFinancialYear',$fys,null,['class' => 'form-control show-tick ms select2','required'=>'required']) !!}
                                @if ($errors->has('idFinancialYear'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('idFinancialYear') }}</strong>
                                </label>
                                @endif
                                <span id="sessionerror"></span>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname" class="required">Date Of Birth</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('studentDob',null,['class' => 'form-control datepickerdob','required'=>'required']) !!}
                                @if ($errors->has('studentDob'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('studentDob') }}</strong>
                                </label>
                                @endif
                                 <span id="doberror"></span>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Place Of Birth</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('studentPob',null,['class' => 'form-control','onkeypress'=>'return lettersOnly(event)',]) !!}
                                @if ($errors->has('studentPob'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('studentPob') }}</strong>
                                </label>
                                @endif
                                <span id="poberror"></span>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname" class="required">Gender</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                @if($school->idCountry == 1)
                                {!! Form::select('gender',[''=>'Select','Male'=>'Male','Female'=>'Female'],null,['class' => 'form-control show-tick ms','required'=>'required']) !!}
                                @else
                                {!! Form::select('gender',[''=>'Select','F'=>'F','M'=>'M','T'=>'T'],null,['class' => 'form-control show-tick ms','required'=>'required']) !!}
                                @endif
                                @if ($errors->has('gender'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('gender') }}</strong>
                                </label>
                                @endif
                                <span id="gendererror"></span>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname"> @if($school->idCountry == 1) Aadhaar No. @else Student QID @endif</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                @if($school->idCountry == 1)
                                {!! Form::text('aadhaarNo',null,['class' => 'form-control','maxlength'=>'12','minlength'=>'12','onkeypress'=>'return isNumber(event)', 'pattern'=>'^[2-9]{1}[0-9]{11}$']) !!}
                                @else
                                {!! Form::text('aadhaarNo',null,['class' => 'form-control','maxlength'=>'11','minlength'=>'11','onkeypress'=>'return isNumber(event)']) !!}
                                @endif
                                
                                @if ($errors->has('aadhaarNo'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('aadhaarNo') }}</strong>
                                </label>
                                @endif
                                <span id="aadhaarerror"></span>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Religion</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('religion',null,['class' => 'form-control']) !!}
                                @if ($errors->has('religion'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('religion') }}</strong>
                                </label>
                                @endif
                                <span id="religionrerror"></span>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname" class="required">Student Type</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::select('studentType',$categories,null,['class' => 'form-control show-tick ms']) !!}
                                @if ($errors->has('studentType'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('studentType') }}</strong>
                                </label>
                                @endif
                                <span id="stdtypeerror"></span>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">@if($school->idCountry == 1)Student UID @else QID Expiry @endif</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                @if($school->idCountry == 1)
                                {!! Form::text('studentUID',null,['class' => 'form-control']) !!}
                                @else
                                {!! Form::date('qid_expiry',null,['class' => 'form-control']) !!}
                                @endif
                                @if ($errors->has('studentUID'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('studentUID') }}</strong>
                                </label>
                                @endif
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Mother Tongue</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('motherTounge',null,['class' => 'form-control','onkeypress'=>'return lettersOnly(event)']) !!}
                                @if ($errors->has('motherTounge'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('motherTounge') }}</strong>
                                </label>
                                @endif
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">GR No.</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('grNo',null,['class' => 'form-control']) !!}
                                @if ($errors->has('grNo'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('grNo') }}</strong>
                                </label>
                                @endif
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Saral No</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('saralNo',null,['class' => 'form-control']) !!}
                                @if ($errors->has('saralNo'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('saralNo') }}</strong>
                                </label>
                                @endif
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname" class="required">Blood Group</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('bloodGroup',null,['class' => 'form-control']) !!}
                                @if ($errors->has('bloodGroup'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('bloodGroup') }}</strong>
                                </label>
                                @endif
                                <span id="bloodgrp"></span>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Photo</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                <img style="border-radius: 60px; width: 100px;height: 100px; margin-top:10px;"  id="uploadPreview" name="image">
                                @if(isset($student))
                                <img src="{{ asset('storage/schools/'.$student->idSchool.'/students/'.$student->photo)}}" height="100">
                                @endif
                                <input type="file"  name="photo" id="image" onchange="PreviewImage();">
                                @if ($errors->has('photo'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('photo') }}</strong>
                                </label>
                                @endif
                            </div>
                        </div>
                </fieldset>
                <fieldset>
                    <p class="form-control-static" style="font-weight: bold">Contact Information:Residential</p>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname" class="required">@if($school->idCountry == 1) Residential Address @else Area @endif</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('resAddress',null,['class' => 'form-control','required'=>'required']) !!}
                                @if ($errors->has('resAddress'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('resAddress') }}</strong>
                                </label>
                                @endif
                                <span id="resaddress"></span>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname" class="required">@if($school->idCountry == 1) City @else Street No @endif</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('resCity',null,['class' => 'form-control']) !!}
                                @if ($errors->has('resCity'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('resCity') }}</strong>
                                </label>
                                @endif
                                <span id="rescity"></span>
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        @if($school->idCountry == 1)
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Postal/Zipcode</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('resPincode',null,['class' => 'form-control','minlength'=>'6','maxlength'=>'6','onkeypress'=>'return isNumber(event)']) !!}
                                @if ($errors->has('resPincode'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('resPincode') }}</strong>
                                </label>
                                @endif
                                <span id="respincode"></span>
                            </div>
                        </div>
                        @endif
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">@if($school->idCountry == 1) Landmark @else Building and Unit @endif</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('landmark',null,['class' => 'form-control']) !!}
                                @if ($errors->has('landmark'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('landmark') }}</strong>
                                </label>
                                @endif
                            </div>
                        </div>
                    </div>
                    <div class="row clearfix">
                        <div class="col-sm-2 form-control-label">
                            <label for="classname" class="required">State</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::select('resState',$states,null,['class' => 'form-control show-tick ms select2','required'=>'required']) !!}
                                @if ($errors->has('resState'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('resState') }}</strong>
                                </label>
                                @endif
                                <span id="resstate"></span>
                            </div>
                        </div>
                        <div class="col-sm-2 form-control-label">
                            <label for="classname">Telephone</label>
                        </div>
                        <div class="col-sm-3">
                            <div class="form-group">
                                {!! Form::text('resTelephone',null,['class' => 'form-control','onkeypress'=>'return onlyNumbersandSpecialChar(event)']) !!}
                                @if ($errors->has('resTelephone'))
                                <label id="minmaxlength-error" class="error" for="minmaxlength">
                                    <strong>{{ $errors->first('resTelephone') }}</strong>
                                </label>
                                @endif
                            </div>
                        </div>
                    </div>
                </fieldset>
                
                <!--Include partial form of last school,parents detail,siblin details-->
                @include('schools.admentries._formlastschool')
                @include('schools.admentries._formparentdetails')
                @include('schools.admentries.contactinfo')
                @include('schools.admentries._requirements')
                @include('schools.admentries._formsibling')
                @if(isset($student))
                <fieldset id="payfee" style="display:none;">
                    <p class="form-control-static" style="font-weight: bold">Payment Transfer</p>
                    <div class="row clearfix" >
                        <div class="col-sm-12 form-control-label">
                            <label>Please update the payment information in case of section transfer otherwise section update will not be reflected</label>
                        </div>
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>Current Header</th>
                                    <th>Transfer Header</th>
                                </tr>
                            </thead>
                            <tbody>
                                <?php $k = 0;?>
                                @foreach($paidfees as $paidfee)
                                <?php
                                    $feehead = DB::table('feeheads')->where('idFeehead',$paidfee->idFeehead)->first();
                                    $k++;
                                ?>
                                @if(isset($feehead))
                                <tr>
                                    <td>
                                        <input class="form-control" type="hidden"  name = "feeheader[{{$k}}][type]" value="full">
                                        <input class="form-control" type="hidden"  name = "feeheader[{{$k}}][old]" value="{{$feehead->idFeehead}}">
                                        <input class="form-control" type="text"  value="{{$feehead->feeheadName}}" readonly>
                                    </td>
                                    <td>
                                        <select name='feeheader[{{$k}}][new]' class="form-control show-tick ms select2"></select>
                                    </td>
                                </tr>
                                @endif
                                @endforeach
                                @foreach($lesserfees as $paidfee)
                                <?php
                                    $feehead = DB::table('feeheads')->where('idFeehead',$paidfee->idFeehead)->first();
                                    $k++;
                                ?>
                                @if(isset($feehead))
                                <tr>
                                    <td>
                                        <input class="form-control" type="hidden"  name = "feeheader[{{$k}}][type]" value="less">
                                        <input class="form-control" type="hidden"  name = "feeheader[{{$k}}][old]" value="{{$feehead->idFeehead}}">
                                        <input class="form-control" type="text"  value="{{$feehead->feeheadName}}" readonly>
                                    </td>
                                    <td>
                                        <select name='feeheader[{{$k}}][new]' class="form-control show-tick ms select2"></select>
                                    </td>
                                </tr>
                                @endif
                                @endforeach
                                <input class="form-control" type="hidden"  value="{{$k}}" id="feeNumber">
                            </tbody>
                        </table>
                    </div>
                </fieldset>
                @endif
                <div class="row clearfix">
                    <div class="col-sm-1">
                        <input name="declaration" type="checkbox" required="required">
                    </div>
                    <div class="col-sm-11 form-control-label">
                        <label>I certify that the above particulars given by me are true and I agree to abide by the rules, regulations and policies of the school. I understand that guarantee admission to the school.</label>
                    </div>
                </div>
                <div class="row clearfix">
                    <div class="col-sm-8 offset-sm-2">
                        @if(isset($student))
                        <button name="Update" class = 'btn btn-raised btn-primary btn-round waves-effect'>UPDATE</button>
                        @else
                        {!! Form::submit('SAVE',['class' => 'btn btn-raised btn-primary btn-round waves-effect','id'=>'submit-btn']) !!}
                        @endif
                        {!! Form::close() !!} 
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@stop
@section('script')
@include('schools.admentries.admentryscript')
@stop

Copyright © 2021 - 2025 IMMREX7