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

Order Detail

@if(Session::has('success'))
× {!!Session::get('success')!!}
@endif @if(Session::has('error'))
× {!!Session::get('error')!!}
@endif
Client Name {{ (isset($order->clientUser)) ? $order->clientUser->fname." ".$order->clientUser->lname : '----'}}
Merchant Name {{ (isset($order->merchantUser)) ? $order->merchantUser->fname." ".$order->merchantUser->lname : '----'}}
Order Status {{ (isset($order->order_status)) ? Config('constants.order_status.'.$order->order_status) : '----'}}
Tax Amount {{ (isset($order->tax_amount)) ? $order->tax_amount : '----'}}
Total Amount {{ (isset($order->total_amount)) ? $order->total_amount : '----'}}
Contact# {{ (isset($order->contact)) ? $order->contact : '----'}}
Reviews {{ (isset($order->avgFeedback)) ? round($order->avgFeedback->average_rating ,2) : '----'}}

Delivery Address

Receiver Name {{ (isset($order->name)) ? $order->name : '----'}}
Address {{ (isset($order->address)) ? $order->address : '----'}}
City {{ (isset($order->city)) ? $order->city : '----'}}
Country {{ (isset($order->country)) ? $order->country : '----'}}

Products

Products Name Product Quantity Unit Price Total Price
{{ $orderProducts->links() }}
@endsection