@extends('front.layout.master') @section('title', 'Return Product |') @section('body')

{{ __('staticwords.ReturnProduct') }} {{ $productname }} @if (isset($findvar)) ({{ variantname($findvar) }} @endif

{{ __('Order') }} #{{ $inv_cus->order_prefix . $order->order->order_id }}
{{ __('TXN ID:') }} {{ $order->order->transaction_id }}
@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
@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 }})

{{ __('staticwords.Price') }}: @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

{{ __('staticwords.TotalGiftCharge') }}: {{ $order->gift_charge }}

{{ __('staticwords.HandlingCharge') }} @infloat($order->handlingcharge)


{{ __('staticwords.Total') }}: @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
({{ __('Incl. of Tax & Shipping') }})
@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(Crypt::decrypt($rfm) + $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 = []; $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 @if (count(Auth::user()->banks) > 0)
@else

Your Bank details are missing.

Add bank details to receive your payments.

{{ __('staticwords.ADDNewbank') }} @endif



@endsection @section('script') @endsection