IMMREX7

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

<?php $__env->startSection('content'); ?>
<style>
    label{
        font-size: 11px;
        color: #6572b8;
        font-weight: 500;
    }
</style>
<div class="row clearfix">
    <div class="col-lg-12 col-sm-12">
        <div class="card">
            <div class="header">
                <h2><strong>Transfer Form</strong></h2>
                <a class="btn btn-raised btn-primary btn-round waves-effect" style="float: right;" href="javascript:void(0)" onclick="submitTransferForm()">Print Form</a>
            </div>
            <div class="body">
                <p style="font-size:18px;"><b><u>SCHOOL LEAVING CERTIFICATE FORM</u></b></p>
                <?php echo Form::open(['url' => 'school/transfer-data', 'class' => 'form-horizontal', 'id'=>'transfer-form']); ?>

                <input type="hidden" value="<?php echo e($id); ?>" name="idStudent"/>
                <div class="row clearfix form-group">
                    <div class="col-md-3">
                    <label>Student ID</label>
                    <input type="text" class="form-control" name="student_id" <?php if($saved != null): ?> value="<?php echo e($saved->student_id); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-3">
                    <label>UDISE No.</label>
                    <input type="text" class="form-control" name="udise_no" <?php if($saved != null): ?> value="<?php echo e($saved->udise_no); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-4">
                    <label>Gr No.</label>
                    <input type="text" class="form-control" name="book_no"  <?php if($saved != null): ?> value="<?php echo e($saved->book_no); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-4" style="margin-top:20px;">
                    <label>Name of Pupil</label>
                    <input type="text" class="form-control" name="name_of_pupil" <?php if($saved != null): ?> value="<?php echo e($saved->name_of_pupil); ?>" <?php else: ?> value="<?php echo e($student->firstName . " " . $student->middleName . " " . $student->lastName); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-4" style="margin-top:20px;">
                    <label>Mother’s Name</label>
                    <input type="text" class="form-control" name="mother_name" <?php if($saved != null): ?> value="<?php echo e($saved->mother_name); ?>" <?php else: ?> value="<?php echo e($student->mother_fname . " " . $student->mother_lname); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-4" style="margin-top:20px;">
                    <label>Father’s / Guardian’s Name</label>
                    <input type="text" class="form-control" name="father_name" <?php if($saved != null): ?> value="<?php echo e($saved->father_name); ?>" <?php else: ?> value="<?php echo e($student->father_fname ." ". $student->father_lname); ?>"<?php endif; ?> >
                    </div>

                    <div class="col-md-6" style="margin-top:20px;">
                    <label>Date of Birth (in Christian Era) according to Admission & Withdrawal Register (in Figures)</label>
                    <input type="date" class="form-control" name="dob_figures" <?php if($saved != null): ?> value="<?php echo e(\Carbon\Carbon::parse($saved->dob_figures)->format('Y-m-d')); ?>" <?php else: ?>
                    <?php if($student->studentDob != null): ?> value="<?php echo e(\Carbon\Carbon::parse($student->studentDob)->format('Y-m-d')); ?>" <?php endif; ?> <?php endif; ?>>
                    </div>
                    <?php 
                        $dob = \Carbon\Carbon::parse($student->studentDob)->format('d.F.Y');
                        $pieces = explode(".", $dob);
                    ?>
                    <div class="col-md-6" style="margin-top:20px;">
                    <label>Date of Birth (in Words)</label>
                    <input type="text" class="form-control" name="dob_words" <?php if($saved != null): ?> value="<?php echo e($saved->dob_words); ?>" <?php else: ?> value="<?php if(count($pieces) > 1): ?> <?php echo e(str_replace("only","",figToWordDob($pieces[0]))); ?> <?php echo e($pieces[1]); ?> <?php echo e(str_replace("only","",figToWordDob($pieces[2]))); ?> <?php endif; ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-2" style="margin-top:20px;">
                    <label>Nationality</label>
                    <input type="text" class="form-control" name="nationality" <?php if($saved != null): ?> value="<?php echo e($saved->nationality); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-6" style="margin-top:20px;">
                    <label>Whether the candidates belongs to Schedule Cast or Schedule Tribe or OBC</label><br>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="belongs_sc_st_obc" id="failedYes1" value="Yes" <?php if($saved != null): ?> <?php if($saved->belongs_sc_st_obc == "Yes"): ?> checked <?php endif; ?> <?php endif; ?>>
                            <label class="form-check-label" for="failedYes1">Yes</label>
                        </div>
                        <div class="form-check form-check-inline">
                            <input class="form-check-input" type="radio" name="belongs_sc_st_obc" id="failedNo1" value="No" <?php if($saved != null): ?> <?php if($saved->belongs_sc_st_obc == "No"): ?> checked <?php endif; ?> <?php endif; ?>>
                            <label class="form-check-label" for="failedNo1">No</label>
                        </div>
                    </div>

                    <div class="col-md-4" style="margin-top:20px;">
                    <label>Date of first admission in the school with class</label>
                    <input type="date" class="form-control" name="first_admission_date_class" <?php if($saved != null): ?> value="<?php echo e(\Carbon\Carbon::parse($saved->first_admission_date_class)->format('Y-m-d')); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-3" style="margin-top:20px;">
                    <label>Class in which the pupil last studied (in figures)</label>
                    <input type="text" class="form-control" name="last_class_figures" <?php if($saved != null): ?> value="<?php echo e($saved->last_class_figures); ?>" <?php else: ?> value="<?php echo e($student->className); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-3" style="margin-top:20px;">
                    <label>Class in which the pupil last studied (in words)</label>
                    <input type="text" class="form-control" name="last_class_words" <?php if($saved != null): ?> value="<?php echo e($saved->last_class_words); ?>" <?php else: ?> value="<?php echo e($student->className); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-6" style="margin-top:20px;">
                    <label>School / Board Annual examination last taken with result</label>
                    <input type="text" class="form-control" name="last_exam_result" <?php if($saved != null): ?> value="<?php echo e($saved->last_exam_result); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-6" style="margin-top:20px;">
                    <label>Whether failed, if so once/twice in the same class</label><br>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="failed_info" id="failedYes" value="Yes" <?php if($saved != null): ?> <?php if($saved->failed_info == "Yes"): ?> checked <?php endif; ?> <?php endif; ?>>
                        <label class="form-check-label" for="failedYes">Yes</label>
                    </div>
                    <div class="form-check form-check-inline">
                        <input class="form-check-input" type="radio" name="failed_info" id="failedNo" value="No" <?php if($saved != null): ?> <?php if($saved->failed_info == "No"): ?> checked <?php endif; ?> <?php endif; ?>>
                        <label class="form-check-label" for="failedNo">No</label>
                    </div>
                    </div>

                    <div class="col-md-12" style="margin-top:20px;">
                    <label>Subjects studied</label>
                    <div class="row" id="subjects-container">
                        <?php if($saved != null): ?>
                        <?php $arr = $saved->subjects_studied; 
                        $i =1;?>
                        <?php $__currentLoopData = $arr; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=>$v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <?php if($v != null): ?>
                        <div class="col-md-3 mb-2">
                            <input type="text" class="form-control" name="subjects_studied[]" placeholder="Subject <?php echo e($i); ?>" value="<?php echo e($v); ?>">
                        </div>
                        <?php $i++;?>
                        <?php endif; ?>
                        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                        <?php else: ?>
                        <?php for($i = 1; $i <= 4; $i++): ?>
                        <div class="col-md-3 mb-2">
                            <input type="text" class="form-control" name="subjects_studied[]" placeholder="Subject <?php echo e($i); ?>">
                        </div>
                        <?php endfor; ?>
                        <?php endif; ?>
                    </div>
                    <button type="button" class="btn btn-raised btn-primary btn-round waves-effect mt-2" id="add-subject">Add More</button>
                    </div>

                    <div class="col-md-6" style="margin-top:20px;">
                    <label>Whether qualified for promotion to the higher class. If so, to which class (in figures)</label>
                    <input type="text" class="form-control" name="promotion_class_figures" <?php if($saved != null): ?> value="<?php echo e($saved->promotion_class_figures); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-6" style="margin-top:20px;">
                    <label>Whether qualified for promotion to the higher class. If so, to which class (in words)</label>
                    <input type="text" class="form-control" name="promotion_class_words" <?php if($saved != null): ?> value="<?php echo e($saved->promotion_class_words); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-4" style="margin-top:20px;">
                    <label>Month upto which the pupil has paid school dues</label>
                    <input type="date" class="form-control" name="dues_paid_upto" <?php if($saved != null): ?> value="<?php echo e(\Carbon\Carbon::parse($saved->dues_paid_upto)->format('Y-m-d')); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-5" style="margin-top:20px;">
                    <label>Any fee concession availed of, if so, the nature of such concession</label>
                    <input type="text" class="form-control" name="fee_concession" <?php if($saved != null): ?> value="<?php echo e($saved->fee_concession); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-3" style="margin-top:20px;">
                    <label>School Leaving Date, Month and Year</label>
                    <input type="date" class="form-control" name="school_leaving_date" <?php if($saved != null): ?> value="<?php echo e(\Carbon\Carbon::parse($saved->school_leaving_date)->format('Y-m-d')); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-4" style="margin-top:20px;">
                    <label>Total No. of working days in the academic session</label>
                    <input type="number" class="form-control" name="total_working_days" <?php if($saved != null): ?> value="<?php echo e($saved->total_working_days); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-4" style="margin-top:20px;">
                    <label>Total No. working days pupil present in the school</label>
                    <input type="number" class="form-control" name="working_days_present" <?php if($saved != null): ?> value="<?php echo e($saved->working_days_present); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-4" style="margin-top:20px;">
                    <label>Whether NCC Cadet Boy Scout / Guide (details may be given)</label>
                    <input type="text" class="form-control" name="ncc_scout_guide" <?php if($saved != null): ?> value="<?php echo e($saved->ncc_scout_guide); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-8" style="margin-top:20px;">
                    <label>Games played or extra circular activities in which the pupil usually took part (mention achievement level therein)</label>
                    <input type="text" class="form-control" name="extra_curricular" <?php if($saved != null): ?> value="<?php echo e($saved->extra_curricular); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-4" style="margin-top:20px;">
                    <label>General conduct</label>
                    <input type="text" class="form-control" name="general_conduct" <?php if($saved != null): ?> value="<?php echo e($saved->general_conduct); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-4" style="margin-top:20px;">
                    <label>Date of application for certificate</label>
                    <input type="date" class="form-control" name="application_date" <?php if($saved != null): ?> value="<?php echo e(\Carbon\Carbon::parse($saved->application_date)->format('Y-m-d')); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-4" style="margin-top:20px;">
                    <label>Date of issue of certificate</label>
                    <input type="date" class="form-control" name="certificate_issue_date" <?php if($saved != null): ?> value="<?php echo e(\Carbon\Carbon::parse($saved->certificate_issue_date)->format('Y-m-d')); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-4" style="margin-top:20px;">
                    <label>Reasons for leaving the school</label>
                    <input type="text" class="form-control" name="reason_for_leaving" <?php if($saved != null): ?> value="<?php echo e($saved->reason_for_leaving); ?>" <?php endif; ?>>
                    </div>

                    <div class="col-md-12" style="margin-top:20px;">
                        <label>Any other remarks</label>
                        <textarea class="form-control" name="remarks" rows="2"><?php if($saved != null): ?> <?php echo e($saved->remarks); ?> <?php endif; ?></textarea>
                    </div>
                </div>
                <div class="row clearfix">
                    <div class="col-sm-3">
                        <?php echo Form::submit('SAVE',['class' => 'btn btn-raised btn-primary btn-round waves-effect']); ?>

                        <?php echo Form::close(); ?> 
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('script'); ?>
<script>
  document.getElementById('add-subject').addEventListener('click', function () {
    const container = document.getElementById('subjects-container');
    const inputCount = container.querySelectorAll('input').length;
    const newDiv = document.createElement('div');
    newDiv.className = 'col-md-3 mb-2';
    newDiv.innerHTML = `<input type="text" class="form-control" name="subjects_studied[]" placeholder="Subject ${inputCount + 1}">`;
    container.appendChild(newDiv);
  });
  function submitTransferForm() {
    const $form = $('#transfer-form');
    if ($form.length) {
        $form.submit();
        console.log('Form with ID "transfer-form" submitted programmatically using jQuery.');
    }
  }
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('schools.school_layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>

Copyright © 2021 - 2025 IMMREX7