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

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

@foreach($disputes as $dispute ) @endforeach
{{ trans('app.customer') }} {{ trans('app.type') }} {{ trans('app.response') }} {{ trans('app.updated_at') }} {{ trans('app.option') }}
@if($dispute->customer->image) {{ trans('app.avatar') }} @else {{ trans('app.avatar') }} @endif

{{ $dispute->customer->name }} @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

{{ 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') }}
@if($dispute->customer->image) {{ trans('app.avatar') }} @else {{ trans('app.avatar') }} @endif

{{ $dispute->customer->name }} @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