@if (!$is_special_layout)
@if ($variations)
@foreach ($variations as $var)
@foreach ($var['variation_gallery_images'] as $img)
@endforeach
@endforeach
@else
@foreach ($gallery_ids as $id)
@endforeach
@endif
@endif
@if (!$is_special_layout)
@if ($show_custom_sale_label && $is_on_sale)
{{ $sale_label }}
@elseif ($is_on_sale)
{{ __('Akcija', 'martimex') }}
@elseif ($is_new)
{{ __('Novo', 'martimex') }}
@endif
@endif
@if ($variations)
@foreach ($variations as $var)
@foreach ($var['variation_gallery_images'] as $img)
@endforeach
@endforeach
@else
@foreach ($gallery_ids as $id)
@endforeach
@endif
@include('icons.arrow', ['class' => 'js-prev'])
@include('icons.arrow', ['class' => 'js-next'])
@if (!$is_special_layout)
@foreach ($breadcrumbs as $item)
@if ($loop->last)
{!! $item['name'] !!}
@else
{!! $item['name'] !!}
@include('icons.arrow')
@endif
@endforeach
@endif
@if ($brand_image && !$is_special_layout)
@endif
{!! $title !!}
@if ($short_description)
{{ $short_description }}
@endif
@foreach ($sku as $s)
@if ($s->sku)
id ? 'data-sku-var-id="' . $s->id . '"' : '' !!}>{{ __('SKU: ', 'martimex') . $s->sku }}
@endif
@endforeach
@if ($variations)
@foreach ($variations as $var)
{!! currencyOutput($var['display_price']) !!}
@if ($var['on_sale'])
{!! currencyOutput($var['display_regular_price']) !!}
@endif
@if ($var['on_sale'] && $display_lowest_price)
{{ __('NC u zadnjih 30 dana: ', 'martimex') }}{!! currencyOutput(get_lowest_price( $var['id'], $old_price )) !!}
@endif
@endforeach
@else
{!! currencyOutput($current_price) !!}
@if ($is_on_sale)
{!! currencyOutput( $old_price ) !!}
@endif
@if ($is_on_sale && $display_lowest_price)
{{ __('NC u zadnjih 30 dana: ', 'martimex') }} {!! currencyOutput(get_lowest_price( $product_id, $old_price )) !!}
@endif
@endif
@if ($coupon_text && !$is_special_layout)
{{ $coupon_text }}
@endif
@if ($is_in_stock)
{!! do_action('advanced_woo_discount_rules_load_discount_bar', wc_get_product($product_id)) !!}
{{--
Temp position of notice banners
--}}
@if ($notice_banners)
@foreach ($notice_banners as $banner)
@if($banner["show_banner_on_product"])
@endif
@endforeach
@endif
@if ($variations)
@php
$keys = array_keys($var["attributes"]);
@endphp
@foreach ($variations as $var)
@if($keys[0] == 'attribute_pa_color')
@php
$col = get_term_by('slug', $var['attributes']['attribute_pa_color'], 'pa_color');
$term_name = substr(get_term_meta($col->term_id, 'color_number', true) ?: '', 0, 2);
@endphp
{{ $term_name }}
@else
@php
$term = get_term_by( 'slug', $var['attributes'][$keys[0]], "pa_size" );
if ( $term && ! is_wp_error( $term ) ) {
$term_name = $term->name;
} else {
$term_name = $item['attributes'][$key]; // Fallback i
}
@endphp
{{ $term_name }}
{!! currencyOutput($var['display_price']) !!}
@if ($var['on_sale'])
%
@endif
@if ($var['in_stock'] == '')
@include('icons.close_thick', ['class' => "product__single-variation-no-stock-icon"])
@endif
@endif
@endforeach
@if (isset($variations[0]['attributes']['attribute_pa_color']) && $variations[0]['attributes']['attribute_pa_color'])
@php
$col = get_term_by('slug', $variations[0]['attributes']['attribute_pa_color'], 'pa_color')
@endphp
{{ get_term_meta($col->term_id, 'color_number', true) }}
@endif
@endif
{{__('Proizvod trenutno nije na stanju', 'martimex')}}
{{ __('Dodaj u košaricu', 'martimex') }}
@include('icons.loader_icon')
{{ __('Dodano!', 'martimex') }}
{{ __('Otvori košaricu', 'martimex') }}
@include('icons.minus')
@include('icons.plus')
@if ($gift_product && !$is_special_layout)
{{ $gift_product['text'] }}
{!! $gift_product['title'] !!}
{{ $gift_product['subcategory'] }}
@endif
@if ($special_coupon && !$is_special_layout)
{{ $special_coupon['title'] }}
{!! $special_coupon['text'] !!}
@endif
@else
@if ($variations)
@php
$keys = array_keys($var["attributes"]);
@endphp
@foreach ($variations as $var)
@if($keys[0] == 'attribute_pa_color')
@php
$col = get_term_by('slug', $var['attributes']['attribute_pa_color'], 'pa_color')
@endphp
{{ substr(get_term_meta($col->term_id, 'color_number', true) ?: '', 0, 2) }}
@else
@php
$term = get_term_by( 'slug', $var['attributes'][$keys[0]], "pa_size" );
if ( $term && ! is_wp_error( $term ) ) {
$term_name = $term->name;
} else {
$term_name = $item['attributes'][$key]; // Fallback i
}
@endphp
{{ $term_name }}
{!! currencyOutput($var['display_price']) !!}
@if ($var['on_sale'])
%
@endif
@if ($var['in_stock'] == '')
@include('icons.close_thick', ['class' => "product__single-variation-no-stock-icon"])
@endif
@endif
@endforeach
@if (isset($variations[0]['attributes']['attribute_pa_color']) && $variations[0]['attributes']['attribute_pa_color'])
@php
$col = get_term_by('slug', $variations[0]['attributes']['attribute_pa_color'], 'pa_color')
@endphp
{{ get_term_meta($col->term_id, 'color_number', true) }}
@endif
{{__('Proizvod trenutno nije na stanju', 'martimex')}}
{{ __('Dodaj u košaricu', 'martimex') }}
@include('icons.loader_icon')
@else
{{ __('Proizvod trenutno nije na stanju', 'martimex') }}
{{ __('Obavijesti me kada bude dostupan', 'martimex') }}
@endif
@endif
@if ($benefits)
@foreach ($benefits as $item)
{{ $item['text'] }}
@endforeach
@endif
{{--
Original position of notice banners
@if ($notice_banners)
@foreach ($notice_banners as $banner)
@if($banner["show_banner_on_product"])
@endif
@endforeach
@endif
--}}
@if ($description_tabs)
{{-- Desktop Navigation --}}
@foreach ($description_tabs as $index => $tab)
{{ $tab['label'] }}
@endforeach
{{-- Desktop Content --}}
@foreach ($description_tabs as $index => $tab)
@if ($tab['has_video'])
@else
@endif
@endforeach
{{-- Mobile FAQ Style --}}
@foreach ($description_tabs as $index => $tab)
@if ($tab['has_video'])
@else
@endif
@endforeach
@elseif ($description)
{{ __('Opis proizvoda', 'martimex') }}
@if (!$is_special_layout && !$has_video_in_description)
{!! __('Pročitaj više', 'martimex') !!}
@endif
@endif