@include('themes.includes.components.product-gallery.gallery')
{{-- Product Description , Ratings And files --}}
{{--
@include('themes.theme6.pages.productDescription')
--}}
{{-- title & Category section --}}
{{ $product->trans[0]->products_title }}
{{-- share component --}}
@include('components.share', [
'url' => request()->fullUrl(),
'image' => 'http://placehold.it/300x300?text=Cool+link' ,
'description' => $product->trans[0]->products_title,
])
{{ $product->category->trans[0]->categories_title }}
SKU:{{ $product->products_code }}
{{-- Product Choices --}}
@include('themes.includes.components.product-choices.choices')
{{-- Product Price Cart btn and Fav Btn / Product Rating And Points --}}
@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'), '.')])
@include('components.currency',['price'=>rtrim(rtrim(number_format( $product->products_price, 2, '.', ','), '0'), '.')])
@else
@include('components.currency',['price'=>rtrim(rtrim(number_format( $product->products_price, 2, '.', ','), '0'), '.')])
@endif
@if($product->offer && $product->offer->offers_type == 'daily_offers')
{{ __('lang.saleEndsIn') }}
@include('themes.includes.productsCards.daily-offer-badge',['type'=>'products_dateils'])
@endif
@if(isset($product->offer) && $product->offer && $product->offer != null)
{{$product->offer->trans && sizeof($product->offer->trans) > 0 ? $product->offer->trans[0]->offers_title : ''}}
@endif
{{-- Product Rating And Points --}}
@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
@if($account->accounts_show_products_ratings && $product->products_rating > 0)
{{-- --}}
{{ number_format($product->products_rating, 1) }}
({{ isset($pagination) ? $pagination->total : '0' }} {{ __('lang.ratings') }})
@endif
{{-- Product Cart Btn And Notifi me --}}
@if($account->accounts_show_stocks != '1' || $product->products_stocks > 0)
@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
@if($product->products_available)
@else
@endif
@else
@if($account->accounts_show_products_notifications)
{{ __('lang.notifyMessageText1') }}
{{ __('lang.notifyMessageText2') }}
{{--
{{ __('lang.notifyMessageText1') }}
@if(session()->has('customer'))
{{ __('lang.notifyMe') }}
@else
{{ __('lang.notifyMe') }}
@endif
{{ __('lang.notifyMessageText2') }}
--}}
@endif
@endif
{{--
@include('themes.theme6.pages.product_welcome_bonus')
--}}
@if(isset($static_pages))
@foreach ($static_pages as $static_page)
@if($static_page->static_pages_slug == 'product_static_1')
@php $product_static_page = $static_page; @endphp
@endif
@endforeach
@endif
@if($product->products_desc || (isset($promotional_messages) && sizeof($promotional_messages) > 0) || (isset($product_static_page) && $product_static_page) )
@if($product->products_desc)
@php $char = ($dir == 'rtl' ? 300 : 300 ) ; @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
{{-- Static Section --}}
@if(isset($product_static_page))
{!! $product_static_page->static_pages_content !!}
@endif
{{-- Promotional Messages Section --}}
@if(isset($promotional_messages) && sizeof($promotional_messages) > 0)
@foreach($promotional_messages as $key => $promotional_message)
{{$promotional_message->promotional_messages_title}}
{{$promotional_message->promotional_messages_text}}
@endforeach
@endif
@endif
{{-- Tags Sections --}}
@if($product->products_tags)
{{ __('lang.tags') }}
@foreach(explode(',',trim($product->products_tags)) as $tag)
@if($tag != null && $tag != '')
{{ $tag }}
@endif
@endforeach
@endif
@include('themes.theme6.pages.productDescription')