@extends('website.layouts.master') @section('content')

{!! trans('theme.section_headings.how_to_open_a_dispute') !!}

{!! trans('theme.help.first_step') !!}:

{!! trans('theme.help.how_to_open_a_dispute_first_step') !!}

{!! trans('theme.help.second_step') !!}:

{!! trans('theme.help.how_to_open_a_dispute_second_step') !!}

{!! trans('theme.help.third_step') !!}:

{!! trans('theme.help.how_to_open_a_dispute_third_step') !!}

@php $progress = $order->dispute ? $order->dispute->progress() : 0; @endphp
@if ($order->dispute)
{!! trans('theme.dispute_detail') !!}
{!! trans('theme.store') !!}: @if ($order->shop->slug) {{ $order->shop->name }} @else {!! trans('theme.seller') !!} @endif
{!! trans('theme.status') !!} {!! $order->dispute->statusName() !!}
{!! trans('theme.refund_amount') !!}: {{ get_formated_currency($order->dispute->refund_amount, true, 2) }}
{!! trans('theme.return_goods') !!}: {{ $order->dispute->return_goods == 1 ? trans('theme.yes') : trans('theme.no') }}
{!! trans('theme.order_id') !!}: {{ $order->order_number }}
{!! trans('theme.order_received') !!}: {{ $order->dispute->order_received == 1 ? trans('theme.yes') : trans('theme.no') }}

{!! trans('theme.reason') !!}: {{ $order->dispute->dispute_type->detail }}

@if ($order->dispute->description)
{!! $order->dispute->description !!} @if (count($order->dispute->attachments)) {{ trans('app.attachments') . ': ' }} @foreach ($order->dispute->attachments as $attachment) @endforeach @endif
@endif
@if ($order->dispute->replies->count() > 0) @foreach ($order->dispute->replies as $reply)
@if ($reply->user_id) @if ($reply->user->image) {{ trans('app.avatar') }} @else {{ trans('app.avatar') }} @endif {{ $reply->user->getName() }} @endif
{!! $reply->reply !!} @if (count($reply->attachments)) {{ trans('app.attachments') . ': ' }} @foreach ($reply->attachments as $attachment) @endforeach @endif
{{ $reply->updated_at->diffForHumans() }}
@if ($reply->customer_id) @if ($reply->customer->image) {{ trans('app.avatar') }} @else {{ trans('app.avatar') }} @endif {{ $reply->customer->getName() }} @endif
@endforeach @endif
@if ($order->dispute->isClosed()) {!! trans('theme.button.appeal') !!} @else {!! trans('theme.button.response') !!} {!! Form::open(['route' => ['dispute.markAsSolved', $order->dispute], 'class' => 'form-btn']) !!} {!! Form::button(trans('theme.mark_as_solved'), ['type' => 'submit', 'class' => 'confirm btn btn-primary flat']) !!} {!! Form::close() !!} @endif
@else

{!! trans('theme.button.contact_seller') !!} @unless($order->dispute) {!! trans('theme.button.open_dispute') !!} @endunless

{!! trans('theme.button.refund_request') !!}:

{!! trans('theme.help.reason_to_refund_request') !!}

{!! trans('theme.button.return_goods') !!}:

{!! trans('theme.help.reason_to_return_goods') !!}

@endif
@includeWhen(! $order->dispute, 'website.modals.dispute') @if ($order->dispute) @if ($order->dispute->isClosed()) @include('website.modals.dispute_appeal') @else @include('website.modals.dispute_response') @endif @endif @endsection