IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/storage/framework/views/d31a7e6edddaaf8eed042ca51ad361a111bf70f5.php

<?php $__env->startSection('content'); ?>
<div class="row clearfix">
    <div class="col-sm-12">
        <div class="card">
            <div class="header">
                <h2><strong>List Of Inactive Students</strong></h2>
            </div>
            <div class="body table-responsive">
                <?php echo Form::open(['method' => 'GET',  'action' => ['School\StudentController@inactiveStudents'], 'class' => 'form-horizontal']); ?>

                <div class="row clearfix">
                    <div class="col-sm-2"></div>
                    <div class="col-sm-2 form-control-label">
                        <label for="classname">Financial Year</label>
                    </div>
                    <div class="col-sm-3">
                        <div class="form-group">
                           <?php echo Form::select('idFinancialYear',fys(),null,['class' => 'form-control show-tick ms']); ?>

                        </div>
                    </div>
                    <div class="col-sm-2">
                        <?php echo Form::submit('Search',['class' => 'btn btn-raised btn-primary btn-round waves-effect']); ?>

                    </div>
                </div>
                <?php echo Form::close(); ?> 
                <br>
                <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>Deactivation Date</th>
                            <th>Remarks</th>
                            <th>DOB</th>
                            <th>Gender</th>
                            <th>Class</th>
                            <th>Section</th>
                            <th>Password</th>
                            <th>Student Status</th>
                            <th>Action</th>
                            <th>Admission No</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>Contact Person</th>
                            <th>Contact Person Address</th>
                            <th>Contact Person Relation</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> <img src="<?php echo e(asset('storage/schools/'.$value->idSchool.'/students/'.$value->photo)); ?>" height="60"></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->deactivationDate); ?></td>
                            <td><?php echo e($value->remarks); ?></td>
                            <td><?php echo e($value->studentDob); ?></td>
                            <td><?php echo e($value->gender); ?></td>
                            <?php if(isset($value->classM->className)): ?>
                            <td><?php echo e($value->classM->className); ?></td>
                            <?php else: ?><td></td><?php endif; ?>
                            <?php if(isset($value->section->sectionName)): ?>
                            <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>
                            <td><?php echo e($value->admissionNo); ?></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->contactPerson); ?></td>
                            <td><?php echo e($value->contactPersonAddress); ?></td>
                            <td><?php echo e($value->contactPersonRelation); ?></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 () {
    $('#tableexp').DataTable({
      "columnDefs": [
            {
                "targets": [15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],
                "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: [0,1,2,3,4,5,6,7,8,9,10,11,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32]
                }}
            
        ]
    });
});

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 - 2025 IMMREX7