{{$shop->nama}}
{{@$shop->hotel->nama}}
{{@$shop->hotel->alamat}}
Pelanggan : {{ $carts->nama_pelanggan ?? 'default user'}}
Menu Total
{{-- @php dd($orders['check']); @endphp --}} @php $sub_total_review=0; @endphp @foreach ($orders['check'] as $key => $dummy) @php $sub_total_review+= $orders['price'][$key]; @endphp @endforeach
{{ $orders['description'][$key] }}.
{{ $orders['qty'][$key] }} {{ $orders['price_piece'][$key] ? 'x '.number_format($orders['price_piece'][$key], 0, ",", ".") : '' }} {{ number_format($orders['price'][$key], 0, ",", ".")}}
---------- {{date('d.m.y H:i:s')}} ----------
@php // defining $ppn = $shop->ppn; $services = $shop->services; // dd($orders['tipe'], $orders['discount']); $discounts = $sub_total_review*$orders['discount']/100; $disc_charge = ($sub_total_review) - ($orders['tipe'] == 1 ? $discounts : $orders['discount']); // operating $service_review = ( $disc_charge * $services/100); $tax_review = ( ($disc_charge + $service_review ) * $ppn/100); $grand_total_review = $disc_charge + $tax_review + $service_review; @endphp @if ($orders['tipe'] && $orders['discount']) @endif {{-- dummy space --}}
Sub Total : {{number_format($sub_total_review, 0, ",", ".")}}
Discount : - {{number_format(($orders['tipe'] == 1 ? $discounts : $orders['discount'] ), 0, ",", ".")}}
 
Total : {{number_format($disc_charge, 0, ",", ".")}}
Service : {{number_format($service_review, 0, ",", ".")}}
Tax : {{number_format($tax_review, 0, ",", ".")}}
 
Grand Total : {{number_format($grand_total_review, 0, ",", ".")}}
Thank You
Please Come Again