<html>
<style type="text/css">
	body{
		font-family:Georgia,Times,"Times New Roman",serif;font-size:13px;
		width: 100%;
		margin: 15px;
	}

</style>
<body>
<div style="margin-bottom: 10px; height:100px;">
<div style="float: left; width: 400px;">
<b>ALL TRAVELS MALDIVES PVT. LTD.</b>
<br>
<span style="font-size: 10px;">H.GOLD VILLAGE, 1ST FLOOR, SOSUN MAGU, MALE', REPUBLIC OF MALDIVES</span>
<br>
Tel.:+(960) 3339878 , Mobile:+(960) 9878777
<br>
Email: accounts@alltravels.mv
<br>
TIN: 1057024GST001
<br>
Name of Payee: <?php echo $payment_voucher->payee; ?>

<br>
Payment Method: <?php echo $payment_voucher->payment_method; ?>

<br>
Account No. : <?php echo $payment_voucher->account_no; ?>

<br>
Account Name: <?php echo $payment_voucher->account_name; ?>

<br>
</div>
<div style="float: right; width:200px;">
		<div style="text-align: right;">
		<b>PAYMENT VOUCHER</b>
		</div>
		<div style="text-align: left;">
		<br>
		<br>
		Voucher # <?php echo $payment_voucher->voucher_no; ?>

		<br>
		Date: <?php echo Carbon\Carbon::parse($payment_voucher->created_at)->format('d-M-Y'); ?>

		<br>
		</div>
</div>

</div>

<style type="text/css">

table, th, td {
  border-left: none;
  border-right: none;
}


.tg  {
	border-collapse:collapse;border-spacing:0;
	font-size: 12px;
}
.tg td{
	font-size: 12px;
	padding:5px 5px;padding-left: 0px; padding-right: : 0px;word-break:normal;}
.tg th{padding:10px 5px; padding-left: 0px; padding-right: : 0px;border-style:solid; border-width:1px; border-top: none; border-left: none; border-right: none;
	border-color: #ccc;
font-size: 12px; font-weight: 700}





</style>
<table class="tg" style="width: 100%; padding-top:50px;">
<colgroup>

  <tr>
    <th class="tg-yw4l" style="text-align: left;">Details</th>
    <th class="tg-yw4l" style="text-align: right">Amount(<?php echo $payment_voucher->currency; ?>)</th>
  </tr>
  <?php
  $total = 0;
  ?>
    <?php foreach($payment_voucher->items as $item): ?>

    <?php
    $total = $total + $item->amount;
    ?>
  <tr>

    <td class="tg-yw4l" style="font-size: 10px;"><?php echo $item->description; ?></td>
    <td class="tg-yw4l" style="text-align: right;font-size: 10px;"><?php echo number_format($item->amount, 2, '.', ','); ?></td>
  </tr>
  <?php endforeach; ?>


  <tr>
    <td class="tg-yw4l" style="text-align: left;border-style:solid; border-width:1px;border-left: none; border-right: none; border-color: #ccc;"></td>
    <td class="tg-yw4l" style="text-align: right;border-style:solid; border-width:1px;border-left: none; border-right: none; border-color: #ccc; "><b><?php echo number_format($total, 2, '.', ','); ?></b></td>
  </tr>


</table>

<div style="padding-top: 20px; width: 100%;">
				<div style="width: 145px; float: left;">
				<b>Prepared </b>
				<br>
				<br>
				<br>
				<br>
				<?php echo $payment_voucher->prepared_by; ?>


				</div>
				<div style="width: 145px; float: left;">
				<b>Checked</b>
				<br>
				<br>
				<br>
				<br>
				<?php echo $payment_voucher->checked_by; ?>

				</div>
				<div style="width: 145px; float: left;">
				<b>Approved </b>
				<br>
				<br>
				<br>
				<br>
				<?php echo $payment_voucher->approved_by; ?>



				</div>

				<div style="width: 200px; float: right; border: 1px solid #000; height: 80px; justify-content: center; text-align: left; padding-left: 10px;">
					<b>Received </b>
				</div>
</div>








</body>

</html>