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

Order Details


Go Back

Order No. ({{ $order->order_no }})

{{-- order Status --}}
Order Date
{{ \Carbon\Carbon::parse($order->created_at)->format('d M, Y') }}
Order Status
{{ (!empty($order->status)) ? (($order->status == 1) ? 'Onging' : (($order->status == 2) ? 'Completed' : (($order->status == 3) ? 'Cancelled' : 'NA'))) : 'NA' }}
Deliveried On
{{ (!empty($order->deliveried_on)) ? \Carbon\Carbon::parse($order->deliveried_on)->format('d M, Y') : 'NA' }}

Retailer Details

Retailer
@if ($order->retailer?->image == null)
{{ $order->retailer?->company_name }}
@else
{{ $order->retailer?->company_nam }}
@endif
{{ $order->retailer?->company_name }}
Email
{{ $order->retailer?->email ?? 'NA' }}
Phone
{{ $order->retailer?->phone }}

Order Placed

@if (!empty($time_arr['order_placed'])) {{ \Carbon\Carbon::parse($time_arr['order_placed'])->format('d M, Y') }} @endif
{{--

Processing

@if (!empty($time_arr['on_process'])) {{ \Carbon\Carbon::parse($time_arr['on_process'])->format('d M, Y') }} @endif

Out For Delivery

@if (!empty($time_arr['out_for_delivery'])) {{ \Carbon\Carbon::parse($time_arr['out_for_delivery'])->format('d M, Y') }} @endif
--}} @if (in_array('invoiced',$status_arr))

Invoiced
@if ($order->deliveried_on) {{ (!empty($order->deliveried_on)) ? \Carbon\Carbon::parse($order->deliveried_on)->format('d M, Y') : 'NA' }} @endif

@elseif (in_array('cancelled',$status_arr))

Cancelled
@if (!empty($time_arr['cancelled'])) {{ \Carbon\Carbon::parse($time_arr['cancelled'])->format('d M, Y') }} @endif

@else


@endif

Retailer Address

{{ $order->retailer?->address?->address ?? ' - ' }},
{{ $order->retailer?->address?->pin_code ?? ' - ' }},
INDIA.

Order {{ $order->order_no }}

@if (auth()->user()->hasRole('admin')) @endif @if (($order->payment_type != 'Credit Balence') && ($order->status != 2)) @endif @foreach ($orderDetails as $details) @if (auth()->user()->hasRole('admin')) @endif @if (($order->payment_type != 'Credit Balence') && ($order->status != 2)) @endif @endforeach
ProductDealerType Company Origin Per Unit Price Quantity (Unit) GST TotalAction
{{ $details->dealer?->company_name }} {{ $details->dealer?->email ?? '-' }}
{{ $details->product?->type ?? ' - ' }} {{ $details->product?->company ?? ' - ' }} {{ $details->product?->origin_country ?? ' - ' }} ₹ {{ $details->price ?? ' - ' }} {{ $details->quantity ?? ' - ' }} ₹ {{ $details->gst ?? ' - ' }} ₹ {{ (($details->price) + ($details->gst)) ?? ' - ' }}
Credit Used ₹ {{ $order->points ?? ' 0.00 ' }}
Grand Total ₹ {{ $order->total_price ?? ' - ' }}
@endsection @push('script') @endpush