@extends('layouts.front-end.app') @section('title', translate('Restock_Requests')) @section('content')
@include('web-views.partials._profile-aside')
@if($restockProducts->count() > 0)
{{translate('Restock_Requests')}}
@endif @if(count($restockProducts) > 0)
@foreach($restockProducts as $key => $restockProduct)
Wishlist @if($restockProduct?->product?->discount > 0) @if ($restockProduct?->product?->discount_type == 'percent') -{{round($restockProduct?->product?->discount,(!empty(getWebConfig(name: 'decimal_point_settings')) ? getWebConfig(name: 'decimal_point_settings'): 0))}}% @elseif($restockProduct?->product?->discount_type =='flat') -{{ webCurrencyConverter(amount: $restockProduct?->product?->discount) }} @endif @endif
@php $overallRating = $restockProduct?->product?->reviews ? getOverallRating($restockProduct?->product?->reviews) : 0; @endphp
@for($inc=1;$inc<=5;$inc++) @if ($inc <= (int)$overallRating[0]) @elseif ($overallRating[0] != 0 && $inc <= (int)$overallRating[0] + 1.1 && $overallRating[0] > ((int)$overallRating[0])) @else @endif @endfor ({{count($restockProduct?->product?->reviews)}})

@if($restockProduct['variant']) {{ translate('Variant :') }} {{$restockProduct['variant'] }} @else {{ translate('Brand :') }} @if(getWebConfig(name: 'product_brand')) {{ $restockProduct?->product?->brand?->name ?? '' }} @endif @endif
@php $productPrices = $restockProduct?->product?->unit_price; $restockProductsList = json_decode($restockProduct?->product?->variation, true); if(!empty($restockProductsList) && count($restockProductsList) > 0) { foreach ($restockProductsList as $item) { if ($item['type'] === $restockProduct->variant) { $productPrices = $item['price']; } } } @endphp @if($restockProduct?->product?->discount > 0) {{ webCurrencyConverter(amount: $productPrices - getProductDiscount(product: $restockProduct?->product, price: $productPrices)) }} {{ webCurrencyConverter(amount: $productPrices) }} @else {{ webCurrencyConverter(amount: $productPrices) }} @endif
@endforeach
@else
@endif @if (count($restockProducts) > 0)
{!! $restockProducts->links() !!}
@endif
@endsection