


<?php $__env->startSection('title'); ?>
Membership Letter 
<?php $__env->stopSection(); ?>

<?php $__env->startSection('breadcrumb'); ?>
<ol class="breadcrumb pull-right no-print">
    <li><a href="<?php echo e(route('home')); ?>"><i class="fa fa-dashboard"></i> Home</a></li>
    <li class="active">Membership Letter </li>
</ol>
<?php $__env->stopSection(); ?>

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

<style type="text/css">

.table-bordered, .table-bordered>tbody>tr>td, .table-bordered>tbody>tr>th, .table-bordered>tfoot>tr>td, .table-bordered>tfoot>tr>th, .table-bordered>thead>tr>td, .table-bordered>thead>tr>th {
    border: 1px solid #000000;
}

h6 {
    font-size: 16px !important;
}

@media  print {
    
    .col-xs-12 {
        width:99%;
        float:left;
    }

    .border {
        border: 0px solid black ;
        border-bottom: 1px solid black;
        border-width: -22px solid black ;
        text-align: center;
    
    } 
    
    .border2 {
        border: 0px solid black !important;
        border-bottom: 1px solid black !important;
        border-width: 100% solid black !important;
    } 
    
    
    p {
        margin: 0 0 0px;
    }
    
    .white-box {
        margin-top: 50px;
    }
    
    .row {
    margin-right: 0px !important;
    margin-left: 0px !important;
}
    
     .qr-code {
    
    margin-right: 4.2% !important;
}   
}

.qr-code {
    display: inline-block;
    border: 1px solid black;
    margin-top: 5px;
    float: right;
    position: relative;
    bottom: 4rem;
    margin-right: 1.2%;
}

</style>

