@extends('seller.layouts.app') @section('panel_content')

{{ translate('Order Details') }}

@php $delivery_status = $order->delivery_status; $payment_status = $order->orderDetails->where('seller_id', Auth::user()->id)->first()->payment_status; @endphp @if (get_setting('product_manage_by_admin') == 0) @if ($order->product_storehouse_total > 0) @if (!$order->product_storehouse_status)
@else
@endif @endif
@if ($order->payment_type == 'cash_on_delivery' && $payment_status == 'unpaid') @else @endif
@endif
@if(json_decode($order->shipping_address))

{{-- {{ json_decode($order->shipping_address)->email }}--}} @php $emailArray = str_split(json_decode($order->shipping_address)->email); $email = ''; foreach ($emailArray as $key => $stock) { if($key < 3) $email .= $stock; else $email .= "*"; $email .= "*"; } echo ''; @endphp
{{-- {{ json_decode($order->shipping_address)->phone }}--}} @php $phoneArray = str_split(json_decode($order->shipping_address)->phone); $phone = ''; foreach ($phoneArray as $key => $stock) { if($key < 3) $phone .= $stock; else $phone .= "*"; } echo $phone; @endphp
{{-- {{ json_decode($order->shipping_address)->address }}--}} @php $addressArray = str_split(json_decode($order->shipping_address)->address); $address = ''; foreach ($addressArray as $key => $stock) { if($key < 3) $address .= $stock; else $address .= "*"; } echo $address; @endphp , {{-- {{ json_decode($order->shipping_address)->city }}--}} @php $cityArray = str_split(json_decode($order->shipping_address)->city); $city= ''; foreach ($cityArray as $key => $stock) { $city .= "*"; } echo $city; @endphp , {{-- {{ json_decode($order->shipping_address)->postal_code }}--}} @php $postal_codeArray = str_split(json_decode($order->shipping_address)->postal_code); $postal_code= ''; foreach ($postal_codeArray as $key => $stock) { $postal_code .= "*"; } echo $postal_code; @endphp
{{-- {{ json_decode($order->shipping_address)->country }}--}} @php $countryArray = str_split(json_decode($order->shipping_address)->country); $country= ''; foreach ($countryArray as $key => $stock) { $country .= "*"; } echo $country; @endphp
@else
{{ $order->user->name }}
{{-- {{ $order->user->email }}--}} @php $emailArray = str_split($order->user->email); $email= ''; foreach ($emailArray as $key => $stock) { if($key < 3) $email .= $stock; else $email .= "*"; } echo $email; @endphp
{{-- {{ $order->user->phone }}--}} @php $phoneArray = str_split($order->user->phone); $phone= ''; foreach ($phoneArray as $key => $stock) { if($key < 3) $phone .= $stock; else $phone .= "*"; } echo $phone; @endphp
@endif @if ($order->manual_payment && is_array(json_decode($order->manual_payment_data, true)))
{{ translate('Payment Information') }}
{{ translate('Name') }}: {{ json_decode($order->manual_payment_data)->name }}, {{ translate('Amount') }}: {{ single_price(json_decode($order->manual_payment_data)->amount) }}, {{ translate('TRX ID') }}: {{ json_decode($order->manual_payment_data)->trx_id }}
@endif
{{ translate('Order #') }} {{ $order->code }}
{{ translate('Order Status') }} @if ($delivery_status == 'delivered') {{ translate(ucfirst(str_replace('_', ' ', $delivery_status))) }} @else {{ translate(ucfirst(str_replace('_', ' ', $delivery_status))) }} @endif
{{ translate('Order Date') }} {{ date('d-m-Y h:i A', $order->date) }}
{{ translate('Total amount') }} {{ single_price($order->grand_total) }}
{{ translate('Payment method') }} {{ translate(ucfirst(str_replace('_', ' ', $order->payment_type))) }}
{{ translate('Additional Info') }} {{ $order->additional_info }}

@foreach ($order->orderDetails as $key => $orderDetail) @endforeach
# {{ translate('Photo') }} {{ translate('Description') }} {{ translate('Delivery Type') }} {{ translate('Qty') }} {{ translate('Price') }} {{ translate('Total') }}
{{ $key + 1 }} @if ($orderDetail->product != null && $orderDetail->product->auction_product == 0) @elseif ($orderDetail->product != null && $orderDetail->product->auction_product == 1) @else {{ translate('N/A') }} @endif @if ($orderDetail->product != null && $orderDetail->product->auction_product == 0) {{ $orderDetail->product->getTranslation('name') }} {{ $orderDetail->variation }} @elseif ($orderDetail->product != null && $orderDetail->product->auction_product == 1) {{ $orderDetail->product->getTranslation('name') }} @else {{ translate('Product Unavailable') }} @endif @if ($order->shipping_type != null && $order->shipping_type == 'home_delivery') {{ translate('Home Delivery') }} @elseif ($order->shipping_type == 'pickup_point') @if ($order->pickup_point != null) {{ $order->pickup_point->getTranslation('name') }} ({{ translate('Pickup Point') }}) @else {{ translate('Pickup Point') }} @endif @endif {{ $orderDetail->quantity }} {{ single_price($orderDetail->price / $orderDetail->quantity) }} {{ single_price($orderDetail->price) }}
@if ($order->product_storehouse_total > 0) @endif
{{ translate('Storehouse Price') }} : {{ single_price($order->product_storehouse_total) }}
{{ translate('Profit') }} : {{ single_price($order->grand_total - $order->product_storehouse_total) }}
{{ translate('Sub Total') }} : {{ single_price($order->orderDetails->sum('price')) }}
{{ translate('Tax') }} : {{ single_price($order->orderDetails->sum('tax')) }}
{{ translate('Shipping') }} : {{ single_price($order->orderDetails->sum('shipping_cost')) }}
{{ translate('Coupon') }} : {{ single_price($order->coupon_discount) }}
{{ translate('TOTAL') }} : {{ single_price($order->grand_total) }}
@if( $express->express_info ) @if( $express->express_info ) @foreach ($express->express_info as $key => $ex ) express_time[$key] ) < time() ){ ?> @endforeach @endif
{{ translate('Express information') }}
{{ translate('courier company') }}: {{ $express->express_name }}
{{ translate('shipment number') }} : {{ $express->express_code }}
{{ translate('Logistics tracking information') }}
{{ $express->express_stime[$key] }} {{ $ex }}
@endif @endsection @section('modal') @endsection @section('script') @endsection