KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/leadai/leadai.co.in/storage/framework/views/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/leadai/leadai.co.in/storage/framework/views/c34a631f284385d3fc4073469193f045cd2ba37b.php
<?php $__env->startSection('content'); ?>
<style>
        .male {
            background: #8c85ff;
            text-transform: capitalize;
            color: white;
        }

        .female {
            background: #e16498;
            text-transform: capitalize;
            color: white;
        }
        .id-card-box{
            max-width:240px;
            border:1px solid #ddd;
            
        }
        .id-card p{
            padding:0;
            margin:0;
            font-size:12px;
        }
        .school-title{
            font-size:14px;
            font-weight:bold;
        }
        
        .s-name{
            font-size:16px;
            font-weight:bold;
        }
        .school-name{
            text-align:center;
            background:blue;
            color:white;
            width:100%;
            display:flex;
            justify-content:center;
            align-items:center;
            border-radius: 0px 0px 0px 100px;
        }
        .id-card-box .footer{
            background:blue;
            text-align:center;
            color:white;
        }
        .id-card-box .footer p{
            padding:0;
            margin:0;
        }

        /* vertical smooth card design */
        .vs-idcard{
			width: 220px;
			border: 2px solid #ddd;
			border-radius: 10px;
		}
		.vs-school-title{
			font-size: 15px;
			font-weight: bold;
		}
		.vs-idcard-info p{
			padding: 0;
			margin: 0;
			padding-left: 5px;
			font-size: 12px;
		}
		.vs-student-address, .vs-school-address{
			padding: 0;
			margin: 0;
			font-size: 11px;
		}
		.vs-idcard-footer p{
			padding: 0;
			margin: 0;
			font-size: 12px;
		}
		.hr{
			border: 1px solid #ddd;
			margin: 5px 0;
		}
        /* horizontal idcard */
        .horizontal-idcard {
		  width: 360px;
		  border: 1px solid #ccc;
		  border-radius: 5px;
		  font-family: Arial, sans-serif;
		  
		}
		.h-school-header{
			
			padding: 5px 5px;
		}
		.h-school-header h5{
			font-size: 22px;
			font-weight: bold;
			padding: 0 10px;
			margin: 0;
		}
		.h-student-photo{
			width: 80px;
		}
		.h-student-info p{
			font-size: 13px;
			padding: 0;
			margin: 0;
		}
		.h-footer p{
			font-size: 12px;
		}
		.h-issue-date p{
			font-size: 12px;
		}
        
    </style>
    <!-- begin::main content -->
    <main class="main-content">
        <div class="container">
            <!-- begin::page header -->
            <div class="page-header">
                <h3><?php echo e(__('message.student')); ?></h3>
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item"><a
                                href="<?php echo e(asset('superadmin/dashboard')); ?>"><?php echo e(__('message.dashboard')); ?></a></li>
                        <li class="breadcrumb-item active" aria-current="page"><?php echo e(__('message.student')); ?>

                            <?php echo e(__('message.list')); ?></li>
                    </ol>
                </nav>
            </div>
            <?php
            $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
            $url = explode('?', $actual_link);
            $queryUrl = '';
            if (isset($url[1])) {
                $queryUrl = '?' . $url[1];
            }
            
            ?>
            <!-- end::page header -->
            <?php if (isset($component)) { $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74 = $component; } ?>
