@extends('layouts.app') @section('title', 'TemTechnik | ' . __('general.my_favourites')) @section('content')

{{ __('general.my_favourites') }}

@if($favourites->count())
@foreach($favourites as $fav) @if($fav->product)
{{ $fav->product->getTranslation('name', app()->getLocale()) }}
{{ $fav->product->getTranslation('name', app()->getLocale()) }}
@php $currency = session('currency', 'AZN'); @endphp @if($fav->product->isDiscounted()) {{ $fav->product->getCurrencySymbol($currency) }}{{ number_format($fav->product->getPriceInCurrency($currency), 2) }} {{ $fav->product->getCurrencySymbol($currency) }}{{ number_format($fav->product->getFinalPriceInCurrency($currency), 2) }} @else {{ $fav->product->getCurrencySymbol($currency) }}{{ number_format($fav->product->getPriceInCurrency($currency), 2) }} @endif
@endif @endforeach
@else
{{ __('general.no_favourites') }}
@endif
@if(isset($similarProducts) && $similarProducts->count())

{{ __('general.similar_products') ?? 'Similar Products' }}

@foreach($similarProducts as $product) @endforeach
@endif @endsection @push('scripts') @endpush