@extends('frontend.layouts.master') @section('content') @include('frontend.layouts.navbar')
| Product | Size/Color | Quantity | Total price | ||||
|---|---|---|---|---|---|---|---|
| {{$c->product_name_en}} | {{$c->size_name_en}} {{$c->color_name_en}} |
{{$c->qty}} | {{$c->price * $c->qty}} /- | @php $subtotal = $subtotal+($c->price * $c->qty); @endphp||||
| Shipping Costs | @foreach($orders as $s) @php $shipping = $shipping + $s->shipping_cost; @endphp @endforeach+ {{$shipping}} /- | ||||||
| Cuppon Amount | @foreach($orders as $s) @php $cuppon = $cuppon + $s->cuppon_amount; @endphp @endforeach- {{$cuppon}} /- | ||||||
| Total Amount | @php $totalAmount = $subtotal + $shipping; $totalAmount = $totalAmount - $cuppon; @endphp{{$totalAmount}} /- | ||||||
| Order Status | @if($orders->status == 0)Pending | @endif @if($orders->status == 1)Processing | @endif @if($orders->status == 2)In Delivery | @endif @if($orders->status == 3)Completed | @endif @if($orders->status == 4)Canceled | @endif||