@extends('layouts.frontend.app') @section('style') @endsection @section('content')
@include('layouts.frontend.header')
{{--
--}} {{--
--}} {{-- @if($order->payment_slip!==null)--}} {{-- --}} {{-- @else--}} {{--

Cash On Delivery

--}} {{-- @endif--}} {{--
--}} {{--
--}} {{--

Date : {{ $order->created_at->format('d M Y') }}

--}} {{--

Order Status : @if($order->status == '0')--}} {{-- Pending--}} {{-- @elseif($order->status == '1')--}} {{-- Confirmed--}} {{-- @elseif($order->status == '2')--}} {{-- Complete--}} {{-- @elseif($order->status == '3')--}} {{-- Rejected--}} {{-- @else--}} {{-- Refund--}} {{-- @endif--}} {{--

--}} {{--
--}} {{--
--}} @forelse($orders as $key=>$product) @php $p=\App\Models\Product::pluck('id') @endphp @if($p->contains($product->product_id)) @else @endif @empty @endforelse
Product Photo Quantity Size Price Discount Price Discount
{{\App\Models\Product::findOrFail($product->product_id)->name}} {{ $product->quantity }} {{$product->product_size}} {{ number_format( $product->product_price) }} {{ number_format($product->discount_price) }} {{ $product->discount_percent}} %
{{ number_format($product->discount_price) }} mmk
- - {{ $product->quantity }} {{ $product->product_price}} {{ $product->sub_price }} {{ $product->created_at->format('Y-m-d') }} @if(\App\Models\Order::find($product->order_id)->status == '0') Pending @elseif(\App\Models\Order::find($product->order_id)->status == '1') Confirmed @elseif(\App\Models\Order::find($product->order_id)->status == '2') Complete @elseif(\App\Models\Order::find($product->order_id)->status == '3') Rejected @else Refund @endif
Total : {{ number_format($total) }} MMK
Delivery Fees : {{ number_format(\App\Models\Township::find($order->township_id)->fees) }} MMK
Grand Total : {{ number_format($total+\App\Models\Township::find($order->township_id)->fees) }} MMK
@include('layouts.frontend.footer')
@include('partials.mobile-menu') @include('partials.login_modal') @endsection @section('script') @endsection