<?php $component = $__env->getContainer()->make(App\View\Components\FlashMessage::class, []); ?>
<?php $component->withName('flashMessage'); ?>
<?php if ($component->shouldRender()): ?>
<?php $__env->startComponent($component->resolveView(), $component->data()); ?>
<?php $component->withAttributes([]); ?>
<?php echo $__env->renderComponent(); ?>
<?php endif; ?>
<?php if (isset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74)): ?>
<?php $component = $__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74; ?>
<?php unset($__componentOriginal8a5ba9c90b64d384232e9948b1023e746ba08e74); ?>
<?php endif; ?>
            <div class="card">
                <div class="card-header">
                    <form method="GET" action="<?php echo e(asset('students')); ?>">

                        <div class="row mb-3">
                            
                            <div class="col-md-3">
                                <label><?php echo e(__('Start Date')); ?></label>
                                <input type="date" class="form-control"
                                    value="<?php echo e(isset($_GET['from_date']) && !empty($_GET['from_date']) ? $_GET['from_date'] : ''); ?>"
                                    name="from_date">
                            </div>
                            
                            <div class="col-md-3">
                                <label><?php echo e(__('End Date')); ?></label>
                                <input type="date" class="form-control"
                                    value="<?php echo e(isset($_GET['to_date']) && !empty($_GET['to_date']) ? $_GET['to_date'] : ''); ?>"
                                    name="to_date">
                            </div>
                            
                            <div class="col-md-3">
                                <label for="class"><?php echo e(__('Class')); ?></label>
                                <select class="form-control select2 <?php echo e($errors->has('class') ? 'is-invalid' : ''); ?>"
                                    name="class" id="class">
                                    <?php if(!empty($classes)): ?>
                                        <option value="">--select-class--</option>
                                        <?php $__currentLoopData = $classes; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $class): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <option value="<?php echo e($class->id); ?>"><?php echo e($class->class); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php endif; ?>
                                </select>
                                <?php if($errors->has('class')): ?>
                                    <div class="invalid-feedback">
                                        <?php echo e($errors->first('class')); ?>

                                    </div>
                                <?php endif; ?>
                            </div>
                            
                            <div class="col-md-3">
                                <label for="section"><?php echo e(__('Section')); ?></label>
                                <select class="form-control select2 <?php echo e($errors->has('section') ? 'is-invalid' : ''); ?>"
                                    name="section" id="section">
                                </select>
                                <?php if($errors->has('section')): ?>
                                    <div class="invalid-feedback">
                                        <?php echo e($errors->first('section')); ?>

                                    </div>
                                <?php endif; ?>
                            </div>

                            
                            
                        </div>

                        
                        <div class="row mb-3">
                            
                            <div class="col-md-2">
                                <label for="entry"><?php echo e(__('Enteries')); ?></label>
                                <select class="form-control select2" id="entry" name="entry">
                                    <option value="" disabled selected>All</option>
                                    <option value="50" <?php
                                    if (isset($_GET['entry'])) {
                                        if ($_GET['entry'] == '50') {
                                            echo 'selected';
                                        }
                                    }
                                    ?>>50</option>
                                    <option value="100" <?php
                                    if (isset($_GET['entry'])) {
                                        if ($_GET['entry'] == '100') {
                                            echo 'selected';
                                        }
                                    }
                                    ?>>100</option>
                                    <option value="1000" <?php
                                    if (isset($_GET['entry'])) {
                                        if ($_GET['entry'] == '1000') {
                                            echo 'selected';
                                        }
                                    }
                                    ?>>1000</option>
                                    <option value="5000" <?php
                                    if (isset($_GET['entry'])) {
                                        if ($_GET['entry'] == '5000') {
                                            echo 'selected';
                                        }
                                    }
                                    ?>>5000</option>

                                </select>
                            </div>
                            
                            <div class="col-md-2">
                                <label for="section"><?php echo e(__('Gender')); ?></label>
                                <select class="form-control select2" id="gender" name="gender">
                                    <option value="">--select-gender--</option>
                                    <option <?php echo e(isset($_GET['gender']) && $_GET['gender'] == 'male' ? 'selected' : ''); ?>

                                        value="male">Male</option>
                                    <option <?php echo e(isset($_GET['gender']) && $_GET['gender'] == 'female' ? 'selected' : ''); ?>

                                        value="female">Female</option>
                                </select>
                            </div>

                            
                            <div class="col-md-2">
                                <label for="section"><?php echo e(__('Student Status')); ?></label>
                                <select class="form-control select2" id="status" name="status">
                                    <option value="">--select-status--</option>
                                    <option <?php echo e(isset($_GET['status']) && $_GET['status'] == '1' ? 'selected' : ''); ?>

                                        value="1">Active</option>
                                    <option <?php echo e(isset($_GET['status']) && $_GET['status'] == '0' ? 'selected' : ''); ?>

                                        value="0">Inactive</option>
                                </select>
                            </div>

                            <div class="col-md-2">
                                <label for="">Type</label>
                                <select class="form-control select2" name="type" id="type">
                                    <option value="">--search-type--</option>
                                    <option value="first_name">First Name</option>
                                    <option value="rollno">Rollno</option>
                                    <option value="email">Email</option>
                                    <option value="phone">Phone</option>
                                    <option value="guardian_name">Parent Name</option>
                                    <option value="parent_email">Parent Email</option>
                                    <option value="parent_phone">Parent Phone</option>
                                </select>
                            </div>

                            <div class="col-md-4">
                                <label for="">Search</label>
                                <input type="text" id="search" name="search" class="form-control"
                                    value="<?php echo e(Request::has('search') ? Request::get('search') : ''); ?>"
                                    placeholder="Search by Type...">
                            </div>
                        </div>
                        

                        <div class="row mb-3">
                            <div class="col-md-12">
                                
                                <button type="submit" class="btn btn-success">
                                    <i class="fa fa-search fa-lg"></i>
                                </button>

                                
                                <a href="<?php echo e(asset('students')); ?>" class="btn btn-primary text-white"><i
                                        class="fa fa-recycle fa-lg"></i>
                                </a>



                                
                                <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('export-student')){ ?>
                                <a class="btn btn-warning text-white" href="<?php echo e(asset('export' . $queryUrl)); ?>">
                                    <i class="fa fa-download fa-lg"></i>&nbsp;<?php echo e(__('message.export')); ?>

                                </a>
                                <?php } ?>

                                <?php if(Auth::user()->hasRole('admin') || Auth::user()->can('delete-student')){ ?>

                                
                                <a id="delete-multiple" href="javascript:;" class="btn btn-danger text-white pull-right">
                                    <i class="fa fa-trash-o fa-lg"></i></a>
                                <?php } ?>

                            </div>
                        </div>
                    </form>
                </div>

                <div class="card-body">
                    <?php if(isset($students)): ?>
                        <div class="table-responsive">
                            <table id="students" class="table table-striped table-bordered">
                                <thead>
                                    <tr>
                                        <th>
                                            <input type="checkbox" id="checkAll">
                                        </th>
                                        <th><?php echo e(__('message.rollno')); ?></th>
                                        <th><?php echo e(__('message.photo')); ?></th>
                                        <th><?php echo e(__('message.studentname')); ?></th>
                                        <th><?php echo e(__('message.fathername')); ?></th>
                                        <th><?php echo e(__('message.schoolname')); ?></th>
                                        <th><?php echo e(__('message.class')); ?></th>
                                        <th><?php echo e(__('message.section')); ?></th>
                                        <th><?php echo e(__('message.idcard')); ?></th>
                                        <th>TC</th>
                                        <th><?php echo e(__('message.profile')); ?></th>
                                        <th><?php echo e(__('message.created')); ?></th>
                                        <th><?php echo e(__('message.action')); ?></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php if(!empty($students)): ?>
                                        <?php $__currentLoopData = $students; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $student): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                                <td>
                                                    <input class="studentids" type="checkbox"
                                                        value="<?php echo e($student->user_unique_id); ?>" name="studentids[]">
                                                </td>
                                                <td>
                                                    <button
                                                        class="btn btn-info btn-sm waves-effect waves-button waves-light">
                                                        <?php echo e($student->enrollment_no); ?>

                                                    </button>
                                                </td>
                                                <td>
                                                    <?php if(!empty($student->profile_pics)): ?>
                                                        <img class="w-50"
                                                            src="<?php echo e(asset('public/profiles/') . '/' . $student->profile_pics); ?>"
                                                            alt="profile">
                                                    <?php else: ?>
                                                        <img class="w-50"
                                                            src="<?php echo e($student->gender == 'male' ? asset('public/profiles/') . '/male.png' : asset('public/profiles/') . '/female.png'); ?>"
                                                            alt="profile">
                                                    <?php endif; ?>
                                                </td>
                                                <td><span class="font-size-13"><?php echo e($student->fullname); ?></span>
                                                    <span
                                                        class="badge <?php echo e($student->gender); ?>"><?php echo e($student->gender); ?></span>
                                                </td>

                                                <td>
                                                    <?php if($student->guardian->count() > 0): ?>
                                                        <?php echo e($student->guardian->first()->father_name); ?>

                                                    <?php endif; ?>
                                                </td>

                                                <td>
                                                    <?php if($student->school->count() > 0): ?>
                                                        <?php echo e($student->school->last()->school); ?>

                                                    <?php else: ?>
                                                        NA
                                                    <?php endif; ?>
                                                </td>
                                                <td>
                                                    <?php
                                                        $getClass = App\Helpers\Frontend::getSingledata('classes', ['id' => $student->class_id]);
                                                    ?>
                                                    <?php if(!empty($getClass)): ?>
                                                        <?php echo e($getClass->class); ?>

                                                    <?php else: ?>
                                                        NA
                                                    <?php endif; ?>
                                                </td>
                                                <td>
                                                    <?php
                                                        $getSection = App\Helpers\Frontend::getSingledata('sections', ['id' => $student->section_id]);
                                                    ?>

                                                    <?php if(!empty($getSection)): ?>
                                                        <?php echo e($getSection->section); ?>

                                                    <?php else: ?>
                                                        NA
                                                    <?php endif; ?>
                                                </td>
                                                

                                                <td>
                                                    <div class="btn-group">
                                                        <button
                                                            class="btn btn-skype btn-sm waves-effect waves-button waves-light text-white">
                                                            CARD
                                                        </button>
                                                        
                                                        <button student="<?php echo e($student); ?>" type="button" class="btn btn-dark btn-sm waves-effect waves-button waves-light text-white id-card-generate-btn" data-toggle="modal" data-target="#idCardModal">
                                                            <i class="fa fa-id-card-o"></i>
                                                        </button>
                                                    </div>
                                                </td>
                                                <td>
                                                    <a href="<?php echo e(asset('get-tc/'.$student->user_unique_id)); ?>">
                                                        <i class="fa fa-file"></i>
                                                    </a>
                                                </td>

                                                <td>
                                                    <div class="btn-group">
                                                        <a href="<?php echo e(asset('student/view') . '/' . $student->user_unique_id); ?>"
                                                            class="btn btn-google btn-sm waves-effect waves-button waves-light text-white">
                                                            Profile
                                                        </a>
                                                        <button disabled
                                                            class="btn btn-dark btn-sm waves-effect waves-button waves-light text-white">
                                                            <i class="fa fa-user-circle-o"></i>
                                                        </button>
                                                    </div>
                                                </td>

                                                <td>
                                                    <button
                                                        class="btn btn-success btn-sm waves-effect waves-button waves-light">
                                                        <?php echo e(date('d-m-Y', strtotime($student->created_at))); ?>

                                                    </button>
                                                </td>

                                                <td>
                                                    
                                                    <div class="dropdown">
                                                        <button class="btn btn-sm btn-dark dropdown-toggle" type="button"
                                                            data-toggle="dropdown">
                                                            <?php echo e(__('message.action')); ?>

                                                        </button>
                                                        <div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
                                                            <?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('edit-student')){ ?>
                                                            <a class="dropdown-item"
                                                                href="<?php echo e(asset('student/edit') . '/' . $student->user_unique_id); ?>"><?php echo e(__('message.edit')); ?></a>
                                                            <?php } ?>

                                                            <?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('delete-student')){ ?>
                                                            <a class="dropdown-item delete-confirm"
                                                                link="<?php echo e(asset('student/delete') . '/' . $student->user_unique_id); ?>"
                                                                href="javascript:;"><?php echo e(__('message.delete')); ?></a>
                                                            <?php } ?>


                                                            <?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('change-student-password')){ ?>
                                                            <a class="dropdown-item change-password"
                                                                data-user_unique_id="<?php echo e($student->user_unique_id); ?>"
                                                                href="javascript:;">Reset
                                                                Password</a>
                                                            <?php } ?>

                                                            <?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('promote-student')){ ?>
                                                            <a class="dropdown-item"
                                                                href="<?php echo e(asset('student/promote/' . $student->user_unique_id)); ?>">Change/Promote</a>
                                                            <?php } ?>

                                                            <?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('promote-student')){ ?>
                                                            <a class="dropdown-item"
                                                                href="<?php echo e(asset('document-upload/' . $student->id)); ?>">Document
                                                                Upload</a>
                                                            <?php } ?>

                                                        </div>
                                                    </div>
                                                </td>


                                            </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    <?php else: ?>
                                        <h1>No Record Found!!</h1>
                                    <?php endif; ?>
                                </tbody>
                            </table>
                        </div>
                        
                        <div class="pagination-block">
                            <?php echo e($students->appends($_GET)->links('includes.paginationlinks')); ?>

                            <label>Showing total <?php echo $students->total(); ?> results</label>
                        </div>
                    <?php endif; ?>
                </div>



            </div>
        </div>
    </main>

    
    <?php if(Auth::user()->hasRole('superadmin') || Auth::user()->can('change-student-password')){ ?>

    <div class="modal fade" id="changepasswordModal" tabindex="-1" role="dialog"
        aria-labelledby="changepasswordModalLabel" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="changepasswordModalLabel">Reset Password</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                    <form id="change_password_form">
                        
                        <input type="hidden" name="user_unique_id" id="user_unique_id">

                        <div class="row">
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label for="password" class="col-form-label">Password</label>
                                    <input type="password" id="password" name="password" class="form-control">
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="form-group">
                                    <label for="password_confirmation" class="col-form-label">Confirm Password</label>
                                    <input type="text" id="password_confirmation" name="password_confirmation"
                                        class="form-control">
                                </div>
                            </div>
                        </div>

                        <button type="submit" class="btn btn-success">
                            <i class="fa fa-edit mr-2"></i>Update Password
                        </button>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <?php } ?>

    
    <div class="modal fade" id="idCardModal">
        <div class="modal-dialog modal-lg" role="document">
            <div class="modal-content">
                <div class="modal-header">
                    <h5 class="modal-title" id="changepasswordModalLabel">Generate ID Card</h5>
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                </div>
                <div class="modal-body">
                   <div class="row p-4">
                        <div class="col-md-6">
                            <form class="design-apply-form">
                                <div class="form-group mb-3">
                                    <label>Apply Design</label>
                                    <select class="form-control design-list" name="card_design">
                                        <?php $__currentLoopData = $template; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <option value="<?php echo e($value); ?>" >Card <?php echo e($value->type); ?></option>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                    </select>
                                </div>
                                
                            </form>
                        </div>
                        <div class="col-md-6">
                            <div class="vertical-idcard">
                            <div class="id-card-box">
                                            
                                            <div class="d-flex" >
                                                <div class="d-flex justify-content-start px-2">
                                                    <img src="https://png.pngtree.com/png-vector/20230415/ourmid/pngtree-school-logo-design-template-vector-png-image_6705854.png" width="50" alt="logo">
                                                </div>
                                                <div class="school-name d-flex justify-content-center" >
                                                    <h4 class="school-title" >Sai Valley World School</h4>
                                                </div>
                                            </div>
                                           
                                            <div class="id-card px-3 py-2" >                                    
                                                <div class="id-card-section">                                        
                                                        <div class="image-box">
                                                            <img src="https://i.pinimg.com/originals/a6/82/f0/a682f04aaa23b09cf5c3ce162fd7fc79.jpg" alt="student" class="p-0 m-0" width="80" />
                                                        </div>
                                                        <div class="text-section">
                                                            <p class="s-name">Ravi kumar</p>
                                                            <p class="f-name"><strong>Father Name :</strong> Jai Singh</p>
                                                            <p><strong>Phone :</strong> 9985999999</p>

                                                            <p><strong>Class :</strong> 11th B</p>
                                                            <p><strong>Address :</strong> C-2/114 Sector 12, Noida UP 245874</p>
                                                            
                                                        </div>
                                                    
                                                </div>
                                            </div>                                              
                                            <div class="footer py-1">
                                                <p>Address : Sector 12, Noida UP<p>
                                                    <p>Phone : 9855685542</p>
                                            </div>
                                        </div>
                            </div>
                            <div class="vertical-smooth-idcard d-none">
                                <div class="vs-idcard p-2">
                                    <div class="id-header-smooth">	    
                                            <div class="d-flex justify-content-center">
                                                <img src="https://png.pngtree.com/png-vector/20230415/ourmid/pngtree-school-logo-design-template-vector-png-image_6705854.png" alt="Logo" width="50" class="vs-school-logo">
                                            </div>
                                            <div class="text-center">
                                                <h4 class="vs-school-title">Sai Velly World School</h4>
                                            </div>
                                        
                                    </div>
                                    <div class="hr"></div>
                                    <div class="vs-section-box d-flex">
                                        <div class="vs-student-photo-box">
                                            <img src="https://pbs.twimg.com/media/EeUI99bUcAMiRFa.jpg:large" alt="photo" width="60" class="student-photo-vs">
                                        </div>
                                        <div class="vs-idcard-info">
                                            <p class="vs-s-name"><strong>Name:</strong> John Doe</p>
                                            <p class="vs-f-name"><strong>Father:</strong> Shri Virendra Singh</p>
                                            <p class="vs-mobile"><strong>Phone:</strong> 9898989898</p>
                                            <p class="vs-s-class"><strong>Class:</strong> ABC123</p>

                                        </div>
                                    </div>
                                    <div class="pt-1">
                                        <p class="vs-student-address"><strong>Address:</strong> C-24/117 Sector 12, Noida 245874</p>
                                    </div>
                                

                                    <div class="vs-idcard-footer text-center" >
                                        <p><strong>Issued on:</strong> 01/03/2024</p>
                                        <p class="vs-school-phone"><strong>Phone:</strong> 989859898</p>
                                    </div>
                                    <div class="hr"></div>
                                    <div class="vs-idcard-footer text-center">
                                        <p class="vs-school-address p-0 m-0">Railway road, Glaxy plazza C-60 rohini, New Delhi 124551</p>
                                    </div>
                                </div>
                            </div>

                            <div class="horizontal-idcard d-none">
                                <div class="">
                                    <div class="d-flex h-school-header align-items-center px-2">
                                        <img src="https://png.pngtree.com/png-vector/20230415/ourmid/pngtree-school-logo-design-template-vector-png-image_6705854.png" alt="School Logo" width="50" height="50">
                                        <div>
                                            <h5>Sai Vally World School</h5>

                                        </div>
                                        
                                    </div>
                                    <div class="h-idcard">
                                        <div class="card-body d-flex py-1">
                                            <div>
                                                <img src="https://pbs.twimg.com/media/EeUI99bUcAMiRFa.jpg:large" alt="Student Photo" class="h-student-photo border">
                                            </div>
                                            <div class="h-student-info pl-3">
                                                <p class="h-s-name"><strong>Name:</strong> John Doe</p>
                                                <p class="h-f-name"><strong>Father:</strong> John Doe</p>
                                                <p class="h-s-class"><strong>Class:</strong> 10</p>
                                                <p class="h-mobile"><strong>Phone:</strong> 9856235415</p>
                                                <p class="h-student-address"><strong>Address:</strong> 12345</p>
                                            </div>	   
                                        </div>
                                        <div class="h-issue-date pb-1 d-flex justify-content-between px-2">
                                            <p class="p-0 m-0"><strong>Issued Date:</strong> 01-03-2023</p>
                                            <p class="p-0 m-0"><strong>Principal</strong></p>
                                        </div>
                                        <div class="border"></div>
                                    </div>
                                    <div class="h-footer p-1 text-center">
                                        <p class="h-school-address p-0 m-0">Mill road, C-14/170 Harsh Vihar, Meerut 2458745</p>
                                        <p class="h-school-phone p-0 m-0"><strong>Phone:</strong>9869856985</p>
                                    </div>
        
                                </div>   
                            </div>
                            
                            <div class="d-flex justify-content-end p-4">
                                <button type="button" class="btn btn-primary print-idcard-btn">Print</button>
                            </div>
                        </div>
                   </div>
                </div>
            </div>
        </div>
    </div>
    
    <!-- end::main content -->
