@extends('frontend.layouts.master') @section('content') @include('frontend.layouts.navbar')

{{Auth::guard('guest')->user()->first_name}} {{Auth::guard('guest')->user()->last_name}}
{{Auth::guard('guest')->user()->mobile}}
@component('components.guest_sidebar') @endcomponent
  Orders

@php $subtotal = 0; $shipping = 0; $cuppon = 0; $totalAmount = 0; @endphp @if($cart) @foreach ($cart as $c) @php $subtotal = $subtotal+($c->price * $c->qty); @endphp @endforeach @endif @foreach($orders as $s) @php $shipping = $shipping + $s->shipping_cost; @endphp @endforeach @foreach($orders as $s) @php $cuppon = $cuppon + $s->cuppon_amount; @endphp @endforeach @php $totalAmount = $subtotal + $shipping; $totalAmount = $totalAmount - $cuppon; @endphp {{-- @if($orders->status == 0) @endif @if($orders->status == 1) @endif @if($orders->status == 2) @endif @if($orders->status == 3) @endif @if($orders->status == 4) @endif --}}
Product Size/Color Quantity Total price
{{$c->product_name_en}} {{$c->size_name_en}}
{{$c->color_name_en}}
{{$c->qty}} {{$c->price * $c->qty}} /-
Shipping Costs + {{$shipping}} /-
Cuppon Amount - {{$cuppon}} /-
Total Amount{{$totalAmount}} /-
Order StatusPendingProcessingIn DeliveryCompletedCanceled
@endsection