<?php if(!empty($panel_first_month))foreach($panel_first_month as $key => $row ): ?>
        <div class="row">
            <div class="col-12">

                <div class="row">
                    <div class="col">
                        <?php echo ($row->claim_type_id == 1)?'<h4>Panel Claim Outpatient</h4>':''; ?>
                        <?php echo ($row->claim_type_id == 4)?'<h4>Panel Claim Dental / Optical</h4>':''; ?>
                    </div>
                </div>

                <div class="row">
                    <div class="col-md-4">
                        <b>Invoice Number</b>
                    </div>
                    <div class="col">
                        <?php echo $row->invoice_chit; ?>
                    </div>
                </div>

                <div class="row">
                    <div class="col-md-4">
                        <b>Invoice Month</b>
                    </div>
                    <div class="col">
                        <?php echo date('F',strtotime('01-'.$row->invoice_month.'-2019')); ?>
                    </div>
                </div>
                

                <div class="row">
                    <div class="col-md-4">
                        <b>Invoice Year</b>
                    </div>
                    <div class="col">
                        <?php echo $row->invoice_year; ?>
                    </div>
                </div>

                <div class="row">
                    <div class="col-md-4">
                        <b>Patient Name</b>
                    </div>
                    <div class="col">
                        <?php echo $row->patient_name; ?>
                    </div>
                </div>

                <div class="row">
                    <div class="col-md-4">
                        <b>Patient Ic No</b>
                    </div>
                    <div class="col">
                        <?php echo $row->patient_ic_no; ?>
                    </div>
                </div>

                <div class="row">
                    <div class="col-md-4">
                        <b>Treatment</b>
                    </div>
                    <div class="col">
                        <?php echo $row->treatment; ?>
                    </div>
                </div>

                <div class="row">
                    <div class="col-md-4">
                        <b>Amount (RM) </b>
                    </div>
                    <div class="col">
                        <?php echo number_format($row->amount,2); ?>
                    </div>
                </div>
            </div> 
        </div>
        <hr>
<?php endforeach ?>