<?php $__env->stopSection(); ?>

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


            
<div class="container-fluid white-box border-none" style="margin-left: 15px;">
    <div class="row border-none" id="content">
        <div class="col-lg-12">
            <div class=" border-none">
                <div class="row" >
                    <div class="white-box border-none" style="margin-bottom: -40rem; font-family: calibri;">
                        <div class="row" >
                            <center><h4 style="position: relative;top: 2rem;"><strong style="text-decoration: underline;">MEMBERSHIP LETTER</strong></h4></center>
                            <br><h6 style="font-weight:bold;color:black; padding-left: 2rem;">DATE: <?php echo e(date('d-m-Y')); ?></h6>
                            <!--<center><h2><strong style="text-decoration: underline;">__________</strong></h2></center>-->
                            <!--<center><h4><strong>HEAD OFFICE # Swan Camp, Kahuta Mor, Main GT Road, Islamabad</strong></h4></center>-->
                            <div class="col-sm-12 col-xs-12 mt-12">
                                <div class="row" >
                                    <div class="col-xs-4 col-sm-3" ><strong class="un" style="font-size: 19px;"></strong></div>
                                </div>
                                
                                <span class="qr-code">
                                    <?php 
                                    $unit_category = '';
                                    
                                    foreach($statement->inventory->categories as $c)
                                    {
                                        $unit_category .= $c->category->name.' (' . $c->category->percent.' ),';
                                    }
                                                           
                                                            
                                                    
                                    $first_date = date('d-m-Y'); 
                                    $last_date = date('d-m-Y'); 
                                    $counter = 0; 
                                    foreach($statement->statement as $statements)
                                    {
                                       if($statements->due > 0 && ($statements->payment_head == \App\CustomerStatement::installment ))
                                       {
                                           if($counter == 0)
                                           {
                                               $first_date = date('d-m-Y', strtotime($statements->due_date));
                                           }
                                            $last_date = date('d-m-Y', strtotime($statements->due_date)) ;  
                                        $counter++;
                                       }
                                    
                                       
                                    }
                                   
                                    
                                    
                                    $total_years = '';
                                    
                                    
                                    if($counter == 48)
                                    {
                                        $total_years =   '4 Years';
                                    }
                                    elseif($counter == 36)
                                    {
                                        $total_years =  '3 Years';
                                    }
                                    elseif($counter == 24)
                                    {
                                        $total_years =  '2 Years';
                                    }
                                    elseif($counter == 12)
                                    {
                                        $total_years =  '1 Years';
                                    }
                                    else
                                    {
                                        $date1 = $first_date;
                                        $date2 = $last_date;
                                        $diff = abs(strtotime($date2)-strtotime($date1));
                                        $years = floor($diff / (365*60*60*24));
                                        $months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24));
                                        $days = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24));
                                        
                                        if($months > 0 )
                                        $total_years = $years.'.'.$months. ' Years';
                                        else
                                        $total_years = $years.'.'.$months. ' Years';
                                    }
                                   
                                    /*MI code starts here*/
                                    $name = 'NAME : '.$cus_name;
                                    
                                    $f_type = "";
                                    if($father_type == 1) {
                                        $f_type = "S/O";
                                    }elseif($father_type == 2) {
                                        $f_type = "D/O";
                                    }elseif($father_type == 3) {
                                        $f_type = "W/O";
                                    }else {
                                        $f_type = "S/O";
                                    }
                                                            
                                    $father_name = ' '.$f_type.' : '.$father_name;
                                    
                                    $u_cnic = ' CNIC : '.$cnic;
                                    /*MI code ends here*/
                                    
                                    $sizes = ' SIZE :  '.$size.' '.env('SIZE');  
                                    $types = ' PLOT TYPE :  '.$type;
                                    $category = ' CATEGORY : '.$unit_category. '% Extra';
                                    $booking_type =  ' BOOKING TYPE : '. $total_years;
                                    $total_price =  ' TOTAL PRICE : '. $net_pay;
                                    $booking_date =  ' BOOKING DATE : '. $original_boooking_date; 
                                    $area =  ' AREA : '. $area; 
                                    $schedule_start_date =  ' SCHEDULE START DATE : '. $schedule_start_date; 
                                    
                                    $qrCodeOutput =  $name.$father_name.$u_cnic.$sizes.$types.$category.$booking_type.$total_price.$booking_date.$area.$schedule_start_date;
                                 ?>

                                    <?php echo QrCode::size(150)->generate( $qrCodeOutput );; ?>

                                    </span>
                                
                            </div>
                            
                            <div class="col-lg-12 col-xs-12 " style="margin-top: -7rem;">
                               
                                <br>
                                <div class="row border-none">
                                    <div class="col-xs-6 col-sm-5" style="color: black !important;"><p>Dear Sir/Madam, </p></div>
                                </div>
                                <div class="row">
                                    
                                    <div class="col-sm-12 col-xs-12" style="margin-top: 1rem; color: black !important; text-align: justify;">
                                        <p style=" font-weight: 400;">The Management of <b>__________ (PVT) LTD</b>
                                            is pleased to welcome you and
                                            Intimate you that you are a part of this prestigious housing society and
                                            book plot in your name
                                            as per detail mentioned below</p>
                                    </div>
                                    
                                    <center><h4><strong style="text-decoration: underline;">*<u><?php echo e($type); ?> PLOT</u></strong></h4></center>
                                    
                                     <div class="col-md-12 col-xs-12">
                                         
                                        <table class="table bottom-table table-bordered">
                                            
                                            <tbody class="printFW">
                                                
                                                <tr>
                                                    <td style="width: 50%;">
                                                        <strong>
                                                            <h6 style="font-weight: bold;color:black;">APPLICANT DETAIL:</h6>
                                                        </strong>
                                                    </td>
                                                    <td>
                                                        <strong>
                                                            <h6 style="font-weight: bold;color:black;">PLOT DETAIL:</h6>
                                                        </strong>
                                                    </td>
                                                </tr>
                                                
                                                <tr>
                                                    <td style="width: 50%;">
                                                        
                                                        <strong>NAME: &nbsp; <?php echo e($cus_name); ?></strong>
                                                        <!-- <br>
                                                        <strong>
                                                            <?php if($father_type == 1): ?>
                                                            S/O
                                                            <?php elseif($father_type == 2): ?> 
                                                            D/O
                                                            <?php elseif($father_type == 3): ?> 
                                                            W/O
                                                            
                                                            <?php else: ?>
                                                            S/O
                                                            
                                                            <?php endif; ?>
                                                            </b>
                                                            
                                                           : &nbsp;  <?php echo e($father_name); ?>

                                                            
                                                        </strong> -->
                                
                                                        </td>
                                                    <td>
                                                        <strong>APP/ FORM NO: &nbsp; <?php echo e($statement->application_no); ?></strong>
                                                        <br>
                                                        <strong>Reg. No: &nbsp; <?php echo e($statement->membership_no); ?> </strong>
                                                    
                                                    </td>
                                                    
                                                      
                                                        
                                                </tr>
                                                
                                                <tr>
                                                    <td style="width: 50%;" >
                                                        <strong>
                                                            CNIC NO:&nbsp; 
                                                            
                                                            <?php 
                                                            $c = str_split($cnic, 1);?>
                                                            <?php for($i =0;$i<count($c) ; $i++) { ?>
                                                            <?php if($i == 5 || $i == 12): ?>
                                                            -
                                                            <?php endif; ?>
                                                            
                                                            <?php echo e($c[$i]); ?>

                                                            
                                                            <?php } 
                                                            ?>
                                                            
                                                            <br>
                                                    
                                                            CONTACT NO: &nbsp; <?php echo e($phone_number); ?>

                                                        </strong>
                                                        
                                                    </td>
                                                    
                                                    <td>
                                                        <strong>PLOT SIZE: &nbsp; <?php echo e($size); ?> <?php echo e(env('SIZE')); ?></strong>
                                                        
                                                        <!--<br>-->

                                                        <!--<strong>Application No &nbsp; <?php echo e($statement->application_no); ?> </strong>-->

                                                        

                                                    </td>
                                                
                                                </tr>
                                                
                                                <tr>
                                                    <td style="width: 50%;"><strong style="word-break: break-word;">ADDRESS:<?php echo e($mailing_address); ?></strong></td>
                                                    <td>
                                                        <strong>
                                                            
                                                            CATEGORY: &nbsp; 
                                                            
                                                            <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $c): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>

                                                            <?php if($loop->last): ?>
                                                            <?php echo e($c->category->name); ?> (<?php echo e($c->category->percent); ?> <?php if($c->category->percent > 0): ?>  <?php echo e('% Extra'); ?> <?php endif; ?>)
                                                            <?php else: ?>
                                                            <?php echo e($c->category->name); ?> (<?php echo e($c->category->percent); ?>  <?php if($c->category->percent > 0): ?>  <?php echo e('% Extra'); ?> <?php endif; ?>),
                                                            <?php endif; ?>
                                                            
                                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                                       
                                                        </strong>
                                                    </td>
                                                
                                                </tr>
                                                
                                                
                                            </tbody>
                                        </table>
                                    
                                    </div>
                                    
                                    <div class="col-sm-12 col-xs-12">
                                        <p>You have been booked plot against above mentioned registration number and
                                            entitled for allotment of <?php echo e($type); ?> file of <?php echo e($size); ?> Marla __________ PRIVATE
                                            LIMITED. In future this Intimation letter will be used as reference for allocation and
                                            allotment letter
                                        </p>
                                    </div>
                                    
                                    
                                    <div class="col-sm-12 col-xs-12">
                                        
                                        <div style="border:1px solid black;padding: 1rem;">
                                        
                                            <p>ALL INSTALLMENTS ARE TO BE MADE ACCORDING TO CATEGORY / SIZE OF THE APPLICATION AS PER SCHEDULE OF
                                            THE PAYMENT THROUGH BANK DRAFT / PAY ORDER / CASH IN FAVOUR OF __________.</p>
                                            
                                            <h6 style="color: black;"><b style="margin-left: 15%;"> ACCOUNT TITLE:</b> <?php echo e($company_bank ? $company_bank->account_title : ''); ?></h6>
                                            
                                            <h6 style="color: black;"><b style="margin-left: 15%;">ACCOUNT NUMBER:</b> <?php echo e($company_bank ? $company_bank->account_number : ''); ?></h6>
                                            
                                            <h6 style="color: black;"><b style="margin-left: 15%;">BANK NAME:</b> <?php echo e($company_bank ? $company_bank->name  : ''); ?></h6>
                                            
                                            <h6 style="color: black;"><b style="margin-left: 15%;">BANK ADDRESS:</b> <?php echo e($company_bank ? $company_bank->address : ''); ?></h6>
                                            
                                            <p style="margin-bottom: 0px;">NOTE: PLEASE SUBMIT YOUR INSTALLMENTS AS PER ATTACHED SYSTEM GENERATED (ENCLOSED) PAYMENT PLAN
                                            BEFORE DUE DATE TO AVOID CANCELLATION AND SURCHARGE OF ABOVE-MENTIONED PLOT</p>
                                        
                                        </div>
                                    </div>
                                    
                                    <div class="col-md-12 col-xs-12">
                                        <p style="text-align: right;">Thanking you and assuring you our best services.</p>
                                    </div>
                                    
                                    <div class="col-md-12 col-xs-12" style="margin-top: 1%; margin-left: 3%; width:465px;">
                                         <div style="border:1px solid black;">
                                           <center>
                                               <h5>
                                                   
                                                   <!--  <strong> BAR CODE </strong> -->
                                                    
                                                   
                                                    
                                                   
                                                    
                                                </h5>
                                            </center>
                                        </div>
                                    </div>
                                    
                                    
                                    
                                        
                                        
                                   
                                        
                                    
                                    <div class="col-sm-12 col-xs-12" style=" padding: 0 60px; ">
                                       
                                      
                                          <div class="col-sm-9 col-xs-9">
                                              
                                          </div>  
                                                
                                          
                                         <div class="col-sm-3 col-xs-3" style="left: 3rem;position: relative;top: 2rem;">
                                           
                                                 <h6>Yours Faithfully,</h6>
                                            
                                               <!--  <h6><strong>Syed Kousar Abbas Kazmi</strong></h6> -->
                                                
                                                <h6 style="margin-left: 2rem;"><strong><u>MANAGER</u></strong></h6>
                                                
                                                <h6><strong><u>__________</u></strong></h6> 
                                            
                                          </div>
                                   
                                    </div>
                                        
                                    <div class="col-sm-12 col-xs-12" style="margin-top: -5rem;">
                                    
                                        <div style="margin-left: 2rem;">
                                           
                                            <p style="margin-top: 0rem;"><b>HEAD OFFICE:</b> __________</p>
                                            <p><b>SITE OFFICE:</b> __________</p>
                                            <p>__________ </p>
                                        </div>
                                    
                                    </div>      
                                       
 
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                
                <div class="border-none">
                    <br>
                    <br>
                    <button id="print" class="btn btn-success no-print" type="button" style="float: right; color: white;"> <span style="color: white;"><i class="fa fa-print"></i> Print</span> </button>
                </div>
            </div>
        </div>
    </div>
</div>
</div>
</div>
</div>


</div>
</div> 

  

<?php $__env->stopSection(); ?>

<?php $__env->startSection('js'); ?>
<script src="<?php echo e(asset('js/jquery.PrintArea.js')); ?>" type="text/JavaScript"></script>
<script>
$(function () {
    $("#print").on("click", function () {
        window.print();
    });
});


</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH C:\xampp\htdocs\erpv7\resources\views/statement/sale-agreement.blade.php ENDPATH**/ ?>