@lang('theme.payment_detail')
@lang('theme.price') @lang('theme.shipping_cost') @lang('theme.packaging_cost') @lang('theme.taxes') @lang('theme.discount') @lang('theme.total')
{{ get_formated_currency($order->total, true, 2) }} {{ get_formated_currency($order->shipping + $order->handling, true, 2) }} {{ get_formated_currency($order->packaging, true, 2) }} {{ get_formated_currency($order->taxes, true, 2) }} {{ get_formated_currency($order->discount, true, 2) }} {{ get_formated_currency($order->grand_total, true, 2) }}
@lang('theme.amount') @lang('theme.payment_method') @lang('theme.status')
{{ get_formated_currency($order->grand_total, true, 2) }} {{ $order->paymentMethod->name }} {!! $order->paymentStatusName() !!}
@if ($order->refunds->count())
@foreach ($order->refunds as $refund) @endforeach
@lang('theme.refunds')
{{ trans('theme.return_goods') }} {{ trans('theme.amount') }} {{ trans('theme.status') }} {{ trans('theme.created_at') }} {{ trans('theme.updated_at') }}
{!! get_yes_or_no($refund->return_goods) !!} {{ get_formated_currency($refund->amount, true, 2) }} {!! $refund->statusName() !!} {{ $refund->created_at->diffForHumans() }} {{ $refund->updated_at->diffForHumans() }}
@endif
@foreach ($order->inventories as $item) @if ($loop->first) @endif @endforeach @if ($order->message_to_customer) @endif @if ($order->buyer_note) @endif
@lang('theme.order_detail')
@lang('theme.shipping_address'): @lang('theme.billing_address'):
{!! $order->shipping_address !!} {!! $order->billing_address !!}
@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->slug }}
{{ $item->pivot->item_description }} @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 @if ($order->dispute) @lang('theme.dispute_detail') @else @lang('theme.button.open_dispute') @endif

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

@lang('theme.section_headings.contact_seller')

{!! Form::open(['route' => ['order.conversation', $order], 'files' => true, 'id' => 'conversation-form', 'data-toggle' => 'validator']) !!}
{!! Form::label('message', trans('theme.write_your_message')) !!} {!! Form::textarea('message', null, ['class' => 'form-control form-control flat', 'placeholder' => trans('theme.leave_message_to_seller'), 'rows' => '4', 'maxlength' => 500, 'required']) !!}
{!! Form::label('photoInput', trans('theme.button.upload_photo')) !!}
{!! Form::file('photo') !!}
@lang('theme.help.upload_photo')
@unless($order->order_status_id == \App\Models\Order::STATUS_DELIVERED)
@endunless {!! Form::button(trans('theme.button.send_message'), ['type' => 'submit', 'class' => 'btn btn-info flat']) !!}
{!! Form::close() !!}
@if ($order->conversation)

@lang('theme.message_history')

@foreach ($order->conversation->replies->sortByDesc('created_at') as $msg)
@unless($msg->customer_id) @endunless
{!! $msg->reply !!}
@if ($attachment = optional($msg->attachments)->first()) @endif
@if ($msg->customer_id) @endif
@endforeach
{!! $order->conversation->message !!}
@if ($attachment = optional($order->conversation->attachments)->first()) @endif
@endif