@php
/**
* @name Pagina prodotto\Dettagli\Info\Meta
* @version 1.0.0
*/
@endphp
@php
$details_categories_status = false;
$details_line_status = false;
$details_season_status = false;
$details_attributes_status = false;
$details_categories_status = call_setting('settings.product.details_categories_status');
$details_line_status = call_setting('settings.product.details_line_status');
$details_season_status = call_setting('settings.product.details_season_status');
$details_um_status = call_setting('settings.product.details_um_status');
$details_attributes_status = call_setting('settings.product.details_attributes_status');
$details_price_retail_status = call_setting('settings.product.details_price_retail_'.get_user_type());
$details_barcode_status = call_setting('settings.product.details_barcode_'.get_user_type());
@endphp
- {{ $product->get_sku() }}
@if (!empty($product->get_um() && $details_um_status))
- {!! $product->get_um()->get_description() !!}
@endif
@if (!empty($product->get_barcode()) && $details_barcode_status)
- {{ $product->get_barcode()->get_code() }}
@endif
@if (!empty($product->get_retail_prices()) && $details_price_retail_status)
- {{ $product->get_price_retail_html() }}
@endif
@if (!empty($product->get_composition()))
- {{ $product->get_composition() }}
@endif
@if (!empty($product->get_line() && $details_line_status))
- {!! $product->get_line()->get_name() !!}
@endif
@if (!empty($product->get_season() && $details_season_status))
- {!! $product->get_season()->get_name() !!}
@endif
@if (!empty($product->get_categories() && $details_categories_status ))
-
@foreach ($product->get_categories() as $category_key => $category)
{!! $category->get_name() !!}
@if (array_key_last($product->get_categories()) != $category_key)
,
@endif
@endforeach
@endif
@if ($details_attributes_status)
@php
$attributes_list = [];
$attributes = $product->get_attributes();
foreach ($attributes as $attribute) {
if(!$attribute->is_in_variation() && !empty($attribute->get_terms())){
$attributes_list[] = $attribute;
}
}
@endphp
@if (!empty($attributes_list))
@foreach ($attributes_list as $attribute)
-
@foreach ($attribute->get_terms() as $term_key => $term)
{!! $term->get_name() !!}
@if (array_key_last($attribute->get_terms()) != $term_key)
,
@endif
@endforeach
@endforeach
@endif
@endif