@php $payment = $order->payment_id; @endphp @if ($payment == 1)

Success

Your Order (#{{ $order->id }}) is successful !

Thanks !

@elseif($payment == 2)

Online Payment

Please Proceed to Online payment
Thanks !
@csrf @foreach ($order->orderProducts as $orderProduct) @endforeach @foreach ($orderProduct->orderOptions as $orderOption) @if ($orderOption->name == 'Color') @endif @endforeach
@elseif($payment == 3)

Online Payment

Please Proceed to Online Payment
Thanks !
@csrf @foreach ($order->orderProducts as $orderProduct) @endforeach @foreach ($orderProduct->orderOptions as $orderOption) @if ($orderOption->name == 'Color') @endif @endforeach
@elseif ($payment == 4)

Online Payment

Please Proceed to KBZPay
Thanks !
KBZPay with QR Code @elseif ($payment == 5)

Online Payment

Please Proceed to Wave Pay
Thanks !
Wave Pay with QR Code @endif
Customer Information

Email : {{ session()->has('order_email') ? session('order_email') : Auth::guard('customer')->user()['email'] }}

User Name :{{ session()->has('customer_first_name') ? session('customer_first_name') : Auth::guard('customer')->user()['first_name'] }} {{ session()->has('customer_last_name') ? session('customer_last_name') : Auth::guard('customer')->user()['last_name'] }}

Phone No :{{ session()->has('order_phone') ? session('order_phone') : Auth::guard('customer')->user()['phone_no'] }}

@php $base_price = 0; $fee = 0; @endphp
Order Summary
@foreach ($order->orderProducts as $orderProduct)
@foreach ($orderProduct->product->product_images as $product_image) @php $product_image = $product_image->feature_image; @endphp @endforeach
@if ($orderProduct->order_note != null) {{ $orderProduct->product->name_en??'' }}
({{ $orderProduct->order_note }}) @else {{ $orderProduct->product->name_en??'' }} @endif
@foreach ($orderProduct->orderOptions as $orderOption) @if ($orderOption->name == 'Color') {{-- {{ $orderOption->color_name ? $orderOption->color_name : $orderOption->value }} --}} {{ $orderOption->color_name }} @endif @endforeach
{{ number_format($orderProduct->price) }} MMK
@endforeach
Base Price
@foreach ($order->orderProducts as $orderProduct) @php $base_price += $orderProduct->price * $orderProduct->quantity; @endphp @endforeach
{{ number_format($base_price) . ' MMK' ?? '' }}
Promotion
@php $promotion_price = 0; @endphp {{-- @foreach ($order->orderProducts as $orderProduct) --}} {{-- @endforeach --}}
{{ number_format($promotion_price) . ' MMK' ?? '' }}
Discount
@php $discount_price = 0; @endphp @foreach ($order->orderProducts as $orderProduct) @endforeach
{{ number_format($discount_price) . ' MMK' ?? '' }}
Delivery Fee
{{ number_format($order->delivery->fee) . ' MMK' ?? '' }}
Trade-in Fee
{{ number_format($order->trade_in_price) . ' MMK' ?? '' }}
@php $total = 0; $total = $order->delivery->fee + $base_price; @endphp
Total
{{ number_format($order->grand_total) . ' MMK' ?? '' }}