@extends('front.layout.master') @section('title',"Return Product |") @section('body')
{{ __('staticwords.ReturnProduct') }} {{ $productname }} ( @php $varcount = count($findvar->main_attr_value); $var_main; $i=0; //var code foreach ($findvar->main_attr_value as $key => $orivars) { $i++; $getattrname = App\ProductAttributes::where('id', $key)->first()->attr_name; $getvarvalue = App\ProductValues::where('id', $orivars)->first(); if ($i < $varcount) { if (strcasecmp($getvarvalue->unit_value, $getvarvalue->values) != 0 && $getvarvalue->unit_value != null) { if ($getvarvalue->proattr->attr_name == "Color" || $getvarvalue->proattr->attr_name == "Colour" || $getvarvalue->proattr->attr_name == "color" || $getvarvalue->proattr->attr_name == "colour") { echo $getvarvalue->values.','; } else { echo $getvarvalue->values . $getvarvalue->unit_value.','; } } else { echo $getvarvalue->values; } } else { if (strcasecmp($getvarvalue->unit_value, $getvarvalue->values) != 0 && $getvarvalue->unit_value != null) { if ($getvarvalue->proattr->attr_name == "Color" || $getvarvalue->proattr->attr_name == "Colour" || $getvarvalue->proattr->attr_name == "color" || $getvarvalue->proattr->attr_name == "colour") { echo $getvarvalue->values; } else { echo $getvarvalue->values.$getvarvalue->unit_value; } } else { echo $getvarvalue->values; } } } @endphp)

{{ __('Order') }} #{{ $inv_cus->order_prefix.$order->order->order_id }}
{{ __('TXN ID:') }} {{ $order->order->transaction_id }}
{{ __('staticwords.Item') }} {{ __('staticwords.qty') }} {{ __('staticwords.Price') }} {{ __('staticwords.HandlingCharge') }} {{ __('staticwords.Total') }} {{ __('staticwords.Deliveredat') }}
{{$order->qty}} @if($order->order->discount !=0) {{ round($order->qty*$order->price+$order->tax_amount+$order->shipping-$order->discount,2) }} @else {{ round($order->qty*$order->price+$order->tax_amount+$order->shipping,2) }} @endif
({{ __('Incl. of Tax & Shipping') }})
{{ $order->handlingcharge }} @if($order->order->discount !=0) {{ round($order->qty*$order->price+$order->tax_amount+$order->handlingcharge+$order->shipping-$order->discount,2) }} @else {{ round($order->qty*$order->price+$order->tax_amount+$order->handlingcharge+$order->shipping,2) }} @endif @php $days = $findvar->products->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){ $amount = round($order->qty*$order->price+$order->tax_amount+$order->handlingcharge+$order->shipping,2); }else{ $amount = round(($order->qty*$order->price+$order->tax_amount+$order->handlingcharge+$order->shipping)-$order->discount,2); } $per = $amount*$findvar->products->returnPolicy->amount/100; $paidAmount = $amount-$per; @endphp
@php $orderId = Crypt::encrypt($order->id); @endphp
@csrf
@php if($findvar->products->returnPolicy->amount != 0){ $rfm = Crypt::encrypt(round($paidAmount,2)); }else { $rfm = Crypt::encrypt(round($amount,2)); } @endphp


@if($findvar->products->returnPolicy->amount != 0)
{{ __('staticwords.AdditionalNote') }}:

{{ __('staticwords.AsPerProductReturnPolicy') }} {{ $findvar->products->returnPolicy->amount }}% {{ __('staticwords.refundorderamount') }}. {{ __('staticwords.RefundedAmountwillbe') }}: {{ round($paidAmount,2) }}

@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