@include('theme-views.partials._profile-aside')
@if($restockProducts->count() > 0)
{{translate('my_request_list')}}
{{translate('clear_all')}} @endif
@if($restockProducts->count()>0)
@foreach($restockProducts as $key => $restockProduct) @php $overallRating = $restockProduct?->product?->reviews ? getOverallRating($restockProduct?->product?->reviews) : 0; @endphp @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 @endforeach
SL Product details Review Price Action
{{ $restockProducts ->firstItem()+$key }}
{{ $restockProduct?->product?->name }}
@if($restockProduct['variant'])
{{ translate('Variant :') }} : {{$restockProduct['variant'] }}
@else
{{ translate('Brand :') }} : @if(getWebConfig(name: 'product_brand')) {{ $restockProduct?->product?->brand?->name ?? '' }} @endif
@endif
{{ isset($overallRating[0]) ? $overallRating[0] : 0 }} ({{ count($restockProduct?->product?->reviews) }} {{ translate('review') }})
@if($restockProduct?->product?->discount > 0)
{{ getProductPriceByType(product: $restockProduct?->product, type: 'discounted_unit_price', result: 'string', price: $productPrices) }}
{{ webCurrencyConverter(amount: $productPrices) }}
@else
{{ webCurrencyConverter(amount: $productPrices) }}
@endif
@else
{{ translate('You_have_not_added_product_to_restock_request_yet') }}!
@endif @foreach($restockProducts as $key => $restockProduct)
@php $overallRating = $restockProduct?->product?->reviews ? getOverallRating($restockProduct?->product?->reviews) : 0 @endphp
{{ isset($overallRating[0]) ? $overallRating[0] : 0}} ({{count($restockProduct?->product?->reviews)}} {{ translate('review') }}))
@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
{{ translate('Total_price :') }} {{ webCurrencyConverter(amount: $productPrices) }}
@if($restockProduct['variant'])
{{ translate('Variant :') }} : {{$restockProduct['variant'] }}
@else
{{ translate('Brand :') }} : @if(getWebConfig(name: 'product_brand')) {{ $restockProduct?->product?->brand?->name ?? '' }} @endif
@endif
@endforeach @if (count($restockProducts) > 0)
{!! $restockProducts->links() !!}
@endif