{{@$orders[0]->shop->nama}}
{{@$orders[0]->hotel->nama}}
{{@$orders[0]->hotel->alamat}}
{{-- {{date('d F y H:i')}} --}}
Pelanggan : {{$orders[0]->nama ?? 'default user'}} {{-- A.N.Kasir POS ABC --}}
Menu Total
@php $sub_total = 0; @endphp @foreach ($orders as $order) @php $sub_total += $order->total_biaya; @endphp {{-- --}} @endforeach
{{substr( $order->menu_id ? @$order->menu->nama : $order->keterangan_custom , 0, 12)}}.
{{$order->jumlah}} x {{@$order->menu->nama ? number_format(@$order->menu->harga, 0, "," , ".") : number_format($order->total_biaya, 0, "," , ".")}}{{number_format($order->menu_id ? $order->menu->harga : $order->total_biaya, 0, "," , ".")}}{{number_format($order->total_biaya, 0, ",", ".")}}
---------- {{date('d.m.y H:i:s')}} ----------
{{-- PEMBATAS FOREACH --}} @if ($orders[0]->card_number != null) @php if ($orders[0]->total_payment_pos == '0') { $sub_total = 0; } $r_number = $orders[0]->card_number; $i_number = substr_replace($r_number,"xxxxx",5,5); $f_number = implode('-', str_split($i_number,4)); // 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; @endphp @if ($orders[0]->shop->ppn != null) @endif
Sub Total : {{number_format($sub_total, 0, ",", ".")}}
Tax : {{number_format($tax, 0, ",", ".")}}
Service : {{number_format($service, 0, ",", ".")}}
Grand Total : {{number_format($grand_total, 0, ",", ".")}}

({{$orders[0]->bank}}) - No. {{ $f_number }} @else {{--
--}} @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 @if ($orders[0]->shop->ppn != null) @endif {{-- dummy space --}}
Sub Total : {{number_format($sub_total, 0, ",", ".")}}
Tax : {{number_format($tax, 0, ",", ".")}}
Service : {{number_format($service, 0, ",", ".")}}
 
Grand Total : {{number_format($grand_total, 0, ",", ".")}}
Cash : {{number_format($orders[0]->total_payment_pos, 0, ",", ".")}}
Kembalian : {{number_format(str_replace('-','',$refund), 0, ",", ".")}}
@endif
Terima Kasih
Silahkan Datang Kembali