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

{{ trans('app.disputes') }}

@foreach ($disputes as $dispute) @endforeach
{{ trans('app.customer') }} {{ trans('app.type') }} {{ trans('app.refund_requested') }} {{ trans('app.response') }} {{ trans('app.updated_at') }}  
{{ trans('app.avatar') }}

{{ $dispute->customer->getName() }} @if (Auth::user()->isFromPlatform() && $dispute->shop)
{{ trans('app.vendor') . ': ' . optional($dispute->shop)->name }} @endif

@if (!Auth::user()->isFromPlatform()) {!! $dispute->statusName() !!} @endif {{ $dispute->dispute_type->detail }} {{ get_formated_currency($dispute->refund_amount, 2, $dispute->order->currency_id) }} {{ $dispute->replies_count }} {{ $dispute->updated_at->diffForHumans() }}   @can('response', $dispute)   @endcan

{{ trans('app.closed_disputes') }}

@foreach ($closed as $dispute) @endforeach
{{ trans('app.customer') }} {{ trans('app.type') }} {{ trans('app.response') }} {{ trans('app.updated_at') }} {{ trans('app.option') }}
{{ trans('app.avatar') }}

{{ $dispute->customer->getName() }} @if (Auth::user()->isFromPlatform() && $dispute->shop)
{{ trans('app.vendor') . ': ' . optional($dispute->shop)->name }} @endif

@if (!Auth::user()->isFromPlatform()) {!! $dispute->statusName() !!} @endif {{ $dispute->dispute_type->detail }} {{ $dispute->replies_count }} {{ $dispute->updated_at->diffForHumans() }} @can('response', $dispute)   @endcan
@endsection