<div class="row">
    <div class="col-md-4">
        <table class="table table-bordered table-striped">
            <tr>
                <th><?php echo trans('installments.date'); ?></th>
                <td><?php echo $installment->displayDate(); ?></td>
            </tr>
            <tr>
                <th><?php echo trans('installments.customer_id'); ?></th>
                <td><?php echo $installment->full_name_kh; ?></td>
            </tr>
            <tr>
                <th><?php echo trans('customers.sex'); ?></th>
                <td><?php echo trans('customers.gender.'.$installment->gender); ?></td>
            </tr>
            <tr>
                <th><?php echo trans('customers.tel'); ?></th>
                <td><?php echo $installment->tel; ?></td>
            </tr>
        </table>
    </div>
    <div class="col-md-8">
        <table class="table table-striped table-bordered hidden-xs">
            <tr>
                <th style="width: 25%;"><?php echo trans('installments.product_name'); ?></th>
                <td  style="width: 25%;"><?php echo $installment->product_name; ?></td>
                <th style="width: 25%;"><?php echo trans('installments.total_price'); ?></th>
                <td style="width: 25%;"><?php echo money($installment->getTotalPrice()); ?></td>
            </tr>
            <tr>
                <th style="width: 25%;"><?php echo trans('installments.note'); ?></th>
                <td  style="width: 25%;"><?php echo $installment->note; ?></td>
            </tr>
            <tr>
                <th style="width: 25%;"><?php echo trans('installments.model'); ?></th>
                <td  style="width: 25%;"><?php echo $installment->model; ?></td>
                <th style="width: 25%;"><?php echo trans('installments.imie'); ?></th>
                <td style="width: 25%;"><?php echo $installment->imie; ?></td>
            </tr>
            <tr>
                <th><?php echo trans('installments.deposit'); ?></th>
                <td><?php echo money($installment->getDeposit()); ?></td>
                <th><?php echo trans('installments.duration'); ?></th>
                <td><?php echo $installment->getDuration(); ?></td>
            </tr>
            <tr>
                <th><?php echo trans('installments.rate'); ?></th>
                <td><?php echo $installment->rate; ?>%</td>
                <th><?php echo trans('installments.principal'); ?></th>
                <td><?php echo money($installment->getMonthlyPriciple()); ?></td>
            </tr>
            <tr>
                <th><?php echo trans('installments.total_pay'); ?></th>
                <td><?php echo money($installment->getFutureValue()); ?></td>
                <th><?php echo trans('installments.pay_of_day'); ?></th>
                <td><?php echo get_day_week($payOffDay->payment_date); ?> <?php echo $payOffDay->displayDate(); ?></td>
            </tr>
            <?php if($installment->status == "completed"): ?>
            <tr>
                <th><?php echo trans('installments.total_paid_all'); ?></th>
                <td><?php echo money($installment->paid_off_amount); ?></td>
                <th><?php echo trans('installments.date_paid_all'); ?></th>
                <td><?php echo get_day_week($installment->paid_off_date); ?> <?php echo format_date_installment($installment->paid_off_date); ?></td>
            </tr>
            <?php endif; ?>
        </table>
        <table class="table table-striped table-bordered visible-xs">
            <tr>
                <th style="width: 25%;"><?php echo trans('installments.product_name'); ?></th>
                <td  style="width: 25%;"><?php echo $installment->product_name; ?></td>
            </tr>
            <tr>
                <th style="width: 25%;"><?php echo trans('installments.total_price'); ?></th>
                <td style="width: 25%;"><?php echo money($installment->getTotalPrice()); ?></td>
            </tr>
            <tr>
                <th style="width: 25%;"><?php echo trans('installments.model'); ?></th>
                <td  style="width: 25%;"><?php echo $installment->model; ?></td>
            </tr>
            <tr>
                <th style="width: 25%;"><?php echo trans('installments.imie'); ?></th>
                <td style="width: 25%;"><?php echo $installment->imie; ?></td>
            </tr>
            <tr>
                <th><?php echo trans('installments.deposit'); ?></th>
                <td><?php echo money($installment->getDeposit()); ?></td>
            </tr>
            <tr>
                <th><?php echo trans('installments.duration'); ?></th>
                <td><?php echo $installment->getDuration(); ?></td>
            </tr>
            <tr>
                <th><?php echo trans('installments.rate'); ?></th>
                <td><?php echo $installment->rate; ?>%</td>
            </tr>
            <tr>
                <th><?php echo trans('installments.principal'); ?></th>
                <td><?php echo money($installment->getMonthlyPriciple()); ?></td>
            </tr>
            <tr>
                <th><?php echo trans('installments.total_pay'); ?></th>
                <td><?php echo money($installment->getFutureValue()); ?></td>
            </tr>
            <tr>
                <th><?php echo trans('installments.pay_of_day'); ?></th>
                <td><?php echo get_day_week($payOffDay->payment_date); ?> <?php echo $payOffDay->displayDate(); ?></td>
            </tr>
            <?php if($installment->status == "completed"): ?>
            <tr>
                <th><?php echo trans('installments.total_paid_all'); ?></th>
                <td><?php echo money($installment->paid_off_amount); ?></td>
            </tr>
            <tr>
                <th><?php echo trans('installments.date_paid_all'); ?></th>
                <td><?php echo get_day_week($installment->paid_off_date); ?> <?php echo format_date_installment($installment->paid_off_date); ?></td>
            </tr>
            <?php endif; ?>
        </table>
    </div>
</div>