CasperSecurity
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<!--end::Global Stylesheets Bundle-->
<title>Voucher</title>
<style>
table, th, td {
border: 1px solid #72839e;
border-collapse: collapse;
font-family: Arial, Helvetica, sans-serif;
}
th, td {
padding: 10px;
}
</style>
</head>
<body>
<main>
<table>
<tr>
<?php if($datas['organisation'] != null): ?>
<td colspan=5 style="border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important; "><center><img src="<?php echo e(public_path("storage/".$datas['organisation']['organisation_logo'])); ?>" style="width:80px; vertical-align: middle;"> <b style="font-size:25px;font-weight:bold; vertical-align: middle;"> <?php echo e($datas['organisation']['organisation_name']); ?></b></center><center style="font-size:20px;position:relative;bottom:25px;left:50px;font-weight:bold"><br><?php echo e($datas['organisation']['registered_address']); ?>,<?php echo e($datas['organisation']['registered_city_name']); ?>,<?php echo e($datas['organisation']['registered_state_name']); ?>,<?php echo e($datas['organisation']['registered_zip_code']); ?><br>E-mail : <?php echo e($datas['organisation']['email_address']); ?></center></td>
<?php endif; ?>
</tr>
<tr>
<td colspan=6 style="font-size:20px;border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important;position:relative;bottom:30px;"><center><b style="font-weight:bold"><u><?php echo e($datas['transaction_type']); ?></u></b></center></td>
</tr>
<tr>
<td style="font-size:18px;border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important;font-weight:bold"><b style="font-weight:bold"><?php if($datas['voucher_no'] != null): ?>Voucher No. : <?php else: ?> Preparatory voucher No. : <?php endif; ?><span style="font-size:18px;font-weight:bold" ><?php echo e($datas['voucher_no'] != null?$datas['voucher_no']:$datas['preparatory_voucher_no']); ?></span></b>
</td>
<td colspan="5" style="font-size:18px;text-align:right;border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important;font-weight:bold">
<b style="font-size:18px; font-weight:bold"> Date : </b><?php echo e($datas['voucher_date'] != null?$datas['voucher_date']:$datas['preparatory_date']); ?><br>
</td>
</tr>
<?php if($datas['voucher_type'] == 'payment' || $datas['voucher_type'] == 'receive'): ?>
<tr>
<td colspan=6 style="font-size:18px;border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important;font-weight:bold;">Particulars : <span style="color: #72839e;"><?php echo e($datas['voucher_particulars']); ?></span> </td>
</tr>
<tr>
<td colspan=6 style="font-size:18px;border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important;font-weight:bold;">
<table style="border: 1px solid #72839e; width:100%;">
<thead>
<tr>
<th style=" text-align:left;font-weight:bold; color: #72839e;">Reference No</th>
<th style=" text-align:left;font-weight:bold; color: #72839e;">Ledger Head</th>
<th style=" text-align:left;font-weight:bold; color: #72839e;">Ledger Head Name</th>
<th style=" text-align:left;font-weight:bold; color: #72839e;"><?php echo e($datas['voucher_type'] == 'payment'?'Debit':'Credit'); ?></th>
</tr>
</thead>
<tbody>
<?php if(sizeof($datas['transactions'])>0): ?>
<?php $__currentLoopData = $datas['transactions']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tranction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td style="text-align:left; font-size:15px; color: #72839e;"><?php echo e($tranction['reference_no']); ?></td>
<td style="text-align:left; font-size:15px; color: #72839e;">
<?php echo e($tranction['ledger_head']?$tranction['ledger_head']['ledger_head']:''); ?>
</td>
<td style="text-align:left; font-size:15px; color: #72839e;">
<?php echo e($tranction['ledger_head']?$tranction['ledger_head']['ledger_head_name']:''); ?>
</td>
<td style="text-align:right; font-size:15px; color: #72839e;">
<?php echo e($tranction['amount']); ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</tbody>
<tfoot>
<tr>
<!-- Colspan so text spans first 2 columns -->
<td colspan="2" style="text-align:left; color:#72839e; border-right:1px solid #fff!important; font-size:13px;">
<?php echo e($datas['amount_word'] != null ? 'In word:- '.$datas['amount_word'] : ''); ?>
</td>
<!-- "Total" label aligned to 3rd column -->
<td style="text-align:right; padding-right:20px; color:#72839e;">
Total
</td>
<!-- Total amount in 4th column -->
<td style="text-align:right; color:#72839e;">
<?php echo e($datas['voucher_type'] == 'payment' ? $datas['total_debit_amount'] : $datas['total_credit_amount']); ?>
</td>
</tr>
</tfoot>
</table>
</td>
</tr>
<?php elseif($datas['voucher_type'] == 'journal'): ?>
<?php if($datas['voucher_particulars'] != null): ?>
<tr>
<td colspan=6 style="font-size:18px;border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important;font-weight:bold;">Particulars : <span style="color: #72839e;"><?php echo e($datas['voucher_particulars']); ?></span> </td>
</tr>
<?php endif; ?>
<tr>
<td colspan=6 style="font-size:18px;border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important;font-weight:bold;">
<table style="border: 1px solid #72839e; width:100%;">
<thead>
<tr>
<th style=" text-align:left;font-weight:bold; color: #72839e;">Ledger Head</th>
<th style=" text-align:left;font-weight:bold; color: #72839e;">Ledger Head Name</th>
<th style=" text-align:left;font-weight:bold; color: #72839e;">Sub Ledger Head Name</th>
<th style=" text-align:left;font-weight:bold; color: #72839e;">Debit</th>
<th style=" text-align:right;font-weight:bold; color: #72839e;">Credit</th>
</tr>
</thead>
<tbody>
<?php if(sizeof($datas['transactions'])>0): ?>
<?php $__currentLoopData = $datas['transactions']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $tranction): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<td style="text-align:left; font-size:15px; color: #72839e;">
<?php echo e($tranction['ledger_head']?$tranction['ledger_head']['ledger_head']:''); ?>
</td>
<td style="text-align:left; font-size:15px; color: #72839e;">
<?php echo e($tranction['ledger_head']?$tranction['ledger_head']['ledger_head_name']:''); ?>
</td>
<td style="text-align:left; font-size:15px; color: #72839e;">
<?php if($tranction['vendor'] != null): ?>
<?php echo e($tranction['vendor']['vendor_name']); ?>
<?php elseif($tranction['employee'] != null): ?>
<?php echo e($tranction['employee']['name']); ?>
<?php endif; ?>
</td>
<td style="text-align:right; font-size:15px; color: #72839e;">
<?php echo e($tranction['type'] == 'Debit'?$tranction['amount']:0); ?>
</td>
<td style="text-align:right; font-size:15px; color: #72839e;"><?php echo e($tranction['type'] == 'Credit'?$tranction['amount']:0); ?></td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
<?php endif; ?>
</tbody>
<tfoot>
<tr>
<td colspan="3" style="text-align: right; padding-right: 20px; color: #72839e;">Total</td>
<td style="text-align: right; color: #72839e;"><?php echo e($datas['total_debit_amount']); ?></td>
<td style="text-align: right; color: #72839e;"><?php echo e($datas['total_credit_amount']); ?></td>
</tr>
</tfoot>
</table>
</td>
</tr>
<?php endif; ?>
<tr></tr>
<tr></tr>
<tr></tr>
<tr>
<td style="font-size:18px;text-align:left;border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important;width:50%; font-weight:bold; padding-top: 80px;">Reciever's Signature </td>
<td colspan=5 style="font-size:18px;text-align:right;border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important;font-weight:bold; padding-top: 80px;">Authorised Signatory</td>
</tr>
<tr><td colspan=5 style="font-size:18px;text-align:right;border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important;font-weight:bold"></td></tr>
<tr>
<td style="font-size:18px;text-align:left;border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important;font-weight:bold; padding-top: 50px;">Prepared By </td>
<td style="font-size:18px;border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important;font-weight:bold; padding-top: 50px;">Checked By</td>
<td colspan=4 style="font-size:18px;text-align:right;border-right:1px solid #fff!important;border-left:1px solid #fff!important;border-bottom:1px solid #fff!important;border-top:1px solid #fff!important;font-weight:bold; padding-top: 50px;">Verified By </td>
</tr>
</table>
</main>
</body>
</html>
<?php /**PATH /var/www/orientalss.com/resources/views/applications/finance/voucher_print.blade.php ENDPATH**/ ?>