@extends('layouts.adminmaster') @section('styles') @endsection @section('content')
{{ lang('Refund Request View') }}
@if($refundItem->customer->image) img @else img @endif
{{$refundItem->customer->username}}
{{lang('customer')}} {{lang('Refund Comment')}}
{{ \Carbon\Carbon::parse($refundItem->refundCreatedDate)->diffForHumans() }}
{{$refundItem->refundReason}}
@foreach ($refundItem->refundComments as $comment) @if($comment->cust_id)
@if($refundItem->customer->image) img @else img @endif
{{$refundItem->customer->username}}
{{lang('customer')}}
{{$comment->created_at->diffForHumans()}}
{{$comment->comment}}
@else
@if($comment->user->image) img @else img @endif
{{$comment->user->name}}
{{$comment->user->getRoleNames()[0]}}
{{$comment->created_at->diffForHumans()}}
{{$comment->comment}}
@endif @endforeach
@unless ($refundItem->status == 'refundRejected' || $refundItem->status == 'refunded')
{{lang('Add a comment')}}
@if(optional(Auth::user())->image) img @else img @endif
@endunless
@unless ($refundItem->status == 'refundRejected' || $refundItem->status == 'refunded') @endunless
{{lang(' Purchased Details')}}
@if ($refundItem->status == 'refunded' && $refundItem->payment_method != 'Offline Payment') @php $currency = $refundItem->currency; $symbol = config('currencies.'.$currency); @endphp @if ($refundItem->countryTaxName != null && $refundItem->countryTaxAmount != null) @endif @endif
{{lang('Product Name')}} :
{{lang('Invoice ID')}} : #{{$refundItem->invoiceId}}
{{lang('Payment Mode')}} : {{$refundItem->payment_method}}
{{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
{{-- @include('admin.includes.search-modal') --}} @endsection @section('scripts') @endsection