IMMREX7
<!DOCTYPE html>
<html lang="<?php echo e(app()->getLocale()); ?>">
<?php echo $__env->make('layouts.partial.head', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<?php if($data['result'] == 0): ?>
<style>
* {
box-sizing: border-box;
}
body {
font: 110%/1.5 system-ui, sans-serif;
background: #131417;
color: white;
height: 100vh;
margin: 0;
display: grid;
place-items: center;
padding: 2rem;
}
main {
max-width: 350px;
}
a {
color: #56BBF9;
}
</style>
<body>
<h1 data-test-id="text-404">Invalid Link</h1>
<p>I'm afraid you've found a link that doesn't exist. That can happen when you open a link that has been deleted. Or the link was incorrect to begin with.</p>
<p>Sorry about that. We've logged the error for review, in case it's our fault.</p>
<?php else: ?>
<?php
$school= \App\School::where('idSchool', '=', $data['idSchool'])->first();
$classes= ['' => '---Select---'] + \App\ClassM::where('idSchool', '=', $data['idSchool'])->get()->pluck('className', 'idClass')->toArray();
?>
<style>
#progressbar li{
width : 100%;
}
@media (min-width:801px) {
/* tablet, landscape iPad, lo-res laptops ands desktops */
#progressbar li{
width : 25%;
}
}
</style>
<body class="theme-purple">
<div class="overlay"></div>
<div class="row" style="margin:0px !important;">
<div class="col-sm-1"></div>
<div class="col-sm-10">
<div class="card">
<div style="text-align: center;">
<a><img src="<?php echo e(asset('storage/schools/'.$school->idSchool.'/'.$school->schoolLogo)); ?>" width="90" alt="School MIS"></a>
<h2 style="text-align: center; font-size: 20px;"><strong>Virtual ID Card</strong></h2>
</div>
<div class="body">
<?php if($errors->has('stdregistered')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('stdregistered')); ?></strong>
</label>
<?php endif; ?>
<form class="form-horizontal" method="POST" id="register" files="true" enctype="multipart/form-data" action="<?php echo e(url('/id-card')); ?>">
<?php echo e(csrf_field()); ?>
<!-- progressbar -->
<strong>
<ul id="progressbar" style="padding-left:0px;">
<li class="active">Basic Detail</li>
<li id="second">Contact Information</li>
<li id="third">Parents Detail</li>
<li id="forth">Photo Upload</li>
</ul>
</strong>
<div id="sf1" class="frm">
<input type="hidden" name='form_type' value="E">
<input type="hidden" name='vid' value="<?php echo e($data['id']); ?>">
<input type="hidden" name='idFinancialYear' value="<?php echo e($data['idFinancialYear']); ?>">
<input type="hidden" name='idSchool' value="<?php echo e($school->idSchool); ?>">
<fieldset>
<p class="form-control-static" style="font-weight: bold">Basic Detail</p>
<div class="row">
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname" class="required">First Name</label>
</div>
<div class="col-md-3 col-sm-6">
<div class="form-group">
<?php echo Form::text('firstName',null,['class' => 'form-control','onkeypress'=>'return lettersOnly(event)','required'=>'required','style'=>'text-transform:uppercase']); ?>
<?php if($errors->has('firstName')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('firstName')); ?></strong>
</label>
<?php endif; ?>
<span id="fnameerror"></span>
</div>
</div>
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname">Middle Name</label>
</div>
<div class="col-md-3 col-sm-6">
<div class="form-group">
<?php echo Form::text('middleName',null,['class' => 'form-control','onkeypress'=>'return lettersOnly(event)','style'=>'text-transform:uppercase']); ?>
<?php if($errors->has('middleName')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('middleName')); ?></strong>
</label>
<?php endif; ?>
<span id="mnameerror"></span>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname" class="required">Last Name</label>
</div>
<div class="col-md-3 col-sm-6">
<div class="form-group">
<?php echo Form::text('lastName',null,['class' => 'form-control','onkeypress'=>'return lettersOnly(event)','required'=>'required','style'=>'text-transform:uppercase']); ?>
<?php if($errors->has('lastName')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('lastName')); ?></strong>
</label>
<?php endif; ?>
<span id="lnameerror"></span>
</div>
</div>
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname" class="required">Class</label>
</div>
<div class="col-md-3 col-sm-6">
<?php echo Form::select('idClass',$classes,null,['class' => 'form-control show-tick ms','required'=>'required']); ?>
<div class="form-group">
<?php if($errors->has('idClass')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('idClass')); ?></strong>
</label>
<?php endif; ?>
<span id='classerror'></span>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname" class="required">Date Of Birth</label>
</div>
<div class="col-md-3 col-sm-6">
<div class="form-group">
<?php echo Form::text('studentDob',null,['class' => 'form-control datepickerdob','required'=>'required']); ?>
<?php if($errors->has('studentDob')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('studentDob')); ?></strong>
</label>
<?php endif; ?>
<span id="doberror"></span>
</div>
</div>
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname">Blood Group</label>
</div>
<div class="col-md-3 col-sm-6">
<div class="form-group">
<?php echo Form::text('blood_group',null,['class' => 'form-control']); ?>
<?php if($errors->has('blood_group')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('blood_group')); ?></strong>
</label>
<?php endif; ?>
<span id="bgerror"></span>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname" class="required">Gender</label>
</div>
<div class="col-md-3 col-sm-6">
<div class="form-group">
<?php echo Form::select('gender',[''=>'Select','Male'=>'Male','Female'=>'Female'],null,['class' => 'form-control show-tick ms','required'=>'required']); ?>
<?php if($errors->has('gender')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('gender')); ?></strong>
</label>
<?php endif; ?>
<span id="gendererror"></span>
</div>
</div>
</div>
<div class="clearfix" style="height: 10px;clear: both;"></div>
<div class="form-group">
<div class="col-sm-12" style="text-align: center;">
<button class="btn btn-primary open1 center-block" type="button" id="next1"> Next <span class="fa fa-arrow-right"></span></button>
</div>
</div>
</fieldset>
</div>
<div id="sf2" class="frm" style="display: none;">
<fieldset>
<p class="form-control-static" style="font-weight: bold">Contact Information:Residential</p>
<div class="row clearfix">
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname" class="required">Residential Address</label>
</div>
<div class="col-md-3 col-sm-6">
<div class="form-group">
<?php echo Form::text('resAddress',null,['class' => 'form-control','required'=>'required','style'=>'text-transform:uppercase']); ?>
<?php if($errors->has('resAddress')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('resAddress')); ?></strong>
</label>
<?php endif; ?>
<span id="resaddress"></span>
</div>
</div>
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname" class="required">City</label>
</div>
<div class="col-md-3 col-sm-6">
<div class="form-group">
<?php echo Form::text('resCity',null,['class' => 'form-control','required'=>'required','style'=>'text-transform:uppercase']); ?>
<?php if($errors->has('resCity')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('resCity')); ?></strong>
</label>
<?php endif; ?>
<span id="rescity"></span>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname" class="required">Postal/Zipcode</label>
</div>
<div class="col-md-3 col-sm-6">
<div class="form-group">
<?php echo Form::text('resPincode',null,['class' => 'form-control','required'=>'required','minlength'=>'6','maxlength'=>'6','onkeypress'=>'return isNumber(event)']); ?>
<?php if($errors->has('resPincode')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('resPincode')); ?></strong>
</label>
<?php endif; ?>
<span id="respincode"></span>
</div>
</div>
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname">Landmark</label>
</div>
<div class="col-md-3 col-sm-6">
<div class="form-group">
<?php echo Form::text('landmark',null,['class' => 'form-control','style'=>'text-transform:uppercase']); ?>
<?php if($errors->has('landmark')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('landmark')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname" class="required">State</label>
</div>
<div class="col-md-3 col-sm-6">
<div class="form-group">
<?php echo Form::select('resState',states(),null,['class' => 'form-control show-tick ms select2','required'=>'required']); ?>
<?php if($errors->has('resState')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('resState')); ?></strong>
</label>
<?php endif; ?>
<span id="resstate"></span>
</div>
</div>
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname">Telephone</label>
</div>
<div class="col-md-3 col-sm-6">
<div class="form-group">
<?php echo Form::text('resTelephone',null,['class' => 'form-control','onkeypress'=>'return onlyNumbersandSpecialChar(event)']); ?>
<?php if($errors->has('resTelephone')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('resTelephone')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
</div>
<div class="clearfix" style="height: 10px;clear: both;"></div>
<div class="clearfix" style="height: 10px;clear: both;"></div>
<div class="form-group">
<div class="col-sm-12" style="text-align: center;">
<button class="btn btn-warning back2 pull-left" type="button" id="previous"><span class="fa fa-arrow-left"></span> Previous</button>
<button class="btn btn-primary open2 pull-right" type="button" id="next2">Next <span class="fa fa-arrow-right"></span></button>
</div>
</div>
</fieldset>
</div>
<div id="sf3" class="frm" style="display: none;">
<fieldset>
<div class="row clearfix">
<div class="col-sm-12 col-md-12 col-lg-6">
<p class="form-control-static" style="font-weight: bold"> Particulars of Father / Mother / Guardian #1</p>
<div class="row clearfix">
<div class="col-md-3 col-sm-6 form-control-label">
<label for="classname">Relationship with the child</label>
</div>
<div class="col-sm-6">
<div class="form-group">
<?php echo Form::select('ralationship_one',['Father'=>'Father'],null,['class' => 'form-control show-tick ms select2']); ?>
<?php if($errors->has('ralationship_one')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('ralationship_one')); ?></strong>
</label>
<?php endif; ?>
<span id="relone"></span>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-3 col-sm-6 form-control-label">
<label for="classname" class="required">Name</label>
</div>
<div class="col-sm-4">
<div class="form-group">
<?php echo Form::text('father_fname',null,['class' => 'form-control','required'=>'required','style'=>'text-transform:uppercase']); ?>
<?php if($errors->has('father_fname')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('father_fname')); ?></strong>
</label>
<?php endif; ?>
<span id="fatherfname"></span>
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<?php echo Form::text('father_lname',null,['class' => 'form-control','style'=>'text-transform:uppercase']); ?>
<?php if($errors->has('father_lname')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('father_lname')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-3 col-sm-6 form-control-label">
<label for="classname" class="required">Mobile</label>
</div>
<div class="col-sm-6">
<div class="form-group">
<?php echo Form::text('father_mobile',null,['class' => 'form-control','required'=>'required','maxlength'=>'10','minlength'=>'10','onkeypress'=>'return isNumber(event)']); ?>
<?php if($errors->has('father_mobile')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('father_mobile')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
</div>
</div>
<div class="col-sm-12 col-md-12 col-lg-6">
<p class="form-control-static" style="font-weight: bold"> Particulars of Father / Mother / Guardian #1</p>
<div class="row clearfix">
<div class="col-md-3 col-sm-6 form-control-label">
<label for="classname">Relationship with the child</label>
</div>
<div class="col-sm-6">
<div class="form-group">
<?php echo Form::select('ralationship_two',['Mother'=>'Mother'],null,['class' => 'form-control show-tick ms select2']); ?>
<?php if($errors->has('ralationship_two')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('ralationship_two')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-3 col-sm-6 form-control-label">
<label for="classname" class="required">Name</label>
</div>
<div class="col-sm-4">
<div class="form-group">
<?php echo Form::text('mother_fname',null,['class' => 'form-control','required'=>'required','style'=>'text-transform:uppercase']); ?>
<?php if($errors->has('mother_fname')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('mother_fname')); ?></strong>
</label>
<?php endif; ?>
<span id="motherfname"></span>
</div>
</div>
<div class="col-sm-4">
<div class="form-group">
<?php echo Form::text('mother_lname',null,['class' => 'form-control','style'=>'text-transform:uppercase']); ?>
<?php if($errors->has('mother_lname')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('mother_lname')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
</div>
<div class="row clearfix">
<div class="col-md-3 col-sm-6 form-control-label">
<label for="classname" class="required">Mobile</label>
</div>
<div class="col-sm-6">
<div class="form-group">
<?php echo Form::text('mother_mobile',null,['class' => 'form-control','required'=>'required','maxlength'=>'10','minlength'=>'10','onkeypress'=>'return isNumber(event)']); ?>
<?php if($errors->has('mother_mobile')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('mother_mobile')); ?></strong>
</label>
<?php endif; ?>
<span id="mothermobile"></span>
</div>
</div>
</div>
</div>
</div>
<div class="clearfix" style="height: 10px;clear: both;"></div>
<div class="form-group">
<div class="col-sm-12" style="text-align: center;">
<button class="btn btn-warning back3 pull-left" type="button" id="previous"><span class="fa fa-arrow-left"></span> Previous</button>
<button class="btn btn-primary open3 pull-right" type="button" id="next3">Next <span class="fa fa-arrow-right"></span></button>
</div>
</div>
</fieldset>
</div>
<div id="sf4" class="frm" style="display: none;">
<fieldset>
<div class="row clearfix">
<div class="col-md-2 col-sm-5 form-control-label">
<label for="classname" class="required">Photo</label>
</div>
<div class="col-md-3 col-sm-6">
<div class="form-group">
<input type="file"
id="photo" name="photo"
accept="image/png, image/jpeg">
<?php if($errors->has('photo')): ?>
<label id="minmaxlength-error" class="error" for="minmaxlength">
<strong><?php echo e($errors->first('photo')); ?></strong>
</label>
<?php endif; ?>
</div>
</div>
</div>
<div class="row clearfix">
<p class="col-md-12 col-sm-12" style="color:red;">Note : Photo should be passport size with white background in regular school uniform and this photograph will be used in <u><b>School ID Card</b></u> </p>
<p class="col-md-12 col-sm-12" style="color:red;">Note : Photo should be jpeg or png</p>
</div>
<div class="clearfix" style="height: 10px;clear: both;"></div>
<div class="form-group">
<div class="col-sm-12" style="text-align: center;">
<button class="btn btn-warning back4 pull-left" type="button" id="previous"><span class="fa fa-arrow-left"></span> Previous</button>
<button class="btn btn-primary open3 pull-right" type="submit" id="submit">Submit </button>
</div>
</div>
</fieldset>
</div>
</form>
</div>
</div>
</div>
<?php endif; ?>
</div>
<!-- Scripts -->
<?php echo $__env->make('layouts.partial.script', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<script>
$('.datepickerdob').datepicker({
autoclose: true,
autoWidth: false,
format: 'dd-mm-yyyy',
endDate: '+0d',
orientation: 'auto'
});
$(document).ready(function () {
//Add Input field if others is selecyted
var v = $('#register').validate({
rules: {
firstName: {
required: true,
maxlength: 40,
minlength: 2
}
},
messages: {
firstName: {
required: "First name should not be empty.",
minlength: "First name must have atleast 2 Characters."
}
}
});
$("select").on("select2:close", function (e) {
$(this).valid();
});
$("#next1").click(function () {
if (v.form()) {
$(".frm").hide("fast");
$("#sf2").show("slow");
$("#progressbar li#second").addClass("active");
}
});
$("#next2").click(function () {
if (v.form()) {
$(".frm").hide("fast");
$("#sf3").show("slow");
$("#progressbar li#third").addClass("active");
}
});
$("#next3").click(function () {
if (v.form()) {
$(".frm").hide("fast");
$("#sf4").show("slow");
$("#progressbar li#fourth").addClass("active");
}
});
$("#next4").click(function () {
if (v.form()) {
$(".frm").hide("fast");
$("#sf6").show("slow");
$("#progressbar li#sixth").addClass("active");
}
});
$(".back2").click(function () {
$(".frm").hide("fast");
$("#sf1").show("slow");
$("#progressbar li#second").removeClass("active");
});
$(".back3").click(function () {
$(".frm").hide("fast");
$("#sf2").show("slow");
$("#progressbar li#third").removeClass("active");
});
$(".back4").click(function () {
$(".frm").hide("fast");
$("#sf3").show("slow");
$("#progressbar li#fourth").removeClass("active");
});
$(".back6").click(function () {
$(".frm").hide("fast");
$("#sf4").show("slow");
$("#progressbar li#fifth").removeClass("active");
});
});
</script>
</body>
</html>
Copyright © 2021 -