@extends('layouts.frontend.app') @section('title', 'Account') @section('content')
@include('layouts.frontend.partials.userside')
@if(!empty(Session::get('massage2'))) {{ Session::get('massage2')}} @endif
@forelse ($wishlist as $wish_prod) @foreach($wish_prod->wishlist as $product)

{{$product->title}}

{!!$product->short_description !!}

MRP @if($product->discount_price>0 || $product->price)
{{ setting('CURRENCY_CODE_MIN') ?? 'TK' }}.{{$product->price ?? $product->discount_price}} {{ setting('CURRENCY_CODE_MIN') ?? 'TK' }}.{{$product->regular_price}}
@else
{{ setting('CURRENCY_CODE_MIN') ?? 'TK' }}.{{$product->regular_price}}
@endif
Brand :{{$product->brand->name}}
Size :@foreach ($product->sizes as $size) {{$size->name}}@endforeach
Colour :@foreach ($product->colors as $color){{$color->name}} @endforeach
@php if ($product->reviews->count() > 0) { $average_rating = $product->reviews->sum('rating') / $product->reviews->count(); } else { $average_rating = 0; } @endphp
@if ($average_rating == 0) @elseif ($average_rating > 0 && $average_rating < 1.5) @elseif ($average_rating >= 1.5 && $average_rating < 2) @elseif ($average_rating >= 2 && $average_rating < 2.5) @elseif ($average_rating >= 2.5 && $average_rating < 3) @elseif ($average_rating >= 3 && $average_rating < 3.5) @elseif ($average_rating >= 3.5 && $average_rating < 4) @elseif ($average_rating >= 4 && $average_rating < 4.5) @elseif ($average_rating >= 4.5 && $average_rating < 5) @elseif ($average_rating > 5) @endif {{$average_rating}} rating
@endforeach @empty @endforelse
@include('components.cart-modal-attri') @endsection @push('js') @endpush