@extends('layouts.backend') @section('extraCss') @endsection @section('mainContentArea')
@php if($orders->order_status_id!=7 || $orders->order_status_id!=7) { echo ''; } @endphp

Order Details

@php if($orders->order_status_id==7) { echo '

'; } @endphp
Order ID:
#{{ $orders->order_id }}
Order Status:
{{ $status[$orders->order_status_id] }}
Payment Mode:
@php if(isset($orders->transactionInfo->description)) { $transaction = json_decode($orders->transactionInfo->description); if(!empty($transaction && ($transaction->payment_mode))) { echo $transaction->payment_mode; } } @endphp
Payment Status:
@php if(isset($orders->transactionInfo->description)) { $transaction = json_decode($orders->transactionInfo->description); if(!empty($transaction && ($transaction->payment_status==1))) { echo 'Paid'; } if(!empty($transaction && ($transaction->payment_status==0))) { echo 'Failed'; } if(!empty($transaction && ($transaction->payment_status==2))) { echo 'Pending'; } } @endphp
@php if($orders->order_status_id==7) { echo '
Order Placed
Cancelled
'; } else { $styles = 'width: 2%;'; if($orders->order_status_id==2) $styles = 'width: 34%;'; if($orders->order_status_id==3) $styles = 'width: 68%;'; if($orders->order_status_id==5) $styles = 'width: 100%;'; echo '
Order Placed
Processing
Shipped
Delivered
'; } @endphp
Customer Name:
{{ $orders->customerInfo->firstname.' '.$orders->customerInfo->lastname }}
Email:
{{ $orders->customerInfo->email }}
Phone:
{{ $orders->customerInfo->telephone }}
Billing Info
{{ $orders->payment_firstname.' '.$orders->payment_lastname }}
{{ $orders->payment_address_1.', '.$orders->payment_address_2 }}
{{ $orders->payment_city.' - '.$orders->payment_postcode }}
{{ $orders->payment_zone.', '.$orders->payment_country }}
Shipping Info
{{ $orders->shipping_firstname.' '.$orders->shipping_lastname }}
{{ $orders->shipping_address_1.', '.$orders->shipping_address_2 }}
{{ $orders->shipping_city.' - '.$orders->shipping_postcode }}
{{ $orders->shipping_zone.', '.$orders->shipping_country }}
Shipping Info
@php if(!empty($orders->orderShipmentInfo)) { echo 'Tracking #: '.$orders->orderShipmentInfo->tracking_number.' - Track
'; echo 'Date: '.date('d-m-Y h:i:s a', strtotime($orders->orderShipmentInfo->date_added)); } else { echo 'Preparing for dispatch'; } @endphp
@if($orders->orderProducts->count() > 0) @foreach($orders->orderProducts as $p) @endforeach @endif
Image Product Model Size Quantity Discount Price Amount
{{ $p->name }} {{ $p->model }} {{ $p->size }} {{ $p->quantity }} ₹{{ number_format($p->discount_price, 2) }} ₹{{ number_format($p->price, 2) }}
Grand Total ₹{{ number_format($orders->g_total, 2) }}
Shipping ₹{{ number_format($orders->shipping_price, 2) }}
Total ₹{{ number_format($orders->total, 2) }}
@endsection @section('extraJs') @endsection