{{-- Product Details --}}
@include('themes.includes.components.product-gallery.gallery')
{{-- title & Category section --}}
{{ $product->category->trans[0]->categories_title }}

{{ $product->trans[0]->products_title }}

@if(session()->has('customer')) @csrf @else @endif
@if($product->products_points && $account->accounts_show_points) {{ __('lang.points') }}: {{ $product->products_points }}@if($product->products_points_value > 0)=@include('components.currency',['price'=>rtrim(rtrim(number_format( $product->products_points_value, 2, '.', ','), '0'), '.')]) @endif @endif {{-- Rating --}} @if($account->accounts_show_products_ratings && $product->products_rating > 0)
{{ number_format($product->products_rating, 1) }} ({{ isset($pagination) ? $pagination->total : '0' }} {{ __('lang.ratings') }})
@endif
{{-- Short Description --}} @if($product->products_desc)
@php $char = 150; @endphp {{ mb_substr(strip_tags(html_entity_decode($product->products_desc)),0,$char, 'UTF-8') }} {{ strlen(strip_tags(html_entity_decode($product->products_desc))) > $char ? '...' : '' }}
@endif
{{-- Product Choices --}} @include('themes.includes.components.product-choices.choices') {{-- Price & Cart Section --}}
{{-- Price --}}
@if($product->offer && $product->offer->offers_additional_number == 0 && $product->offer->offers_main_number == 1)
@include('components.currency',['price'=>rtrim(rtrim(number_format( $product->products_price - (($product->products_price * $product->offer->offers_discount) / 100 ) , 2, '.', ','), '0'), '.'),'id'=>'product-price-value']) @include('components.currency',['price'=>rtrim(rtrim(number_format( $product->products_price, 2, '.', ','), '0'), '.'),'id'=>'product-old-price-value'])
@else @include('components.currency',['price'=>rtrim(rtrim(number_format( $product->products_price, 2, '.', ','), '0'), '.'),'id'=>'product-price-value']) @endif
{{-- Quantity Selector --}}
{{-- Add to Cart --}}
{{-- Hidden input is now in the component, but we might need it here if component is not rendered (e.g. no choices) --}} {{-- If no choices, the component doesn't render the input. But generic addToCart might need it or ignore it. --}} {{-- The generic script checks if input exists. --}} @if($account->accounts_show_stocks != '1' || $product->products_stocks > 0) @if($product->products_available) @if($product->delivery_period && $account->accounts_show_product_delivery_period)
{{ __('lang.delivery_period_range', [ 'from' => $product->delivery_period->days_from, 'to' => $product->delivery_period->days_to ]) }}
@endif @else @endif @else {{-- Notify Me Logic if needed --}} @endif
{{-- Static Section --}}
@if(isset($static_pages)) @foreach ($static_pages as $static_page) @if($static_page->static_pages_slug == 'product_static_1') {!! isset($static_page) ? $static_page->static_pages_content : '' !!} @endif @endforeach @endif
@if( (isset($promotional_messages) && sizeof($promotional_messages) > 0) )
{{-- Promotional Messages Section --}}
@foreach($promotional_messages as $key => $promotional_message)
{{$promotional_message->promotional_messages_title}}
{{$promotional_message->promotional_messages_text}}
@endforeach
@endif {{-- Tags Sections --}} @if($product->products_tags)
{{ __('theme7.tags_title') }}
@foreach(explode(',',trim($product->products_tags)) as $tag) @if($tag != null && $tag != '') {{ $tag }} @endif @endforeach
@endif {{-- Product Description , Ratings And files --}}
@include('themes.theme7.pages.productDescription')
@include('themes.theme7.pages.products-recomendations') @include('themes.theme7.pages.product_scripts')