@php use Illuminate\Support\Str; @endphp @extends('layouts.back-end.app') @section('title',translate('refund_transactions')) @section('content')

{{ translate('transaction_report')}}

@include('admin-views.report.transaction-report-inline-menu')

{{ translate('total_transaction')}} {{$refundTransactions->total()}}

@foreach ($refundTransactions as $key=>$refund_transaction) @endforeach
{{translate('SL')}} {{translate('product')}} {{translate('refund_id')}} {{translate('order_id')}} {{translate('shop_name')}} {{translate('payment_method') }} {{translate('payment_status')}} {{translate('paid_by')}} {{translate('amount')}} {{translate('transaction_type')}}
{{$refundTransactions->firstItem()+$key}} @if($refund_transaction->orderDetails->product) {{ isset($refund_transaction->orderDetails->product->name) ? Str::limit($refund_transaction->orderDetails->product->name, 20) : '' }} @else {{translate('not_found')}} @endif @if ($refund_transaction->refund_id) {{$refund_transaction->refund_id}} @else {{translate('not_found')}} @endif {{$refund_transaction->order_id}} @if($refund_transaction->order->seller_is == 'seller' && $refund_transaction->order->seller) {{ $refund_transaction->order->seller->shop->name }} @else {{translate('inhouse')}} @endif {{translate(str_replace('_',' ',$refund_transaction->payment_method))}} {{translate(str_replace('_',' ',$refund_transaction->payment_status))}} {{translate($refund_transaction->paid_by)}} {{setCurrencySymbol(amount: usdToDefaultCurrency(amount: $refund_transaction->amount), currencyCode: getCurrencyCode())}} {{ $refund_transaction->transaction_type == 'Refund' ? translate('refunded') : str_replace('_',' ',$refund_transaction->transaction_type)}}
@if(count($refundTransactions)==0) @include('layouts.back-end._empty-state',['text'=>'no_data_found'],['image'=>'default']) @endif
{{$refundTransactions->links()}}
@endsection