
<?php ($message = 'Booking Form against booking details (Article Name:"'.$booking->plot->plot_id.' "Type:" '.$booking->plot->type .'") has been viewed'); ?>
    <?php (EF::createLogs($message,'document')); ?>
    <!DOCTYPE html>
<html>
<head>

  <title>Customer Summary</title>


  <style type="text/css">

    
    *{

        margin: 0;
     }

     /* GENERAL CSS APPLY ALL SECTIONS*/


  *{
    margin: 0;
  /*  padding-top: 6px;*/
  }
  .margin{
    padding-top: 8px;
  }

  .title{

    text-align: center;
    font-weight: bold;
  }


  .container1{

    margin-left: 7%;
    margin-right: 5%; 
    
  }

  .image-section1{

    width: 100px;
    height: 100px;
    
    
    text-align: center;
    position: absolute;
    margin-left:  -5%;
/*    top:  -500%;*/
bottom:  10%;

    
  }

  .title1{

    text-align: center;
    margin-top: 2%;
    background: #a8a8a8;
    color: #fff;
    width: 30%;
    height: 2%;
    border-radius: 15px;
    vertical-align: middle;
    line-height: 29px;
    margin-left: 34.5%;
  }

  

  .clear{

    clear: both;
  }

  .top-section{
    margin-left: 4%;
  }

  input[type=text]
  {
    

    
    border-top: 0;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid;
    font-size: 12px;
    text-align: center;
    background-color: transparent;

  }

/*  #START=> APPARTMENT SECTION */
  .main-section .row .col{
    
  
    width: 25%;
    margin-right: 30px;
    padding-right: 10px;
    float: left;
  }

  .main-section .row{

    /*margin-left: 4%;*/


  }

  .main-section .col label{
    font-size: 12px;
    /*font-weight: bold;*/
  }

  

  .main-section .row .col .check{
    vertical-align: middle;
    margin-top: 10px;
    margin-right:  90px; 
  }

/*  #END=> APPARTMENT SECTION */




  

  
/*  #END=> OFFICE USE SECTION */

/*  #START=>  IMAGE SECTION */

 .image-section{

    width: 85px;
    height: 85px;
    
    border: 1px solid #000;
    text-align: center;
    position: absolute;
    margin-left:  83%;
    top:  18%;

    
  }



  small{
    font-size: 12px;
    margin-left: 15;
  }

     .container{

        
     }


  </style>
</head>

<body style="margin:3% 7.5% 4% 7.5%;">
      
   <?php echo $__env->make('letters.pdf_letter_header', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

     <br>

     <div class="container">
        <div class="main-section">
           <center> <h3>CUSTOMER SUMMARY</h3></center>
      <?php echo $__env->make('documents.customer_info', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
      <?php echo $__env->make('documents.plot_info', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
      <?php echo $__env->make('documents.payment_history', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>


      <div class="row clear">
          <table border="1" style="border-collapse: collapse; margin-top:3%; text-align: center; width:100%;">
            <thead>
              <tr>
              <th colspan="8" style="background: #E0E0E0; ">Outstanding Installment Plan</th>
                
              </tr>
              <tr>

                 <th style ="width:5%;" >Sr. </th>
                 <th>Description</th>

                  <th>Actual Amount</th>

                  <th>Amount</th>

                  <th>Received</th>

                  <th>Balance</th>

                  <th>Status</th>

                  <th style="width: 15%;">Date</th>
              </tr>
              <tbody>
                <?php ($totalamount = 0); ?>
                <?php ($received = 0); ?>
                <?php ($balance = 0 ); ?>
                <?php ($short = 0); ?>
          <?php $__currentLoopData = $installment; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
          <?php if($rows->received_amount < $rows->amount): ?>
          <tr>
            <td><?php echo e($loop->iteration); ?> </td>
               <td><?php echo e($rows->description); ?> </td>
                <td><?php echo e(EF::numberFormat($rows->actual_amount)); ?></td>
                 <td><?php echo e(EF::numberFormat($rows->amount)); ?></td>
                  <td><?php echo e(EF::numberFormat($rows->received_amount)); ?></td>
                    <td><?php echo e(EF::numberFormat(($rows->amount)-($rows->received_amount))); ?></td>
                    <?php if($rows->received_amount >= $rows->amount): ?>
                        <td>Paid</td>
                        <?php else: ?> 
                           <td>Unpaid</td>
                           <?php endif; ?>

                        <td><?php echo e(EF::dateFormat($rows->due_date)); ?></td>
                        <?php ($totalamount = $totalamount +($rows->amount)); ?>
                          <?php ($received = $received +($rows->received_amount)); ?>
                             <?php ($balance = $balance +(($rows->amount)-($rows->received_amount))); ?>
                            



          </tr>
          <?php endif; ?>
          <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          <tr>
            <?php ($short = $booking->getShortAmount($booking->id)); ?>
                <th colspan="2" style="background: #E0E0E0; ">Total</th>
                 <th  style="background: #E0E0E0; "><?php echo e(EF::numberFormat($booking->agreed_amount)); ?></th>
                  <th  style="background: #E0E0E0; "><?php echo e(EF::numberFormat($totalamount)); ?></th>
                   <th  style="background: #E0E0E0; "><?php echo e(EF::numberFormat($received)); ?></th>
                    <th  style="background: #E0E0E0; "><?php echo e(EF::numberFormat($balance)); ?></th>
                     <th colspan="2"  style="background: #E0E0E0; ">Short: <?php echo e(EF::numberFormat($short)); ?></th>


          </tr>
        </tbody>
            </thead>
          </table>
      </div>
              <!-- INSTALLMENT PLAN -->
        
        </div>
     </div>

</body>
</html><?php /**PATH /var/www/skylite/resources/views/documents/customer_summary.blade.php ENDPATH**/ ?>