{{-- The Template for displaying all single products This template can be overridden by copying it to yourtheme/woocommerce/single-product.php. HOWEVER, on occasion WooCommerce will need to update template files and you (the theme developer) will need to copy the new files to your theme to maintain compatibility. We try to do this as little as possible, but it does happen. When this occurs the version of the template file will be bumped and the readme will list any important changes. @see https://docs.woocommerce.com/document/template-structure/ @package WooCommerce\Templates @version 1.6.4 --}} @extends('layouts.app') @section('content')
@if (!$is_special_layout) @endif
@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')}}
{{ __('Dodano!', 'martimex') }}
@if ($gift_product && !$is_special_layout)
{!! $gift_product['title'] !!}
{{ $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')}}
@else
{{ __('Proizvod trenutno nije na stanju', 'martimex') }}
@endif @endif @if ($benefits)
@foreach ($benefits as $item) {{ $item['text'] }}
{{ $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) @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)

{{ $tab['label'] }}

@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
@if ($similiar_products && !$is_special_layout)

{{ __('Slični proizvodi', 'martimex') }}

@foreach ($similiar_products as $prod) @endforeach
@endif @if($cross_sells)

{{ __('Kombiniraj uz ove proizvode', 'martimex') }}

@foreach ($cross_sells as $prod) @endforeach
@endif
@include('icons.close', ['class' => 'btn btn--ghost js-close-notify-popup'])

{{ __('Ostavite svoju email adresu i javiti ćemo Vam kada proizvod bude dostupan', 'martimex') }}

{{ __('Poštujemo Vašu privatnost i nećemo dijeliti Vašu email adresu ni sa kime.', 'martimex') }}
{{ $title }} image

{{ __('Trenutno nedostupno', 'martimex') }}

{!! $title !!}
{{ __('Email', 'martimex') }}

@include('icons.success')
{{ __('Vaša adresa je zabilježena', 'martimex') }}
@endsection