/home2/mshostin/www/storage/framework/views/55a255525d8ceff4eb390885ced2e3e83ee919af.php
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test</title>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
</head>
<body>
<div class="container" id="print-doc">
<div class="row">
<div class="col-md-2"><p style="margin-top: 35px;">S.P NAME: <?php echo e($ref->name); ?></p></div>
<div class="col-md-8 text-center">
<h2>PANWARI OUTSTANDING REPORT </h2>
</div>
</div>
<table class="table table-bordered" id="table-print">
<thead>
<tr>
<th style="width: 2%">SNO</th>
<th style="width: 5%">DATE</th>
<th style="width: 20%">PARTY NAME</th>
<th style="width: 10%">BALANCE</th>
<th style="width: 2%">Days</th>
</tr>
</thead>
<tbody>
<?php
$total = 0;
?>
<?php $__currentLoopData = $trans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $row): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
<tr>
<th scope="row"><?php echo e(++$key); ?></th>
<td><?php echo date('d/M/y', strtotime($row->created_at)); ?></td>
<td><?php echo e($row->client->name); ?></td>
<td>
<?php echo e($row->client->balance); ?>
<?php
$total = $total + $row->client->balance;
?>
</td>
<td>
<?php
$interval = $row->created_at->diff(Carbon\Carbon::now());
?>
<?php echo e($interval->format('%a')); ?>
</td>
</tr>
<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
</tbody>
</table>
<div class="text-right" id="total-amount">
<h4>Total Balance Amount : <?php echo e($total); ?> </h4>
</div>
</div>
<div class="container">
<button onclick="print()">Print</button>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/html2pdf.js/0.10.1/html2pdf.bundle.min.js" integrity="sha512-GsLlZN/3F2ErC5ifS5QtgpiJtWd43JWSuIgh7mbzZ8zBps+dvLusV+eNQATqgA/HdeKFVgA5v3S/cIrLF7QnIg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
<script>
function print()
{
var element = document.getElementById('print-doc');
document.getElementById("table-print").style.width = "95%";
document.getElementById("total-amount").style.margin = "5%";
var opt = {
margin: [22,2, 15, 2], //top, left, buttom, right
filename: 'ledger.pdf',
image: { type: 'jpeg', quality: 1 },
html2canvas: { dpi: 192, letterRendering: true},
jsPDF: { unit: 'mm', format: 'A4', orientation: 'landscape' },
};
// New Promise-based usage:
html2pdf().set(opt).from(element).save();
// Old monolithic-style usage:
html2pdf(element, opt);
}
</script>
</body>
</html><?php /**PATH C:\xampp\htdocs\inventrySystem\resources\views/reference/print.blade.php ENDPATH**/ ?>