@php
$x = App\InvoiceDownload::where('order_id','=',$fcorder->order_id)->where('vender_id',Auth::user()->id)->get();
$total = 0;
foreach ($x as $key => $value) {
$total = $total+$value->qty*$value->price+$value->tax_amount+$value->shipping;
}
@endphp
{{ __('Order Summary') }}
{{ __('Customer name') }}
{{ __('Cancel Order Date') }}
{{ __('Cancel Order Total') }}
{{ __('REFUND Transcation ID /REF. ID') }}
{{ $user = App\User::find($fcorder->getorderinfo->user_id)->name }}
{{ date('d-m-Y @ h:i A',strtotime($fcorder->created_at)) }}
{{ $total }}
{{ $fcorder->txn_id }}
{{ __('REFUND Method') }}:
@if($fcorder->getorderinfo->payment_method !='COD' && $fcorder->method_choosen != 'bank')
{{ ucfirst($fcorder->method_choosen) }} ({{ $fcorder->getorderinfo->payment_method }})
@elseif($fcorder->method_choosen == 'bank')
{{ ucfirst($fcorder->method_choosen) }}
@else
{{__('No Need for COD Orders')}}
@endif
{{ __('Cancelation Reason:') }}
{{ $fcorder->comment }}
@if($fcorder->getorderinfo->payment_method !='COD')
@else
@endif
@if($fcorder->method_choosen == 'bank')
@php
$bank = App\Userbank::where('id','=',$fcorder->bank_id)->first();
@endphp
@if(isset($bank))
{{__('A/C Holder Name')}}: {{$bank->acname}}
{{__('Bank Name')}}: {{ $bank->bankname }}
{{__('Account No')}}: {{ $bank->acno }}
{{__("IFSC Code")}}: {{ $bank->ifsc }}
@else
{{__('User Deleted bank ac')}}
@endif
@endif
Items ({{ count($x) }})
@if(is_array($fcorder->inv_id))
@foreach($fcorder->inv_id as $invEx)
@php
$inv = App\InvoiceDownload::findorfail($invEx);
$orivar = App\AddSubVariant::withTrashed()->findorfail($inv->variant_id);
$varcount = count($orivar->main_attr_value);
$i=0;
@endphp
@if($inv->vender_id == Auth::user()->id)
@if($orivar->variantimages)
@else
@endif
{{ $inv->price*$inv->qty+$inv->tax_amount+$inv->shipping }}
@csrf
@endif
@endforeach
@endif