@extends('frontend.master.master') @section('computer') @endsection @section('content')
@php $total_order_price=0; $sum_quantity=0; $sum_total=0; $sum_price=0; @endphp @foreach ($orders_details as $sl => $order) @php $order_prices = $order->price * $order->quantity; $total_order_price += $order_prices; $sum_quantity += $order->quantity; // $order_coupons = $order_prices - $order->coupon_price; @endphp @endforeach
no. Order id Product Quantity Price Total Date Status
{{ $sl+1 }} {{ $order->order_id }} {{ $order->rel_to_product->product_name }}{{ $order->quantity }}x {{ $order->price }}Tk {{ $total_order_price }}x {{ $order->created_at->format('d-M-Y') }} @if ($order->status == 0) Pending @elseif ($order->status == 1) Confirm @elseif ($order->status == 2) Packaging @elseif ($order->status == 3) Shipping @else Delivered @endif

Sub Total : {{ number_format($total_order_price) }} Tk

Delevary Charge : + {{ number_format($orderproducts->first()->charge) }} Tk

Discount : - {{ number_format($orderproducts->first()->coupon_price) }} Tk


@php $coupons = $total_order_price-$orderproducts->first()->coupon_price; $total = $coupons+$orderproducts->first()->charge; @endphp

Total : {{ number_format($total) }} Tk

GO SHOP
@endsection