IMMREX7
<?php $__env->startSection('content'); ?>
<?php echo $__env->make('schools.students.advance_search', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<div class="row clearfix">
<div class="col-sm-12">
<div class="card">
<div class="header">
<h2><strong>List Of Students</strong></h2>
</div>
<div class="body table-responsive">
<table class="table table-bordered table-striped table-hover dataTable" id='tableexp'>
<thead>
<tr>
<th>S. No.</th>
<th>Photo</th>
<th>EC No.</th>
<th>Name</th>
<th>Father Name</th>
<th>Contact No.</th>
<th>DOB</th>
<th>Gender</th>
<th>Class</th>
<th>Section</th>
<th>Password</th>
<th>Student Status</th>
<th>Action</th>
<!-- Export to excel option-->
<!--<th>EC No.</th>
<th>Name</th>
<th>Admission No</th>
<th>Class</th>
<th>Section</th>
<th>DOB</th>
<th>Gender</th>
<th>Place of Birth</th>
<th>Aadhaar No.</th>
<th>Religion</th>
<th>Student Category</th>
<th>Student UID</th>
<th>Mother Tounge</th>
<th>Gr No.</th>
<th>Saral No.</th>
<th>Blood Group</th>
<th>Residential Address</th>
<th>City</th>
<th>Pincode</th>
<th>Landmark</th>
<th>State</th>
<th>Telephone</th>
<th>Last School Attended</th>
<th>Board</th>
<th>Percentage</th>
<th>Last School Address</th>
<th>Last School city</th>
<th>Last School Postal/zipcoode</th>
<th>Last School State</th>
<th>Last School Phone</th>
<th>Reason For Change</th>
<th>Contact Person</th>
<th>Contact Person Address</th>
<th>Contact Person Relation</th>
<th>Contact Person Mobile</th>
<th>Father Name</th>
<th>Father Date Of Birth</th>
<th>Father Qualification</th>
<th>Father Occupation</th>
<th>Father Designation</th>
<th>Father Company</th>
<th>Father Work Location</th>
<th>Father Pan No.</th>
<th>Father Telephone</th>
<th>Father Mobile</th>
<th>Father Aadhar No</th>
<th>Father Email</th>
<th>Mother Name</th>
<th>Mother Date Of Birth</th>
<th>Mother Qualification</th>
<th>Mother Occupation</th>
<th>Mother Designation</th>
<th>Mother Company</th>
<th>Mother Work Location</th>
<th>Mother Pan No.</th>
<th>Mother Telephone</th>
<th>Mother Mobile</th>
<th>Mother Aadhar No</th>
<th>Mother Email</th>
<th>Food Facility Required?</th>
<th>Transport Facility Required?</th>
<th>Learning Disability?</th>-->
</tr>
</thead>
<tbody>
<!--
<?php $i = 1; ?>
<?php $__currentLoopData = $students; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<th scope="row"><?php echo e($i); ?></th>
<td>
<?php if(isset($value->photo)): ?>
<img src="<?php echo e(asset('storage/schools/'.$value->idSchool.'/students/'.$value->photo)); ?>" height="60">
else <span>No Image</span>
<?php endif; ?>
</td>
<td><?php echo e($value->ecNo); ?></td>
<td><?php echo e($value->firstName); ?> <?php echo e($value->middleName); ?> <?php echo e($value->lastName); ?></td>
<td><?php echo e($value->father_fname); ?> <?php echo e($value->father_lname); ?></td>
<td><?php echo e($value->contactPersonMobile); ?></td>
<td><?php echo e($value->studentDob); ?></td>
<td><?php echo e($value->gender); ?></td>
<?php if(isset($value->classM)): ?>
<td><?php echo e($value->classM->className); ?></td>
<?php else: ?>
<td></td>
<?php endif; ?>
<?php if(isset($value->section)): ?>
<td><?php echo e($value->section->sectionName); ?></td>
<?php else: ?>
<td></td>
<?php endif; ?>
<td></td>
<td style="width:300px;">
<?php echo Form::open(['url' => 'school/stdstatusupdate', 'class' => 'form-horizontal']); ?>
<input type="hidden" name='idStudent' value="<?php echo e($value->idStudent); ?>">
<?php echo Form::select('isActive',['Y'=>'ACTIVE','N'=>'NOT-ACTIVE'],$value->isActive,['class' => 'form-control show-tick ms','style'=>'background-color: #fff','onchange'=>'showRemarks('.$value->idStudent.')']); ?>
<span id='remarks<?php echo e($value->idStudent); ?>' style="display:none;">
<input type="text" name='remarks' class="form-control" style="background-color: #fff;" placeholder="Enter Remarks">
<button class="btn btn-sm btn-success">Update</button>
</span>
<?php echo Form::close(); ?>
</td>
<td>
<a class="btn btn-info btn-sm" href="<?php echo e(url('/school/admentries/'.$value->idStudent)); ?>">View</a>
<a class="btn btn-primary btn-sm" href="<?php echo e(url('/school/admentries/'.$value->idStudent.'/edit')); ?>">Edit</a>
<button class="btn btn-danger btn-sm js-sweetalert" data-id="<?php echo e($value->idStudent); ?>" data-type="confirm">DELETE</button>
</td>
Export to excel option-->
<!--
<td><?php echo e($value->ecNo); ?></td>
<td><?php echo e($value->firstName); ?> <?php echo e($value->middleName); ?> <?php echo e($value->lastName); ?></td>
<td><?php echo e($value->admissionNo); ?></td>
<?php if(isset($value->classM)): ?>
<td><?php echo e($value->classM->className); ?></td>
<?php else: ?>
<td></td>
<?php endif; ?>
<?php if(isset($value->section)): ?>
<td><?php echo e($value->section->sectionName); ?></td>
<?php else: ?>
<td></td>
<?php endif; ?>
<td><?php echo e($value->studentDob); ?></td>
<td><?php echo e($value->gender); ?></td>
<td><?php echo e($value->studentPob); ?></td>
<td><?php echo e($value->aadhaarNo); ?></td>
<td><?php echo e($value->religion); ?></td>
<td><?php echo e($value->studentType); ?></td>
<td><?php echo e($value->studentUID); ?></td>
<td><?php echo e($value->motherTounge); ?></td>
<td><?php echo e($value->grNo); ?></td>
<td><?php echo e($value->saralNo); ?></td>
<td><?php echo e($value->bloodGroup); ?></td>
<td><?php echo e($value->resAddress); ?></td>
<td><?php echo e($value->resCity); ?></td>
<td><?php echo e($value->resPincode); ?></td>
<td><?php echo e($value->landmark); ?></td>
<td><?php echo e($value->state->stateName); ?></td>
<td><?php echo e($value->resTelephone); ?></td>
<td><?php echo e($value->lastSchool); ?></td>
<td><?php echo e($value->board); ?></td>
<td><?php echo e($value->percentage); ?></td>
<td><?php echo e($value->lastSchoolAddress); ?></td>
<td><?php echo e($value->lastSchoolCity); ?></td>
<td><?php echo e($value->lastSchoolPhone); ?></td>
<td><?php echo e($value->lastSchoolPincode); ?></td>
<td><?php echo e(isset($value->lastschool_state->stateName) ? $value->lastschool_state->stateName : ''); ?></td>
<td><?php echo e($value->reasonForChange); ?></td>
<td><?php echo e($value->contactPerson); ?></td>
<td><?php echo e($value->contactPersonAddress); ?></td>
<td><?php echo e($value->contactPersonRelation); ?></td>
<td><?php echo e($value->contactPersonMobile); ?></td>
<td><?php echo e($value->father_fname); ?> <?php echo e($value->father_lname); ?></td>
<td><?php echo e($value->father_dob); ?></td>
<td><?php echo e($value->father_qualification); ?></td>
<td><?php echo e($value->father_occupation); ?></td>
<td><?php echo e($value->father_designation); ?></td>
<td><?php echo e($value->father_company); ?></td>
<td><?php echo e($value->father_workloc); ?></td>
<td><?php echo e($value->father_panno); ?></td>
<td><?php echo e($value->father_telephone); ?></td>
<td><?php echo e($value->father_mobile); ?></td>
<td><?php echo e($value->father_aadhaar); ?></td>
<td><?php echo e($value->father_email); ?></td>
<td><?php echo e($value->mother_fname); ?> <?php echo e($value->mother_lname); ?></td>
<td><?php echo e($value->mother_dob); ?></td>
<td><?php echo e($value->mother_qualification); ?></td>
<td><?php echo e($value->mother_occupation); ?></td>
<td><?php echo e($value->mother_designation); ?></td>
<td><?php echo e($value->mother_company); ?></td>
<td><?php echo e($value->mother_workloc); ?></td>
<td><?php echo e($value->mother_panno); ?></td>
<td><?php echo e($value->mother_telephone); ?></td>
<td><?php echo e($value->mother_mobile); ?></td>
<td><?php echo e($value->mother_aadhaar); ?></td>
<td><?php echo e($value->mother_email); ?></td>
<td><?php echo e($value->food); ?></td>
<td><?php echo e($value->transport); ?></td>
<td><?php echo e($value->learningDisability); ?></td>
</tr>
<?php $i++; ?>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>-->
</tbody>
</table>
</div>
</div>
</div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
$(document).on('click', '.class_ids', function(){
//var checkAll = this.checked;
var classIds = [];
$("input:checkbox[name='classes[]']:checked").each(function () {
classIds.push($(this).val());
});
if (classIds.length > 0) {
$.ajax({
url: "<?php echo e(url('/school/schclass')); ?>"+'/' +classIds + "/sections",
type: "GET",
dataType: "json",
success:function(data) {
$('#idSection').empty();
$('#idSection').append('<div class="checkbox-inline" style="padding-left:10px;padding-top:5px;"><input type="checkbox" class="select-all" id="selectall"><label><strong>Select All</label></strong></div>');
$.each(data, function(key, value) {
$('#idSection').append('<div class="checkbox-inline" style="padding-left:10px;"><input type="checkbox" name="sections[]" value="'+key+'" class="sectionclass"><label>'+value+'</label></div>');
});
}
});
}
});
$(document).on('click', '.select-all', function(){
var checkAll = this.checked;
if(checkAll === true){
$('.sectionclass').each(function () {
this.checked = checkAll;
});
}else{
$('.sectionclass').each(function () {
this.checked = checkAll;
});
}
});
$(document).on('click', '.js-sweetalert', function (e) {
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
}
});
e.preventDefault();
var id = $(this).data('id');
swal({
title: "Are you sure?",
text: "Are You sure you want to delete this Student!",
type: "warning",
showCancelButton: true,
confirmButtonColor: "#DD6B55",
confirmButtonText: "Yes, delete it!",
closeOnConfirm: true
},
function() {
// console.log('here');
$.ajax({
type: "DELETE",
url: "<?php echo e(url('/school/admentries/')); ?>" +"/"+id,
data: {id:id}
})
.done(function(data) {
swal({
title: "Deleted",
text: "Student has been successfully deleted",
type: "success"
},function() {
location.reload();
});
})
.error(function(data) {
swal("Oops", "We couldn't connect to the server!", "error");
});
return false;
});
});
$(function () {
/*var data=[];
<?php ?>/*
$i = 1;
foreach($students as $value){
echo 'data.push([
'.$i.','.
'"","'.
$value->ecNo.'","'.
$value->firstName." ".$value->middleName." ".$value->lastName.'","'.
$value->father_fname." ".$value->father_lname.'","'.
$value->contactPersonMobile.'","'.
$value->studentDob.'","'.
$value->gender.'","'.
$value->classM->className.'","'.
$value->section->sectionName.'",
"",
"",
"","'.
$value->ecNo.'","'.
$value->firstName." ".$value->middleName." ".$value->lastName.'","'.
$value->admissionNo.'","'.
$value->classM->className.'","'.
$value->section->sectionName.'","'.
$value->studentDob.'","'.
$value->gender.'","'.
$value->studentPob.'","'.
$value->admissionNo.'","'.
$value->aadhaarNo.'","'.
$value->religion.'","'.
$value->studentType.'","'.
$value->studentUID.'","'.
$value->motherTounge.'","'.
$value->grNo.'","'.
$value->saralNo.'","'.
$value->bloodGroup.'","'.preg_replace("/\r|\n/", "",trim($value->resAddress)).'","'.
$value->resCity.'","'.
$value->resPincode.'","'.
$value->landmark.'","'.
$value->state->stateName.'","'.
$value->resTelephone.'","'.
$value->lastSchool.'","'.
$value->board.'","'.
$value->percentage.'","'.
$value->lastSchoolAddress.'","'.
$value->lastSchoolCity.'","'.
$value->lastSchoolPhone.'","'.
$value->lastSchoolPincode.'",'.
"",'"'.
$value->reasonForChange.'","'.
$value->contactPerson.'","'.
$value->contactPersonAddress.'","'.
$value->contactPersonRelation.'","'.
$value->contactPersonMobile.'","'.
$value->father_fname." ".$value->father_lname.'","'.
$value->father_dob.'","'.
$value->father_qualification.'","'.
$value->father_occupation.'","'.
$value->father_designation.'","'.
$value->father_company.'","'.
$value->father_workloc.'","'.
$value->father_panno.'","'.
$value->father_telephone.'","'.
$value->father_mobile.'","'.
$value->father_aadhaar.'","'.
$value->father_email.'","'.
$value->mother_fname." ".$value->mother_lname.'","'.
$value->mother_dob.'","'.
$value->mother_qualification.'","'.
$value->mother_occupation.'","'.
$value->mother_designation.'","'.
$value->mother_company.'","'.
$value->mother_workloc.'","'.
$value->mother_panno.'","'.
$value->mother_telephone.'","'.
$value->mother_mobile.'","'.
$value->mother_aadhaar.'","'.
$value->mother_email.'","'.
$value->food.'","'.
$value->transport.'","'.
$value->learningDisability.'"'.
']);';
$i++;
}*/
//var data = [];
// <?php $k=0;?>
// for ( var i=1 ; i<=<?php echo count($students);?> ; i++ ) {
/* console.log(<?php echo $k;?>);
data.push( [
i,
] );
}*/
$('#tableexp').DataTable({
"columnDefs": [
{
/* "targets": [13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],
"visible": false*/
}
],
dom: 'Bfrtip',
scrollY: "500px",
scrollX: true,
scrollCollapse: true,
fixedColumns: {
left: 1
},
buttons: [
{ extend: 'csv', text: 'Export to Excel',title:'Student List',
/*exportOptions: {
columns: [13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74]
}*/
}
],
data: <?php echo json_encode($studentsData); ?>,
deferRender: true,
scrollCollapse: true,
scroller: true
});
});
function showRemarks(key){
$('#remarks'+key).show();
}
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('schools.school_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
Copyright © 2021 -