<?php ($message = 'Booking collect document 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>Collection Report</title>


  <style type="text/css">


    *{

        margin: 0;
     }

     /* GENERAL CSS APPLY ALL SECTIONS*/


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

  .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: 8.5pt;
    /*font-weight: bold;*/
  }

  label,span{
    font-size: 8.5pt;

  }



  .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%;">

      <header>
        <div  class="header">
           <center>  <img src="graphics/logo/logo.jpg" width="10%" height="0.05%" />
           <br><strong>Collection Report</strong> </center>
        </div>
      </header>


     <div class="container">
        <div class="main-section">

    <!-- CUSTOMER SECTION -->
        <!-- ROW-1 -->




    <div class="row clear margin">


          <div class="col margin" style="width: 85%">
            <label>Name: <?php echo e(ucfirst($user->name)); ?> <?php echo e($user->relation); ?>  <?php echo e(ucfirst($user->fname)); ?></label>
          </div>

          <div class="col margin" style="width: 25%">
            <label>Date: <span ><?php echo e(EF::dateFormat(date('y-m-d'))); ?></span></label>
          </div>



      </div>

      <div class="row clear margin">




          

          <div class="col margin" style="width: 25%">
            <label>Customer Code: <span ><?php echo e($user->code); ?></span></label>
          </div>

      </div>

      <div class="row clear margin">




          <div class="col margin" style="width: 85%">

          </div>

          <div class="col margin" style="width: 25%">
            <label style="font-weight: bolder;">Reg No: <span ><?php echo e($booking->ms); ?></span></label>
          </div>

      </div>








    <!-- END CUSTOMER SECTION -->

    <div class="row margin clear">

      <div class="col" style="width: 100%;">
        <table  border="0" style="border-collapse: collapse; margin-top:3%; text-align: center; width:100%; font-size: 8.5pt;">
          <thead>
            <tr>
            <th>Receipt No</th>
            <th>Date</th>

            <th>Ch #</th>

            <th>Drawn On</th>

            <th>Amount</th>
          </tr>

          </thead>
          <tbody>
            <?php ($reversal_amount = 0); ?>
            <?php ($approval_amount = 0); ?>

             <?php ($check_list = ["Installment","Commission","Transfer","Refund","Deduction","Document Charges","Baloon Charges"]); ?>
              <?php $__currentLoopData = $receipt_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rows): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <?php if(in_array($rows->payment_type,$check_list)): ?>

                    <tr style="<?php if($rows->status === 'Reversal'): ?> background: #F1F1F1; <?php endif; ?>">
                      <td><?php echo e($rows->receipt_no); ?></td>
                      <td><?php echo e(EF::dateFormat($rows->created_at)); ?></td>

                      <?php if($rows->mode == 'Cash'): ?>
                      <td>Cash</td>
                      <?php else: ?>
                      <td><?php echo e($rows->instrument); ?></td>
                      <?php endif; ?>
                      <td><?php echo e($rows->drawn_on); ?></td>
                      <td><?php echo e(EF::numberFormat($rows->amount)); ?> <?php echo e(EF::numberToWords($rows->amount)); ?></td>
                    </tr>

                    <?php if($rows->status === 'Reversal'): ?>

                        <?php ($reversal_amount += $rows->amount); ?>

                    <?php else: ?>

                        <?php ($approval_amount += $rows->amount); ?>

                    <?php endif; ?>
                  <?php endif; ?>
              <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
          </tbody>
          <tfoot>
            <tr style="font-weight: bolder;  ">
                      <td colspan="5">Total: [Debit:<?php echo e(EF::numberFormat($approval_amount)); ?> - Credit:<?php echo e(EF::numberFormat($reversal_amount)); ?>] = <?php echo e(EF::numberFormat(($approval_amount - $reversal_amount))); ?>  </td>

                    </tr>
          </tfoot>
        </table>
      </div>

    </div>


        </div>
     </div>

</body>
</html>
<?php /**PATH /home/ubuntu/rebmgisplus/skylite/resources/views/documents/all_receipts.blade.php ENDPATH**/ ?>