Sub Total |
: |
{{number_format($sub_total, 0, ",", ".")}} |
@if ($orders[0]->shop->ppn != null)
Tax |
: |
{{number_format($tax, 0, ",", ".")}} |
@endif
Service |
: |
{{number_format($service, 0, ",", ".")}} |
Grand Total |
: |
{{number_format($grand_total, 0, ",", ".")}} |
@php
if ($orders[0]->total_payment_pos == '0') {
$sub_total = 0;
}
// defining
$ppn = @$orders[0]->shop->ppn;
$services = @$orders[0]->shop->services;
// operating
$tax = ( $sub_total * $ppn/100);
$service = ( $sub_total * $services/100);
$grand_total = $sub_total + $tax + $service;
// sub total
$refund = 0;
$refund += $grand_total - $orders[0]->total_payment_pos;
@endphp
Sub Total |
: |
{{number_format($sub_total, 0, ",", ".")}} |
@if ($orders[0]->shop->ppn != null)
Tax |
: |
{{number_format($tax, 0, ",", ".")}} |
@endif
Service |
: |
{{number_format($service, 0, ",", ".")}} |
{{-- dummy space --}}
|
Grand Total |
: |
{{number_format($grand_total, 0, ",", ".")}} |
Cash |
: |
{{number_format($orders[0]->total_payment_pos, 0, ",", ".")}} |
Kembalian |
: |
{{number_format(str_replace('-','',$refund), 0, ",", ".")}} |
@endif