"Store Name"
Description
Address
Address 2
Phone Number

@if (count($saleDetails) != 0) @php $totalAmount = 0; $totalQty = 0; @endphp @foreach ($saleDetails as $saleDetail) @php if ($saleDetail['is_foc'] == 0) { $totalAmount += $saleDetail['item_price'] * $saleDetail['quantity']; } $totalQty += $saleDetail['quantity']; @endphp @endforeach @endif
Name Qty Price Amount
{{ $saleDetail['item_name'] }} {{ $saleDetail['quantity'] }} {{ number_format($saleDetail['item_price']) }} @if ($saleDetail['is_foc'] == 1) 0 @elseif($saleDetail['is_foc'] == 0) {{ number_format($saleDetail['item_price'] * $saleDetail['quantity']) }} @endif

@php $voucher_discount_amount = 0; $member_card_amount = 0; $coupon_card_amount = 0; $totalDiscount = 0; $netAmount = 0; if ($sale['voucher_discount_amount'] == null) { $voucher_discount_amount = 0; } else { $voucher_discount_amount = $sale['voucher_discount_amount']; } if ($sale['member_card_amount'] == null) { $member_card_amount = 0; } else { $member_card_amount = $sale['member_card_amount']; } if ($sale['coupon_card_amount'] == null) { $coupon_card_amount = 0; } else { $coupon_card_amount = $sale['coupon_card_amount']; } $totalDiscount = $voucher_discount_amount + $member_card_amount + $coupon_card_amount; $netAmount = $totalAmount + $sale['tax_amount'] + $sale['service_charges_amount'] - $totalDiscount; $paidAmount = $sale['online_paid'] + $sale['paid_amount']; @endphp


Thank You