@extends('layouts.dashboard') @section('content')

Orders details

Status: @if ($orders_details->first()->status==0)
Pending
@elseif ($orders_details->first()->status==1)
Confirm
@elseif ($orders_details->first()->status==2)
Packaging
@elseif ($orders_details->first()->status==3)
Shipping
@else
Delivered
@endif

Date
{{ $orders_details->first()->created_at }}
@php $items= 0; $items += $orders_details->first()->quantity; @endphp
Order Id
{{ $orders_details->first()->order_id }}
Charge
@if ($orderproducts->first()->charge == Null) N/A @else {{ $orderproducts->first()->charge }} @endif

Shipping Info
Name
{{ $billingdetails->first()->name }}
Phone
{{ $billingdetails->first()->mobile }}
Address
{{ $billingdetails->first()->address }}

Items
@php $items = 0; $prices = 0; @endphp @foreach ($orders_details as $products) @if ($products->rel_to_product != null) @php $items += $products->quantity; $prices += $total_prices; @endphp @endif @endforeach {{-- --}} @php $coupons = $prices-$orderproducts->first()->coupon_price; $charges = $coupons+$orderproducts->first()->charge; @endphp
{{ $products->rel_to_product->product_name }} Color: @if($products->color_id != null) @endif   Size: @if ($products->size_id != null) {{ $products->rel_to_size->size_name }} @endif   {{-- Ships from: China --}}
x{{ $products->quantity }} @php $product_price = $products->quantity*$products->price; $order_coupons = $product_price-$products->coupon_price; $total_prices = $order_coupons+$products->charge; @endphp ৳{{ $total_prices }}
Sub Total: x{{ $items }} ৳{{ $prices }}
Coupon: - ৳{{ $orderproducts->first()->coupon_price }}
Charge: + ৳{{ $orderproducts->first()->charge }}
Total: = ৳{{ $charges }}
@endsection