<div class="panel panel-default">
<div class="panel-body">
  <table class="table table-bordered" id="tblRecords">
	<tr><td colspan="2" class="text-center"><b>View</b></td></tr>
	<tr><td><?php echo e(_lang('Trans Date')); ?></td><td><?php echo e(date("d-M-Y", strtotime($transaction->trans_date) )); ?></td></tr>
	<tr><td><?php echo e(_lang('Amount')); ?></td><td><?php echo e($transaction->amount); ?></td></tr>
	<tr><td><?php echo e(_lang('Income Type')); ?></td><td><?php echo e($transaction->c_type); ?></td></tr>
	<tr><td><?php echo e(_lang('Payment Method')); ?></td><td><?php echo e($transaction->account_name); ?></td></tr>
	<tr><td><?php echo e(_lang('Reference')); ?></td><td><?php echo e($transaction->reference); ?></td></tr>
	<tr>
	<td><?php echo e(_lang('Attachment')); ?></td>
		<td>
		  <?php if($transaction->attachment != ""): ?>
		   <a href="<?php echo e(asset('uploads/transactions/'.$transaction->attachment)); ?>" target="_blank" class="btn btn-primary"><?php echo e(_lang('View Attachment')); ?></a>
		  <?php else: ?>
			  <label class="label label-warning">
		        <strong><?php echo e(_lang('No Atachment Available !')); ?></strong>
		      </label>
		  <?php endif; ?>
		</td>
	</tr>
	<tr><td><?php echo e(_lang('Note')); ?></td><td><?php echo e($transaction->note); ?></td></tr>	
  </table>
</div>
</div>

<button id="btnPrint" onclick="printData();" class="btn btn-primary" style="margin:20px;">Print</button>

<script>

    
function printData()
{
   var divToPrint=document.getElementById("tblRecords");
   newWin= window.open("");
   newWin.document.write(divToPrint.outerHTML);
   newWin.print();
   newWin.close();
}
</script><?php /**PATH C:\htdocs\hostel\resources\views/backend/accounting/transaction/income/modal/view.blade.php ENDPATH**/ ?>