
<?php $__env->startSection('content'); ?>
    <style>
       

    .certificate_box{
        background-image: url(public/admin/images/bg4.png);
        background-repeat: no-repeat;
        background-size: cover;
        box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
        padding-bottom: 150px;
        height:990px !important;
    }

    
       

        .header h4{
            width:300px;
            margin:auto;
            position:relative;
            font-weight: 400;
            text-shadow: 1px -1px #052e35;
            font-size: 23px;
            top:40px;
            text-align: center;
        }
        .header p{
            width:300px;
            margin:auto;
            position:relative;
            font-weight: 400;
            text-shadow: 1px -1px #052e35;
            font-size: 14px;
            top:40px;
            text-align: center;
        }

        .content{
            display: flex;
            justify-content: center;
            flex-flow: column;
            align-items: center;
            margin-top:120px;
        }

        .heading{
            font-family: "Great Vibes", cursive;
            font-size: 44px;
            text-shadow: -1px 0px 0px #19484e;
            color: #19484e;
            font-weight: 500;
            text-align: center;
        }

        .student-info > li{
            /* border-bottom:1px solid rgb(200, 200, 200); */

        }

        .student-info{
            width:80% !important;
        }

        .student-info p{
            text-align: left !important;
            width:30%;
        }

        .student-info li{
            justify-content:left !important;
        }

        .list li{
            justify-content: space-between;
        }

        .list{
            width:80%;
            padding:0;
        }

        .list p{
            font-weight: 500;
            font-size: 16px;
            margin:0;
            text-align: left !important;
            line-height: 34px;
        }

        .list-2 h4{
            font-size:16px;
            font-weight: 700;
        }


        .list-2 h5{
            font-size: 16px;
            font-weight: 600;;
        }
    </style>
    <!-- begin::main content -->
    <main class="main-content">
        <div class="container">
            <!-- begin::page header -->
            
            <div class="page-header">
                <h3>Generate Transfer Certificate</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">
                            <a href="#">
                                TC
                            </a>
                        </li>
                    </ol>
                </nav>
            </div>
            
            <!-- 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>
        <div class="container">
            
        
                <div class="alert alert-success d-none idcard-update-message">
                    
                </div>
                <div class="card">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-md-6">
                                <h4>Find Student</h4>
                                <form action="find-by-student-info" method="post">
                                    <?php echo csrf_field(); ?>
                                    <div class="input-group mb-3">
                                       
                                        <input type="text" name="search" class="form-control" placeholder="Find by name, studend Uniqui Id, Aadhar">
                                        <div class="input-group-append">
                                            <button type="submit" class="input-group-text text-white btn btn-info">Find</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <div class="col-md-3">
                                <h4>Find By DOB</h4>
                                <form action="tc-find-by-dob" method="post">
                                    <?php echo csrf_field(); ?>
                                    <div class="input-group mb-3">
                                       
                                        <input type="date" id="dob" name="dob" class="form-control">
                                        <div class="input-group-append">
                                        <button type="submit" class="input-group-text text-white btn btn-info">Find</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <div class="col-md-3">
                                <h4>Find By Admission Date</h4>
                                <form action="tc-find-by-admission" method="post">
                                    <?php echo csrf_field(); ?>
                                    <div class="input-group mb-3">
                                       
                                        <input type="date" name="admission-date" class="form-control" id="admission-date">
                                        <div class="input-group-append">
                                        <button type="submit" class="input-group-text text-white btn btn-info">Find</button>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <div class="px-4">
                                <button  class="btn btn-primary">
                                    <a class="text-white" href="<?php echo e(asset('student-tc')); ?>">
                                        Reset
                                    </a>
                                </button>
                                
                            </div>
                        </div>
                        
                    </div>

                </div>
                <div class="card">
                    <div class="card-body">
                        <div class="row">
                            <div class="col-md-12">
                                <table class="table">
                                    <thead>
                                        <tr>
                                            <th>Image</th>
                                            <th>Name</th>
                                            <th>Father Name</th>
                                            <th>Mother Name</th>
                                            <th>Student Id</th>
                                            
                                            <th>Addmission Date</th>
                                            <th>Fee Balance</th>
                                            <th>TC Status</th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <?php if(isset($admission)): ?>
                                        
                                        <?php $__currentLoopData = $admission; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $value): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                        <tr>
                                            <td><img src="" width="100"></th>
                                            <td><?php echo e($value->first_name); ?> <?php echo e($value->last_name); ?></td>
                                            <td><?php echo e($value->guardian->father_name); ?></td>
                                            <td><?php echo e($value->guardian->mother_name); ?></td>
                                            <td><?php echo e($value->user_unique_id); ?></td>
                                            
                                            <td><?php echo e($value->date_of_admission); ?></td>
                                            <td><?php echo e($value->date_of_admission); ?></td>
                                            <td >
                                                <?php if(isset($value->tc)): ?>
                                                    <span class="text-success">Issued</span>
                                                
                                                <?php else: ?>
                                                    <span class="">Not Issued</span>
                                                <?php endif; ?>
                                            </td>
                                            <td>
                                                <button class="btn btn-info">
                                                    <a href="<?php echo e(asset('get-tc/'.$value->user_unique_id)); ?>" class="text-white">Generate TC</a>
                                                </button>
                                            </td>
                                        </tr>
                                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                        <?php endif; ?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        
                    </div>
                </div>
           
        </div>
        
    </main>
   

   

    <!-- 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://cdn.jsdelivr.net/npm/@editorjs/editorjs@latest"></script>
<script>
  
    // Get the current date
    var currentDate = new Date();
    
    // Set the minimum date for the input field to be the current date
    //document.getElementById("dob").min = currentDate.toISOString().split('T')[0];
    document.getElementById("dob").max = currentDate.toISOString().split('T')[0];
    document.getElementById("admission-date").max = currentDate.toISOString().split('T')[0];

</script>
    <!-- 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/tc/transfer-certificate.blade.php ENDPATH**/ ?>