@if ($orders->count() > 0)
@foreach ($orders as $order) @foreach ($order->inventories as $item) @php $item_translation = $item->translations->where('language_id',getLocaleId())->first(); @endphp @if ($loop->first) @endif @endforeach {{-- @dd($order->auctions->count())--}} @if($order->auctions->count() > 0) @foreach ($order->auctions as $item) @php $item_translation = $item->translations->where('language_id',getLocaleId())->first(); $item_bid = $item->bids->where('status',1)->first(); $item_price = $item_bid->price; @endphp @if ($loop->first) @endif @endforeach @endif @if ($order->message_to_customer) @endif @if ($order->buyer_note) @endif @endforeach
@lang('theme.your_order_history')
@lang('theme.order_id'): {{ $order->order_number }} @if ($order->hasPendingCancellationRequest()) {{ trans('theme.' . $order->cancellation->request_type . '_requested') }} @elseif($order->hasClosedCancellationRequest()) {{ trans('theme.' . $order->cancellation->request_type) }} {!! $order->cancellation->statusName() !!} @elseif($order->isCanceled()) {!! $order->orderStatus() !!} @endif @if ($order->dispute) @lang('theme.disputed') @endif
@lang('theme.order_time_date'): {{ $order->created_at->toDayDateTimeString() }}
@lang('theme.store'): @if ($order->shop->slug) {{ $order->shop->name }} @else @lang('theme.store_not_available') @endif
@lang('theme.status') {!! $order->orderStatus(true) . '   ' . $order->paymentStatusName() !!}
@lang('theme.order_amount'): {{ get_formated_currency($order->grand_total, true, 2) }}
{{ $item_translation->title ?? $item->title }}
@if($item_translation) {{$item->sku.' - '.$item_translation->title.' - '.$item->condition}} @else {{ $item->pivot->item_description }} @endif @if ($order->cancellation && $order->cancellation->isItemInRequest($item->id)) {{ trans('theme.' . $order->cancellation->request_type . '_requested') }} @endif
{{ get_formated_currency($item->pivot->unit_price, true, 2) }} x {{ $item->pivot->quantity }}
{{--
  • Size: L
  • Color: RED
--}}
@lang('theme.order_again') @unless($order->isCanceled()) @lang('theme.invoice') @if ($order->canBeCanceled()) {!! Form::model($order, ['method' => 'PUT', 'route' => ['order.cancel', $order]]) !!} {!! Form::button(' ' . trans('theme.cancel_order'), ['type' => 'submit', 'class' => 'confirm btn btn-default btn-block flat', 'data-confirm' => trans('theme.confirm_action.cant_undo')]) !!} {!! Form::close() !!} @elseif($order->canRequestCancellation()) @lang('theme.cancel_items') @endif @if ($order->canTrack()) @lang('theme.button.track_order') @endif @if ($order->canEvaluate()) @lang('theme.button.give_feedback') @endif @if ($order->isFulfilled()) @if ($order->canRequestReturn()) @lang('theme.return_items') @endif @unless($order->goods_received) {!! Form::model($order, ['method' => 'PUT', 'route' => ['goods.received', $order]]) !!} {!! Form::button(trans('theme.button.confirm_goods_received'), ['type' => 'submit', 'class' => 'confirm btn btn-primary btn-block flat', 'data-confirm' => trans('theme.confirm_action.goods_received')]) !!} {!! Form::close() !!} @endunless @endif @endunless @lang('theme.button.contact_seller')
{{ $item_translation->title ?? $item_translation->title }}
@if($item_translation) {{$item_translation->title}} @else {{ $item->title }} @endif @if ($order->cancellation && $order->cancellation->isItemInRequest($item->id)) {{ trans('theme.' . $order->cancellation->request_type . '_requested') }} @endif
{{ get_formated_currency($item_price) }}
{{--
  • Size: L
  • Color: RED
--}}
@lang('theme.order_again') @unless($order->isCanceled()) @lang('theme.invoice') @if ($order->canBeCanceled()) {!! Form::model($order, ['method' => 'PUT', 'route' => ['order.cancel', $order]]) !!} {!! Form::button(' ' . trans('theme.cancel_order'), ['type' => 'submit', 'class' => 'confirm btn btn-default btn-block flat', 'data-confirm' => trans('theme.confirm_action.cant_undo')]) !!} {!! Form::close() !!} @elseif($order->canRequestCancellation()) @lang('theme.cancel_items') @endif @if ($order->canTrack()) @lang('theme.button.track_order') @endif @if ($order->canEvaluate()) @lang('theme.button.give_feedback') @endif @if ($order->isFulfilled()) @if ($order->canRequestReturn()) @lang('theme.return_items') @endif @unless($order->goods_received) {!! Form::model($order, ['method' => 'PUT', 'route' => ['goods.received', $order]]) !!} {!! Form::button(trans('theme.button.confirm_goods_received'), ['type' => 'submit', 'class' => 'confirm btn btn-primary btn-block flat', 'data-confirm' => trans('theme.confirm_action.goods_received')]) !!} {!! Form::close() !!} @endunless @endif @endunless @lang('theme.button.contact_seller')

@lang('theme.message_from_seller'): {{ $order->message_to_customer }}

@else

@lang('theme.no_order_history')
@lang('theme.button.shop_now')

@endif