Transaction Date: {{$data['shipment_details']->time}}

Customer: {{$data['shipment_details']->given_name}}
Contact: {{$data['shipment_details']->phone}}
Email: {{$data['shipment_details']->email}}

Payment Method: {{$data['shipment_details']->tender_type}}
Reference No: {{$data['shipment_details']->payment_ref}}

Discount Code(s)
@foreach($data['shipment_details']->coupon_code as $discount_code) {{$discount_code ? : 'N/A'}}
@endforeach
Shipping fee(s)
@php $sum_ship = 0; @endphp @forelse($data['shipment_details']->shipping_fee_breakdown as $shipping_fee) {{$shipping_fee->description}} {{ number_format($shipping_fee->amount)}}
@php $sum_ship += $shipping_fee->amount; @endphp @empty N/A
@endforelse

{{-- --}} {{-- --}} @php $sum_total = 0; $sum_discount = 0; @endphp @foreach($data['table_line'] as $key => $line_item) {{-- --}} {{-- --}} {{--remove 11-17-22--}} {{-- --}} @php $sum_total+=$line_item['order_amount']; @endphp @endforeach {{----}}
ItemsProduct IDQty Total Unit PriceDiscount BreakdownDiscount Amount Total
{{--Wordpress Template--}} {{$line_item['erp_material']}}

{{$line_item['item_name']}}

{{$line_item->erp_material}}{{$line_item['quantity']}} ₱ {{number_format($line_item['unit_price'],2)}}₱ {{number_format($line_item->dscnt_amt,2)}}
@forelse($line_item['discount_breakdown'] as $discountBreakdown) @php $sum_discount+=$discountBreakdown['discount_amount']; @endphp @empty @endforelse
{{$discountBreakdown['coupon_code']}}  :  ₱ {{number_format($discountBreakdown['discount_amount'],2)}}
N/A
₱ {{number_format($line_item['dscnt_amt'],2)}} ₱ {{number_format($line_item['order_amount'],2)}}
      

Sub Total
Shipping & Handling
Grand Total

₱ {{number_format($sum_total,2)}}
₱ {{number_format($sum_ship,2)}}