IMMREX7

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

<?php $__env->startSection('content'); ?>
<div class="row clearfix">
<div class="col-sm-12">
        <div class="card">
            <div class="header">
                <h2><strong>List Of Registered Schools</strong></h2>
            </div>
            <div class="body table-responsive">
                <table class="table table-bordered table-striped table-hover js-basic-example dataTable">
                    <thead>
                        <tr>
                            <th>S. No.</th>
                            <th>School Name</th>
                            <th>Status</th>
                            <th>Contact Person</th>
                            <th>City</th>
                            <th>Mobile</th>
                            <th>Email</th>
                            <th>Password</th>
                            <th>Website</th>
                            <th>Online Registration Url</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php $i = 1; ?>
                        <?php $__currentLoopData = $schools; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $school): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <th scope="row"><?php echo e($i); ?></th>
                            <td><?php echo e($school->schoolName); ?></td>
                            <td>
                                <?php if($school->isActive == 'N'): ?>
                                <span class="badge badge-warning">Not-Active</span>
                                <?php else: ?>
                                <span class="badge badge-success">Active</span>
                                <?php endif; ?>
                            </td>
                            <td><?php echo e($school->contactPerson); ?></td>
                            <td><?php echo e($school->city); ?></td>
                            <td><?php echo e($school->mobile); ?></td>
                            <td><?php echo e($school->userEmail); ?></td>
                            <td><?php echo e(isset($school->schuser->pwd) ? $school->schuser->pwd : ''); ?></td>
                            <td><?php echo e($school->website); ?></td>
                            <td><?php echo e($school->onlineRegUrl); ?></td>
                            <td>
                                <?php if($school->onlineRegFormActive == 'N'): ?>
                                <a class="btn btn-warning btn-sm" href="<?php echo e(url('/admin/sch/'.$school->idSchool.'/online-registration')); ?>">Activate Online Registration Form</a>
                                <?php endif; ?>
                                <br>
                                <a class="btn btn-primary btn-sm" href="<?php echo e(url('/admin/schregister/'.$school->idSchool.'/edit')); ?>">Edit</a>
                                <a class="btn btn-primary btn-sm" href="<?php echo e(url('/admin/schregister/'.$school->idSchool.'/')); ?>">View</a>
                                <a class="btn btn-success btn-xs"  href="<?php echo e(url('/admin/sch/'.$school->idSchool.'/assignaccess')); ?>">Assign Access</a>
                                <br>
                                <button class="btn btn-danger btn-sm js-sweetalert-delete" data-id="<?php echo e($school->idSchool); ?>" data-type="confirm">DELETE</button>
                                <?php if($school->isActive == 'N'): ?>
                                <a class="btn btn-success btn-sm" href="<?php echo e(url('/admin/sch/'.$school->idSchool.'/activate')); ?>">Activate</a>
                                <?php else: ?>
                                <a class="btn btn-warning btn-sm" href="<?php echo e(url('/admin/sch/'.$school->idSchool.'/deactivate')); ?>">Deactivate</a>
                                <?php endif; ?>
                                <a class="btn btn-danger btn-sm" target="_blank" href="<?php echo e(url('/setsessionschool/'.$school->idSchool)); ?>">Dashboard</a>
                                <a class="btn btn-info btn-sm" href="<?php echo e(url('/admin/salary-slip-format/'.$school->idSchool)); ?>">Salary Format</a>
                                <a class="btn btn-info btn-sm" href="<?php echo e(url('/admin/section-update/'.$school->idSchool)); ?>">Section Update</a>
                                <!--<button class="btn btn-danger btn-sm js-sweetalert" data-id="<?php echo e($school->idSchool); ?>" data-type="confirm">Dashboard</button>-->
                            </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', '.js-sweetalert-delete', 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 School!",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "Yes, Delete!",
            closeOnConfirm: true
        },
        function() {
         //   console.log('here');
            $.ajax({
                type: "DELETE",
                url: "<?php echo e(url('/admin/schregister/')); ?>" +"/"+id,
                data: {id:id}
            })
            .done(function(data) {
                swal({
                    title: "Changed", 
                    text: "School has beeen successfully Deleted !!", 
                    type: "success"
                },function() {
                    window.location = "<?php echo e(url('/admin')); ?>";
                });
            })
            .error(function(data) {
              swal("Oops", "We couldn't connect to the server!", "error");
            });
            return false;
    });
});
$(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 switch the dashboard!",
            type: "warning",
            showCancelButton: true,
            confirmButtonColor: "#DD6B55",
            confirmButtonText: "Yes, Switch!",
            closeOnConfirm: true
        },
        function() {
         //   console.log('here');
            $.ajax({
                type: "POST",
                url: "<?php echo e(url('/admin/setsessionschool/')); ?>",
                data: {id:id}
            })
            .done(function(data) {
                swal({
                    title: "Changed", 
                    text: "Dashboard has beeen successfully switched !!", 
                    type: "success"
                },function() {
                    window.location = "<?php echo e(url('/admin')); ?>";
                });
            })
            .error(function(data) {
              swal("Oops", "We couldn't connect to the server!", "error");
            });
            return false;
    });
});
</script>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('superadmin.layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Copyright © 2021 - 2025 IMMREX7