@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)
{{ $inv->price*$inv->qty+$inv->tax_amount+$inv->shipping }}
@csrf
@endif
@endforeach
@endif