@php /** @var \App\Models\Page $page */ @endphp {{-- komentar za lažje urejanje v Developer Tools --}} @if(!empty(App\Classes\Prefs::$web_edit_mode) or App::isLocal()) @endif {{-- slike --}} @foreach($page->product_images as $index => $image) {{ $page->product->name }} @endforeach {{-- barve, če imamo različne --}} @if($page->tags->where('parent_id', \App\Classes\Prefs::$web_tags['color']['id'])->count() > 0 )
@foreach($page->tags->where('parent_id', \App\Classes\Prefs::$web_tags['color']['id']) as $tag)
@endforeach
@endif
{{ $page->product->name }}
{{-- short desctiption --}} @if(!$page->getEffectiveValue('hide_descriptions')['value'])
{!! $page->getContent('product_short_descr') !!}
@endif
{{--
{{$page->product->best_price_discount_formatted}}
--}}
@if($page->product->reduced_price_from ?? $page->product->reduced_price) @if($page->product->reduced_price_from) {{__('common.from')}}  @endif {{App\Classes\Utilities::formatNumber($page->product->reduced_price_from ?? $page->product->reduced_price, App\Classes\Prefs::$web_shop_decimals['price_single'])}} @else @if($page->product->regular_price_from) {{__('common.from')}}  @endif {{App\Classes\Utilities::formatNumber($page->product->regular_price_from ?? $page->product->regular_price, App\Classes\Prefs::$web_shop_decimals['price_single'])}} @endif {{' '.App\Classes\Prefs::$web_currency['symbol']}}
@if($page->product->reduced_price_from ?? $page->product->reduced_price)
{{App\Classes\Utilities::formatNumber($page->product->previous_price_from ?? $page->product->previous_price, App\Classes\Prefs::$web_shop_decimals['price_single']) .' '.App\Classes\Prefs::$web_currency['symbol']}}
@endif
{{-- gumb V košarico oz. Izberi (če imamo različice oz. če že obstaja v košarici) --}} @php $add_to_cart_page = clone $page_view_service->getCachedPage(App\Classes\Prefs::$web_pages['product_thumb_add_to_cart']['id'], $pages); $add_to_cart_page->parent_id = $page->id; $add_to_cart_page->parent = $page; $add_to_cart_page->setRelation('parent', $page); @endphp
@include('www.element', ['page' => $add_to_cart_page, 'parent' => $page, ])