@extends('frontend.layouts.app') @section('content')
payment_details) class="col-8" @else class="col-12" @endif>

{{translate("Ordar Details")}}

@php $subTotal = 0; $originalPrice = 0; $discount = 0; $tax = 0; $totalAmount = 0; @endphp
@forelse($orderDetails as $orderDetail) @if($orderDetail->product) @php $originalPrice += $orderDetail->original_price; $tax += $orderDetail->total_taxes; $discount += $orderDetail->discount; $totalAmount += $orderDetail->total_price; @endphp @endif @empty @endforelse
{{translate("Product")}} {{translate("Qty")}} {{translate("Varient")}} {{translate("Original Price")}} {{translate("Tax amount")}} {{translate("Discount")}} {{translate("Total Price")}} {{translate('Status')}}
{{$orderDetail->product->name}}

@php $product = $orderDetail->product; $slug = $product->slug ? $product->slug : make_slug($product->name); @endphp {{$orderDetail->product->name}}

@php echo show_ratings($orderDetail->product->review->avg('ratings')) @endphp
{{$orderDetail->quantity}} {{$orderDetail->attribute}} {{short_amount($orderDetail->original_price)}} {{short_amount($orderDetail->total_taxes)}} {{short_amount($orderDetail->discount)}} {{short_amount($orderDetail->total_price)}} @php echo order_status_badge($orderDetail->status) @endphp
{{translate('No Data Found')}}
  • {{translate("Sub Total")}}: {{short_amount($originalPrice)}}
  • {{translate("All Taxes")}}: {{short_amount($tax)}}
  • {{translate("Total Discount")}}: {{short_amount($order->discount)}}
  • {{translate("Shpping charge")}}: {{short_amount($order->shipping_charge)}}
  • {{translate("Total")}} :
    {{short_amount($order->amount )}}
  • @if($order->payment_details)

    {{translate("Custom Payment details ")}}

      @foreach ($order->payment_details as $key => $value )
    • {{k2t($key)}} : {{$value}}
    • @endforeach
    @endif
    @endsection