@extends('layouts.backend') @section('extraCss') @endsection @section('mainContentArea')

Order Edit

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

'; } @endphp
@csrf

#{{ $orders->order_id }}

{{ date('d-m-Y', strtotime($orders->date_added)) }}


@php if(isset($orders->transactionInfo->description)) { $transaction = json_decode($orders->transactionInfo->description); if(!empty($transaction && ($transaction->payment_mode))) { echo $transaction->payment_mode; } } @endphp

@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

{{ $orders->shipping_method }}

Tracking Information:

@php if(!empty($orders->orderShipmentInfo)) { echo '


'.$orders->orderShipmentInfo->tracking_number.' - Track

'; echo '


'.date('d-m-Y h:i:s a', strtotime($orders->orderShipmentInfo->date_added)).'

'; echo '


'.$orders->orderShipmentInfo->shipment_notes; } else { echo '


'; echo '


'; echo '


'; } @endphp

Customer Name:
{{ $orders->customerInfo->firstname.' '.$orders->customerInfo->lastname }}

Email:
{{ $orders->customerInfo->email }}

Phone:
{{ $orders->customerInfo->telephone }}


Shipping Address:

{{ $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 }}


Order Items:
@if($orders->orderProducts->count() > 0) @foreach($orders->orderProducts as $p) @endforeach @endif
Image Product Model Size Quantity Amount
{{ $p->name }} {{ $p->model }} {{ $p->size }} {{ $p->quantity }} ₹{{ number_format($p->price, 2) }}
Total ₹{{ number_format($orders->total, 2) }}
@endsection @section('extraJs') @endsection