<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<link type="text/css" href="<?php echo e(public_path()); ?>/dompdf-assets/receipts.css" rel="stylesheet" />
	<title>Unit Manager Vouchers</title>
	<style type="text/css">
		table.receipt-content tr td{padding: 3px 10px;}
		.line-height-1 {line-height: 10px!important;}
		.line-height-12{line-height: 12px!important;}
		.margin-right-10{margin-right: 10px!important;}
	</style>
</head>
<!-- Page 1 of 1 -->
<body class="exo2-regular position-relative">
	<div id="page-background" class="overlay">
        <!-- <img src="images/progress-report-bg.jpg" height="100%" width="100%" style="position: absolute; width: 100%;z-index: -1;"> -->
     </div> 
	<div>
		<div class="col-xs-12 no-padding position-relative">
			<div class="clearfix" style="height: 20px;"></div>
			<div class="pdf-wrapper proximanova-regular">
				<div class="pdf-header" style="border: 0!important;">
                    <div>
						<table width="100%">
							<tr>
								<td width="50%" valign="top">
									<div class="eti-logo">
										<img src="<?php echo e(public_path()); ?>/dompdf-assets/images/dps_logo.png" alt="" style="width: 260px;">
									</div>
								</td>
								<td width="50%" valign="top">
									<p class="primary-font-color px-14-font line-height-1 europa-bold">DAVAO PROPERTY SOLUTIONS</p>
									<p class=" px-12-font line-height-1">2F, LDI Bulding, #20 Road 1 corner Surveyor St.,</p>
									<p class=" px-12-font line-height-1">Dona Vicenta Village Bajada Davao City</p>
									<p class=" px-12-font line-height-1">(082) 327-3608</p>
									<p class=" px-12-font line-height-1">www.davaopropertysolutions.com</p>
								</td>
							</tr>
						</table>
				    </div>
				</div>
				<div class="pdf-wrapper pdf-body">
				    <div class="clearfix" style="height: 15px;"></div>
					
					<p class="primary-font-color px-14-font line-height-1 europa-bold">UNIT MANAGER VOUCHER</p>
					<table width="100%" class="receipt-content px-12-font line-height-1">
                        <tr>
                            <td><?php echo e(strtoupper($agent->fullname)); ?><br>UNIT MANAGER</td>
                            <td>Code : <?php echo e(strtoupper($agent->code)); ?><br>
                                Contact No : <?php echo e(strtoupper($agent->contact_no)); ?><br>
                                Issue Date : <?php echo e(date('m-d-Y')); ?><br>
                                Date Covered : <?php echo e($dtRange); ?><br>
                                C/A Total Paid : <?php echo e(number_format($ttl_pay,2)); ?>

                            </td>
                            <td>Notes: <?php echo e($remarks); ?>

                            <br><br><br><br>
                            </td>
                        </tr>
                    </table>
					<div class="clearfix" style="height: 15px;"></div>
						<div class="clearfix"></div>
						<div class="clearfix" style="height: 15px;"></div>
                        <table width="100%" class="receipt-content px-13-font line-height-1">
							<tr style="background-color: #525252!important;color: #ffffff;">
								<td width="15%">DATE</td>
								<td width="20%">AGENT NAME</td>
								<td width="20%">UNIT MANAGER</td>
								
								<td width="15%" class="text-center">BLK / LOT COMM</td>
								<td width="20%">CLIENT</td>
								<td width="20%">PARTICULARS</td>
								<td width="15%" class="text-center">RATE</td>
								<td width="15%" class="text-center">GROSS</td>
								<td width="15%" class="text-center">TAX COMM</td>
                                <td width="15%" class="text-center">CA PAYMENT</td>
								<td width="15%" class="text-center">NET COMM</td>
							</tr>
							<?php $__currentLoopData = $rpts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rpt): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
								<tr>
								    
								    <td><?php echo e(date("d-M-Y", strtotime($rpt->created_at))); ?></td>
								    <td><?php echo e($rpt->agent_name); ?></td>
								    <td><?php echo e($rpt->um_fullname); ?></td>
								    <td class="text-center"><?php echo e($rpt->blk); ?> | <?php echo e($rpt->lot); ?></td>
								    <td><?php echo e($rpt->client_name); ?></td>
								    <td><?php echo e($rpt->remarks); ?></td>
								    <td class="text-center"><?php echo e(number_format($rpt->um_pcg_rate, 0)); ?>%</td>
								    
								    <td class="text-right"><?php echo e(number_format($rpt->um_com_rate,2)); ?></td>
								    <td class="text-right"><?php echo e(number_format($rpt->tax_comm, 2)); ?></td>
                                    <td class="text-right"><?php echo e(number_format($rpt->um_payment_adv,2) ?? 0); ?></td>
								    <td class="text-right"><?php echo e(number_format($rpt->net_comm,2)); ?></td>
								</tr>
							<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
						</table>
						<div class="clearfix" style="height: 10px;"></div>
						<div style="border-bottom: dotted #555555!important; width: 100%;"></div>
						<table width="100%" class="total-payment px-13-font line-height-1">
							<tr>
								
								
								<td width="100%" valign="top">
									<table width="100%" class="total-payment px-12-font europa-bold" style="padding: 5px;">
										<tr>
										    <td></td>
                                            <?php echo e($net_comm = 0); ?>

                                            <?php echo e($tax_comm = 0); ?>

                                            <?php echo e($pay_adv  = 0); ?>


                                            <?php $__currentLoopData = $rpts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $rpt): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                                <?php echo e($tax_comm += $rpt->tax_comm); ?>

                                                <?php echo e($pay_adv  += $rpt->um_payment_adv); ?>

                                                <?php echo e($net_comm += $rpt->net_comm); ?>

                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            
										</tr>
                                        <tr>
                                            <td width="55%"></td>
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                            <td></td>
                                            <td>TOTAL</td>
                                            <td></td>
                                            <td></td>
                                            <td class="text-right"><?php echo e(number_format($tax_comm, 2)); ?></td>
                                            <td></td>
                                            <td class="text-right"><?php echo e(number_format($pay_adv, 2)); ?></td>
                                            <td class="text-right"><?php echo e(number_format($net_comm, 2)); ?></td>
                                        </tr>
									</table>
								</td>
							</tr>
						</table>
				</div>
			</div>
			<div class="pdf-footer">
					<!-- This is footer section	 -->
					<div style="margin-left:60px;margin-top:40px;">
                        Receive By: _______________________
                    </div>
			</div>
		</div>
	</div>
</body>
<!-- End Page 1 of 1 -->
</html>