<table class="table table-striped table-bordered">
    <tr>
        <th style="width: 25%;">{{ trans('installments.type_of_product') }}</th>
        <td  style="width: 25%;">{{ $installment->type_of_product }}</td>
         <th style="width: 25%;">{{ trans('installments.product_name') }}</th>
        <td  style="width: 25%;">{{ $installment->product_name }}</td>
    </tr>
    <tr>
        <th style="width: 25%;">{{ trans('installments.model') }}</th>
        <td  style="width: 25%;">{{ $installment->model }}</td>
        <th style="width: 25%;">{{ trans('installments.imie')}}</th>
        <td style="width: 25%;">{{ $installment->imie }}</td>
    </tr>
    <tr>
        <th style="width: 25%;">{{ trans('installments.price') }}</th>
        <td  style="width: 25%;">{{ money($installment->getTotalPrice()) }}</td>
        <th style="width: 25%;">{{ trans('installments.deposit') }}</th>
        <td style="width: 25%;">{{ money($installment->getDeposit()) }}</td>
    </tr>
    <tr>
        <th>{{ trans('installments.note') }}</th>
        <td colspan="3">{{ $installment->note }}</td>
    </tr>
</table>
<table class="table table-bordered table-striped hidden-xs">
    <tr>
        <th>{{ trans('installments.total_principle') }}</th>
        <td>{{ money($installment->getPriciple()) }}</td>
        <th>{{ trans("payments.interest") }}</th>
        <td>{{ $installment->rate }} %</td>
        <th>{{ trans('payments.flat_rate') }}</th>
        <td>{{ sprintf("%01.2f",$installment->flatRate()) }} %</td>
    </tr>
    <tr>
        <th>{{ trans('installments.duration') }}</th>
        <td>{{ $installment->getDuration() }}</td>
        <th>{{ trans("payments.first_month") }}</th>
        <td>{{ money($installment->firstMonth()) }}</td>
        <th>{{ trans("payments.monthly") }}</th>
        <td>{{ money($installment->emiPayment()) }}</td>
    </tr>
    <tr>
        <th>{{ trans("payments.total_payment") }}</th>
        <td>{{ money($installment->getTotalPayment()) }}</td>
        <th>{{ trans("payments.total_interest") }}</th>
        <td colspan="3">{{ money($installment->getEMITotalRate()) }}</td>
    </tr>
</table>
<table class="table table-bordered table-striped visible-xs">
    <tr>
        <th>{{ trans('installments.total_principle') }}</th>
        <td>{{ money($installment->getPriciple()) }}</td>
    </tr>
    <tr>
        <th>{{ trans("payments.interest") }}</th>
        <td>{{ $installment->rate }} %</td>
    </tr>
    <tr>
        <th>{{ trans('payments.flat_rate') }}</th>
        <td>{{ sprintf("%01.2f",$installment->flatRate()) }} %</td>
    </tr>
    <tr>
        <th>{{ trans('installments.duration') }}</th>
        <td>{{ $installment->getDuration() }}</td>
    </tr>
    <tr>
        <th>{{ trans("payments.first_month") }}</th>
        <td>{{ money($installment->firstMonth()) }}</td>
    </td>
    <tr>
        <th>{{ trans("payments.monthly") }}</th>
        <td>{{ money($installment->emiPayment()) }}</td>
    </tr>
    <tr>
        <th>{{ trans("payments.total_payment") }}</th>
        <td>{{ money($installment->getTotalPayment()) }}</td>
    </tr>
    <tr>
        <th>{{ trans("payments.total_interest") }}</th>
        <td>{{ money($installment->getEMITotalRate()) }}</td>
    </tr>
</table>