"Store Name"
Description
Address
Address 2
Phone Number

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

@if (count($promotionSaleDetails) != 0) @foreach ($promotionSaleDetails as $promotionSaleDetail) @php if ($promotionSaleDetail['is_foc'] == 0) { $totalPromotionAmount += $promotionSaleDetail['promotion_price'] * $promotionSaleDetail['quantity']; } $totalPromotionQty += $promotionSaleDetail['quantity']; @endphp @endforeach
{{ $promotionSaleDetail['item_name'] }} {{ number_format($promotionSaleDetail['promotion_price']) }} {{ $promotionSaleDetail['quantity'] }} @if ($promotionSaleDetail['is_foc'] == 1) 0 @elseif($promotionSaleDetail['is_foc'] == 0) {{ number_format($promotionSaleDetail['promotion_price'] * $promotionSaleDetail['quantity']) }} @endif
@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; $totalAmount = $totalSaleAmount + $totalPromotionAmount; $netAmount = $totalAmount - $sale['tax_amount'] + $sale['service_charges_amount'] - $totalDiscount; $paidAmount = $sale['online_paid'] + $sale['paid_amount']; @endphp


Thank You