<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>
<div class="card bd-0 shadow-base">
    <div class="card-body pd-15">
        <?php
        $total_payments = count($proforma->payments);
        if($total_payments > 0){ ?>
        <h4 class="bold"><?php echo _l('proforma_payments_received'); ?></h4>
        <?php include_once(APPPATH . 'views/admin/proformas/proforma_payments_table.php'); ?>
        <?php } else { ?>
        <h5 class="bold mg-t-15 float-left"><?php echo _l('no_payments_found'); ?></h5>
        <?php } ?>
        <a href="#" class="btn btn-outline-secondary float-right" onclick="init_proforma(<?php echo $proformaid; ?>); return false;"><?php echo _l('go_back'); ?></a>
    </div>
</div>
