@extends('layouts.usermaster') @section('styles') @endsection @section('content')
{{-- --}} @if($refundItem->customer->image) img @else img @endif {{-- --}}
{{$refundItem->customer->username}}
{{lang('customer')}} Refund Comment
{{ \Carbon\Carbon::parse($refundItem->refundCreatedDate)->diffForHumans() }}
{{$refundItem->refundReason}}
@foreach ($refundItem->refundComments as $comment) @if($comment->cust_id)
{{-- --}} @if($comment->cust->image) img @else img @endif {{-- --}}
{{$comment->cust->username}}
{{lang('customer')}}
{{$comment->created_at->diffForHumans()}}
{{$comment->comment}}
@else
@if($comment->user->image) img @else img @endif
@if(setting('customer_panel_employee_protect') == 'on')
{{ setting('employeeprotectname') }}
@else @if($comment->user != null)
{{ $comment->user->name }} @if(!empty($comment->user->getRoleNames()[0])) {{ $comment->user->getRoleNames()[0] }} @endif
@else
~
@endif @endif
{{$comment->created_at->diffForHumans()}}
{{$comment->comment}}
@endif @endforeach
@unless ($refundItem->status == 'refundRejected' || $refundItem->status == 'refunded')
{{lang('Add a comment')}}
{{-- --}} @if(Auth::guard('customer')->user()->image) img @else img @endif {{-- --}}
{{-- --}}
@endunless
{{lang(' Purchased Details')}}
@if ($refundItem->status == 'refunded') @php $currency = $refundItem->currency; $symbol = config('currencies.'.$currency); @endphp @if ($refundItem->countryTaxName != null && $refundItem->countryTaxAmount != null) @endif @endif
{{lang('Product Name')}} :
{{lang('Customer Name')}} : {{$refundItem->customer->username}}
{{lang('Request Date')}} : {{Carbon\Carbon::parse($refundItem->refundCreatedDate)->format('d,M Y')}}
{{lang('Gross Amount')}} : {{ $refundItem->customerAmount }}
{{ $refundItem->gatewayName }} : {{ $symbol .' '. $refundItem->gatewayFee }}
{{ $refundItem->countryTaxName }} : {{ $symbol. ' ' .$refundItem->countryTaxAmount }}
{{lang('Net Amount Refunded')}} : {{ $symbol. ' ' .$refundItem->netAmountRefunded }}
{{lang('Status')}} : @if ($refundItem->status == 'refunded') {{ lang('Refunded') }} @elseif ($refundItem->status == 'refundpending') {{ lang('Waiting For Approval') }} @elseif ($refundItem->status == 'refundRejected') {{ lang('Refund Rejected') }} @else {{ lang('Pending') }} @endif
@endsection @section('scripts') @endsection