@extends('seller.layout') @section('content')
{{ translate('Order details') }}
@php $status = $order->delivery_status; @endphp
{{ translate('Order #') }} {{ $order->code }}
{{ translate('Delivery status') }} @if ($status == 'delivered') {{ translate($status) }} @else {{ translate($status) }} @endif
{{ translate('Order date') }} {{ $order->date }}
{{ translate('Payment method') }} {{ translate($order->payment_type) }}
{{ translate('Adress details') }}
{{ translate('Address') }} {{ $order->address->address }}
{{ translate('Address name') }} {{ $order->address->name }}
{{ translate('Postal code') }} {{ $order->address->postal_code }}
{{ translate('Address phone') }} {{ $order->address->phone }}
{{ translate('Products') }}
@foreach ($order->OrderProduct as $key => $OrderProduct) @endforeach
# {{ translate('Photo') }} {{translate('Name') }} {{ translate('Qty') }} {{ translate('Attributes') }} {{ translate('Price') }} {{ translate('Total') }} {{ translate('Seller status') }}
{{ $key + 1 }} @if ($OrderProduct->product != null) @php $link = getProductFirstPhotoOrAvatar($OrderProduct->product->id); @endphp your image @endif @if ($OrderProduct->product != null) {{ $OrderProduct->product->{'title_' . App::getLocale()} }} @endif {{ $OrderProduct->quantity }}
@if ($OrderProduct->serialized_options) @isset(json_decode($OrderProduct->serialized_options)->color)
@endisset @forelse (json_decode($OrderProduct->serialized_options)->choices as $key => $item) {{ \App\Attribute::find($item->parentId)->{'title_' . App::getLocale() } }} : {{ \App\AttributOption::find($item->id)->{'title_' . App::getLocale() } }}
@empty @endforelse @else @endif
{{ single_price($OrderProduct->price / $OrderProduct->quantity) }} {{ currency_sympol()['symbol'] }} {{ single_price($OrderProduct->price) }} {{ currency_sympol()['symbol'] }}
@endsection