<?php $__env->stopSection(); ?>
<?php $__env->startPush('footer-script'); ?>
    <script src="<?php echo e(asset('public/admin/vendors/dataTable/jquery.dataTables.min.js')); ?>"></script>
    <script src="<?php echo e(asset('public/admin/vendors/dataTable/dataTables.bootstrap4.min.js')); ?>"></script>
    <script src="<?php echo e(asset('public/admin/vendors/dataTable/dataTables.responsive.min.js')); ?>"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery.print/1.6.0/jQuery.print.min.js"></script>
    <script>
        $(document).on("click", ".change-password", function() {
            $(".modal-body #user_unique_id").val($(this).data('user_unique_id'));
            $('#changepasswordModal').modal('show');
        });

        // Model Submit
        $(document).on('submit', '#change_password_form', function(e) {
            e.preventDefault();
            var formData = new FormData(jQuery('#change_password_form')[0]);
            $.ajax({
                type: 'POST',
                url: "<?php echo e(asset('student/change-password')); ?>",
                data: formData,
                contentType: false,
                processData: false,
                headers: {
                    'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                },
                success: function(data) {
                    $('.error').empty();
                    $('#changepasswordModal').modal('hide');
                    swal({
                            title: "Reset Password",
                            text: data.message,
                            icon: "success"
                        })
                        .then((value) => {
                            $('#changepasswordModal').modal('hide');
                            location.reload();
                        });
                },
                error: function(reject) {
                    $('.error').empty();
                    if (reject.status === 422) {
                        var errors = $.parseJSON(reject.responseText);
                        $.each(errors, function(key, val) {
                            $('<div class="text-danger error">' + val + '</div>')
                                .insertAfter("#" + key);
                        });
                    }
                }
            });
        });

        // Get Section
        $("#class").on('change', function() {
            var URL = "<?php echo e(asset('admission/get-section/')); ?>" + "/" + $(this).val();
            $.ajax({
                type: "GET",
                url: URL,
                dataType: "JSON",
                success: function(data) {
                    $("#section").empty();
                    $("#section").select2({
                        data: data
                    });
                    $("#section").val("<?php echo e(Request::get('section')); ?>").trigger('change');
                }
            });
        });


        $("#checkAll").click(function() {
            $('.studentids').not(this).prop('checked', this.checked);
        });

        // Delete Multiple
        $("#delete-multiple").click(function() {
            var URL = "<?php echo e(asset('student/delete')); ?>";
            var student_ids = [];
            $('.studentids:checkbox:checked').each(function() {
                student_ids.push($(this).val());
            });
            swal({
                title: 'Are you sure?',
                text: 'Once deleted, you will not be recover!',
                icon: 'warning',
                dangerMode: true,
                buttons: ["Cancel", "Yes!"],
            }).then(function(value) {
                if (value) {
                    $.ajaxSetup({
                        headers: {
                            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                        }
                    });

                    $.ajax({
                        type: "post",
                        data: {
                            "student_ids": student_ids
                        },
                        url: URL,
                        dataType: "html",
                        success: function(result) {
                            console.log(result);
                        }
                    });
                    swal("success!", "Successfully deleted!", "success");
                    window.location.reload();
                }
            });

        });

        //id card btn code
        $(".id-card-generate-btn").click(function(){
            var student = $(this).attr('student');
            var studentData = JSON.parse(student);
            //console.log(studentData);
            
            $(".s-name").html(studentData.fullname);
            $(".f-name").html("<strong>Father Name : </strong>"+studentData.guardian[0].father_name);
            $(".mobile").html("<strong>Phone : </strong>"+studentData.guardian[0].phone);
            $(".s-class").html("<strong>Class : </strong>"+studentData.enrollment_no);
            $(".student-address").html("<strong>Address : </strong>"+studentData.guardian[0].address);
            $(".school-title").html(studentData.school[0].school);
            $(".school-address").html(studentData.school[0].address);
            $(".school-phone").html(studentData.school[0].mobile);

            //vertical smooth code
            $(".vs-s-name").html(studentData.fullname);
            $(".vs-f-name").html("<strong>Father Name : </strong>"+studentData.guardian[0].father_name);
            $(".vs-mobile").html("<strong>Phone : </strong>"+studentData.guardian[0].phone);
            $(".vs-s-class").html("<strong>Class : </strong>"+studentData.enrollment_no);
            $(".vs-student-address").html("<strong>Address : </strong>"+studentData.guardian[0].address);
            $(".vs-school-title").html(studentData.school[0].school);
            $(".vs-school-address").html(studentData.school[0].address);
            $(".vs-school-phone").html(studentData.school[0].mobile);

            if(studentData.school[0].logo != null && studentData.school[0].logo !="")
            {
                $(".school-logo").attr('src','public/'+studentData.school[0].logo);
                $(".vs-school-logo").attr('src','public/'+studentData.school[0].logo);
            }

            if(studentData.profile_pics != null && studentData.profile_pics != "")
            {
                $(".student-photo").attr('src','public/'+studentData.profile_pics);
                $(".vs-student-photo").attr('src','public/'+studentData.profile_pics);
            }
            
            //horizontal idcard
            
            $(".h-s-name").html(studentData.fullname);
            $(".h-f-name").html("<strong>Father Name : </strong>"+studentData.guardian[0].father_name);
            $(".h-mobile").html("<strong>Phone : </strong>"+studentData.guardian[0].phone);
            $(".h-s-class").html("<strong>Class : </strong>"+studentData.enrollment_no);
            $(".h-student-address").html("<strong>Address : </strong>"+studentData.guardian[0].address);
            $(".h-school-title").html(studentData.school[0].school);
            $(".h-school-address").html(studentData.school[0].address);
            $(".h-school-phone").html(studentData.school[0].mobile);

            if(studentData.school[0].logo != null && studentData.school[0].logo !="")
            {
                $(".h-school-logo").attr('src','public/'+studentData.school[0].logo);
                $(".h-school-logo").attr('src','public/'+studentData.school[0].logo);
            }

            if(studentData.profile_pics != null && studentData.profile_pics != "")
            {
                $(".h-student-photo").attr('src','public/'+studentData.profile_pics);
                $(".h-student-photo").attr('src','public/'+studentData.profile_pics);
            }
        
        });

        //dynamic id card code
        var tmp_type="";
        $(".design-list").on("change",function(e){
            e.preventDefault();
            var design = JSON.parse($(this).val());
            tmp_type = design.template_type;
            //console.log(design);

            if(design.alignment == 'center')
            {
                $(".id-card").css({'display':'flex','justify-content':'center'});
                $(".id-card p").css({'text-align':'center'});
                $(".image-box").css({'display':'flex','justify-content':'center'});
            }
            else if(design.alignment == 'left')
            {
                $(".id-card").css({'display':'flex','justify-content':'left'});
                $(".id-card p").css({'text-align':'left'});
                $(".image-box").css({'display':'flex','justify-content':'left'});
            }
            else if(design.alignment == 'right')
            {
                $(".id-card").css({'display':'flex','justify-content':'end'});
                $(".id-card p").css({'text-align':'right'});
                $(".image-box").css({'display':'flex','justify-content':'end'});
            }  
            
    
            $(".id-card").css({'color':design.text_color});
            $(".school-name").css({'background':design.header_color});
            $(".school-title").css({'color':design.header_text_color});
            $(".footer").css({'background':design.header_color});
            $(".footer").css({'color':design.header_text_color});
            if(design.bg_image != null)
            {
                //console.log(design.bg_image);
                $(".id-card").css({'background-image':'url(<?php echo e(asset("public")); ?>'+design.bg_image+')'});
            }
            else
            {
                $(".id-card").css({'background':design.bg_color});
            }

            //template type code
            if(design.template_type =="H")
            {
                $(".horizontal-idcard").removeClass("d-none");
                $(".vertical-idcard").addClass("d-none");
                $(".vertical-smooth-idcard").addClass("d-none");

                $(".h-idcard").css({'color':design.text_color});
                $(".h-school-header").css({'background':design.header_color});
                $(".h-school-header").css({'color':design.header_text_color});
                $(".h-footer").css({'background':design.header_color});
                $(".h-footer").css({'color':design.header_text_color});
                if(design.bg_image != null)
                {
                    $('.h-idcard').css({'background-image':'url(<?php echo e(asset("public")); ?>'+design.bg_image+')'});
                }
                else
                {
                    $(".h-idcard").css({'background':design.bg_color});
                } 
            }
            else if(design.template_type == "V")
            {
                $(".vertical-idcard").removeClass("d-none");
                $(".horizontal-idcard").addClass("d-none");
                $(".vertical-smooth-idcard").addClass("d-none");

                $(".id-card").css({'color':design.text_color});
                $(".school-name").css({'background':design.header_color});
                $(".school-title").css({'color':design.header_text_color});
                $(".footer").css({'background':design.header_color});
                $(".footer").css({'color':design.header_text_color});
                
            }
            else
            {
                $(".vertical-smooth-idcard").removeClass("d-none");
                $(".horizontal-idcard").addClass("d-none");
                $(".vertical-idcard").addClass("d-none");

                $(".id-card").css({'color':design.text_color});
                $(".school-name").css({'background':design.header_color});
                $(".school-title").css({'color':design.header_text_color});
                $(".footer").css({'background':design.header_color});
                $(".footer").css({'color':design.header_text_color});
                if(design.bg_image != null)
                {
                    $('.vs-idcard').css({'background-image':'url(<?php echo e(asset("public")); ?>'+design.bg_image+')'});
                }
                else
                {
                    $(".vs-idcard").css({'background':design.bg_color});
                }               
                
            }


        });

        //print id card
        
                $(".print-idcard-btn").click(function(){
                    if(tmp_type=="V")
                    {
                        $(".id-card-box").print();
                    }
                    else if(tmp_type=="VS")
                    {
                        $(".vs-idcard").print();
                    }
                    else
                    {
                        $(".horizontal-idcard").print();
                    }
                    
                });
</script>

    <?php if(!empty(Request::get('school'))): ?>
        <script>
            $("#schools").val("<?php echo e(Request::get('school')); ?>").trigger('change');
        </script>
    <?php endif; ?>

    <?php if(!empty(Request::get('class'))): ?>
        <script>
            $("#class").val("<?php echo e(Request::get('class')); ?>").trigger('change');
        </script>
    <?php endif; ?>

    <?php if(!empty(Request::get('section'))): ?>
        <script>
            $("#section").val("<?php echo e(Request::get('section')); ?>").trigger('change');
        </script>
    <?php endif; ?>

    <?php if(!empty(Request::get('type'))): ?>
        <script>
            $("#type").val("<?php echo e(Request::get('type')); ?>").trigger('change');
        </script>
    <?php endif; ?>

    <!-- end::dataTable -->
<?php $__env->stopPush(); ?>

<?php echo $__env->make('layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH F:\xampp\htdocs\school_saas_erp\resources\views/students/student-list.blade.php ENDPATH**/ ?>

Anon7 - 2021