@extends('front.layout.master') @section('title',"Return Product |") @section('body')
{{ __('staticwords.ReturnProduct') }} @if(isset($findvar)) {{$findvar->products->name}} ({{ variantname($findvar) }}) @else {{$order->simple_product->product_name}} @endif @if(isset($findvar)) ({{ variantname($findvar) }} @endif

{{ __('Order') }} #{{ $inv_cus->order_prefix.$order->order->order_id }}
{{ __('TXN ID:') }} {{ $order->order->transaction_id }}
{{ __('staticwords.Item') }} {{ __('staticwords.qty') }} {{ __('staticwords.Price') }} {{ __('staticwords.TotalGiftCharge') }} {{ __('staticwords.HandlingCharge') }} {{ __('staticwords.Total') }} {{ __('staticwords.Deliveredat') }}
@if(isset($findvar)) @else @endif
@if(isset($findvar)) {{$findvar->products->name}} ({{ variantname($findvar) }}) @else {{$order->simple_product->product_name}} @endif
@if(isset($findvar)) {{ __('staticwords.SoldBy') }}: {{$findvar->products->store->name}} @else {{ __('staticwords.SoldBy') }}: {{$order->simple_product->store->name}} @endif
{{$order->qty}} @if($order->order->discount !=0) {{ price_format($order->qty*$order->price+$order->tax_amount+$order->shipping-$order->discount) }} @else {{ price_format($order->qty*$order->price+$order->tax_amount+$order->shipping) }} @endif
({{ __('Incl. of Tax & Shipping') }})
{{ $order->gift_charge }} @infloat($order->handlingcharge) @if($order->order->discount !=0) {{ price_format(($order->qty*$order->price)+$order->tax_amount+$order->handlingcharge+$order->shipping-$order->discount+$order->gift_charge) }} @else {{ price_format(($order->qty*$order->price)+$order->tax_amount+$order->handlingcharge+$order->shipping+$order->gift_charge) }} @endif @php $days = $findvar->products->returnPolicy->days ?? $order->simple_product->returnPolicy->days; $endOn = date("d-M-Y", strtotime("$order->updated_at +$days days")); @endphp {{ date('d-M-Y @ h:i A',strtotime($order->updated_at)) }}
({{ __('staticwords.ReturnPolicyEndsOn') }} {{ $endOn }})
@php if($order->discount == 0){ $paidAmount = round(($order->qty*$order->price)+$order->tax_amount+$order->handlingcharge+$order->shipping+$order->gift_charge,2); }else{ $paidAmount = round((($order->qty*$order->price)+$order->tax_amount+$order->handlingcharge+$order->shipping)-$order->discount+$order->gift_charge,2); } if(isset($findvar)){ $per = $paidAmount*$findvar->products->returnPolicy->amount/100; }else{ $per = $paidAmount*$order->simple_product->returnPolicy->amount/100; } $paidAmount = $paidAmount-$per; if($order->cashback != ''){ $paidAmount = $paidAmount - $order->cashback; } @endphp
@php $orderId = Crypt::encrypt($order->id); @endphp
@csrf


{{ __('staticwords.AdditionalNote') }}:

- {{ __('staticwords.AsPerProductReturnPolicy') }} {{ $findvar->products->returnPolicy->amount ?? $order->simple_product->returnPolicy->amount }}% {{ __('staticwords.refundorderamount') }}. {{ __('staticwords.RefundedAmountwillbe') }}: {{ price_format($paidAmount) }}

@if($order->cashback != '')

- {{ __("Cashback amount of ") }} @infloat($order->cashback) {{ __("dedcuted from final refund amount ") }} {{ price_format($paidAmount + $order->cashback)}}

@endif

@php $address = App\Address::find($order->order->delivery_address); $c = App\Allcountry::where('id',$address->country_id)->first()->nicename; $s = App\Allstate::where('id',$address->state_id)->first()->name; $ci = App\Allcity::where('id',$address->city_id)->first()->name; $addressA = array(); $addressA = [ 'name' => $address->name, 'address' => strip_tags($address->address), 'ci' => $ci, 's' => $s, 'c' => $ci, 'pincode' => $address->pin_code ]; @endphp
@if($order->order->payment_method !='COD')
@endif



@endsection @section('script') @endsection