IMMREX7

aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/students/
File Up :
aku nok ndi : /home/spdtg/www/schoolmis/resources/views/schools/students/bonafide_certificate.blade.php

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Bonafide Certificate</title>
    <style>
        body {
            font-family: 'Times New Roman', serif;
            margin: 30px;
            line-height: 1.5;
        }
        .header {
            text-align: center;
            margin-bottom: 20px;
        }
        .header h2, .header h3 {
            margin: 0;
        }
        .certificate-title {
            text-align: center;
            font-size: 22px;
            font-weight: bold;
            text-decoration: underline;
            margin-bottom: 20px;
        }
        .content {
            font-size: 18px;
        }
        .table {
            width: 100%;
            margin-bottom: 20px;
            font-size: 18px;
        }
        .footer {
            margin-top: 180px;
            text-align: right;
            font-weight: bold;
            font-size: 18px;
        }
        .blank-line {
            display: inline-block;
            border-bottom: 1px solid black;
            width: 250px; 
            margin: 0 5px;
        }
        p {
            margin: 15px 0; 
        }

        .photo-box img {
            width: 120px;
            height: 120px;
            border: 1px solid #000;
        }
        .footer{
            text-decoration: underline;
        }
    </style>
</head>
<body>
        <table class="table">
            <tbody>
                <tr>
                    <th style="text-align: center;padding: 0px; "><img src="{{ asset('storage/schools/'.$school->idSchool.'/'.$school->schoolLogo)}}" height="90" width="90"></th>
                    <td style="vertical-align: middle;text-align: center; width: 100%; padding-left: 0px; ">
                        <strong style="font-size:28px;">{{$school->schoolName}}</strong><br>
                        <span style="font-size:16px;">{{$school->street}} {{$school->landmark}} {{$school->subArea}} {{$school->area}}  <br>
                        {{$school->city}}  {{$school->state->stateName}}<br></span>
                        <strong style="font-size:14px;">Contact No : {{$school->mobile}}</strong><br>
                        <strong style="font-size:14px;">Email : {{$school->email}}</strong><br>
                    </td>
                </tr>
            </tbody>
        </table>

    <div class="certificate-title">
        BONAFIDE CERTIFICATE
    </div>

    <div class="content">
        <table class="table">
            <tr>
            <?php $fy = DB::table('financial_years')->where('idFinancialYear',$student->idFinancialYear)->first();
                $caste = "";
                if($student->idRegistration != null){
                    $registration = DB::table('student-registration')->where('idRegistration',$student->idRegistration)->first();
                    if($registration != null){
                        if($registration->caste != null){
                            $caste = $registration->caste;
                        }
                    }
                }
                $dob = \Carbon\Carbon::parse($student->studentDob)->format('d.F.Y');
                $pieces = explode(".", $dob);
                ?>
                <td><strong>No:</strong>{{strtoupper($student->admissionNo)}}</td>
                <td style="text-align: right;"><strong>Date:</strong>{{\Carbon\Carbon::now()->format('d.m.Y')}}</td>
            </tr>
            <tr>
                <td colspan="2"></td>
            </tr>
            <tr>
                <td colspan="2"><strong>G.R. No:</strong> _______________</td>
            </tr>
        </table>

        <p style="line-height: 3;">
            This is to certify that @if($student->gender == "Female")Miss @else Master @endif <span class="blank-line">{{$student->firstName . " " . $student->middleName . " " . $student->lastName}}</span>, @if($student->gender == "Female")daughter @else son @endif  of 
            <span class="blank-line"> {{$student->father_fname . " " . $student->father_lname }}</span>, is/was a bonafide student of this 
            institute ({{$school->schoolName}}) , studying in Standard <span class="blank-line">{{$student->className}}</span> 
            for the academic year <span class="blank-line">{{$fy->financialYearName}}</span> . @if($student->gender == "Female")Her @else His @endif birth date as recorded in our General Register is <span class="blank-line"> {{$student->studentDob}} </span> 
            @if(count($pieces) > 1)(<em><span class="blank-line">{{str_replace("only","",figToWordDob($pieces[0]))}} {{$pieces[1]}} {{str_replace("only","",figToWordDob($pieces[2]))}}</span></em>) @endif.To the best of our knowledge, @if($student->gender == "Female")she @else he @endif bears a good moral character. Her caste according to our register: {{$caste}}
        </p>
    </div>

    <table class="table" style="width:200px;">
        <tbody>
            <tr>
                <th style="text-align: center;padding: 0px; ">
                @if(isset($student->photo))
                    <img src="{{ asset('storage/schools/'.$school->idSchool.'/students/'.$student->photo)}}" height="90" width="90">
                @endif
                </th>
                <td style="vertical-align: middle;text-align: left; width: 100%; padding-left: 20px; ">
                    <strong style="font-size:16px;">Address</strong><br>
                    <span style="font-size:14px;">{{$student->resAddress}} {{$student->landmark}}  {{$student->resCity}} <br>
                    {{$student->state->stateName}} - {{$student->resPincode}} </span>
                </td>
            </tr>
        </tbody>
    </table>

    <div class="footer">
        Principal
    </div>
</body>
</html>

Copyright © 2021 - 2025 IMMREX7