@extends('frontend.frontend-page-master') @section('site-title') {{$product->title}} @endsection @section('style') @endsection @section('page-title') {{$product->title}} @endsection @section('page-meta-data') @endsection @section('og-meta') {!! render_og_meta_image_by_attachment_id($product->image) !!} @php $post_img = null; $blog_image = get_attachment_image_by_id($product->image,"full",false); $post_img = !empty($blog_image) ? $blog_image['img_url'] : ''; @endphp @endsection @section('content')
@include('backend.partials.message')
@if(!empty($product->gallery)) @php $product_gllery_images = !empty( $product->gallery) ? explode('|', $product->gallery) : []; @endphp @else
{!! render_image_markup_by_attachment_id($product->image,'','large') !!}
@endif
@if(count($product->ratings) > 0)

({{count($product->ratings)}})

@endif @if(!get_static_option('display_price_only_for_logged_user'))
{{$product->sale_price == 0 ? __('Free') : amount_with_currency_symbol($product->sale_price)}} @if(!empty($product->regular_price)) {{amount_with_currency_symbol($product->regular_price)}} @endif
@endif

{{$product->short_description}}

@if($product->stock_status == 'out_stock')
{{__('Out Of Stock')}}
@else @if(!empty($product->variant)) @foreach(json_decode($product->variant) as $id => $terms) @php $variant = get_product_variant_list_by_id($id); @endphp @if(!empty($variant))
{{$variant->title}}
    @php $prices = json_decode($variant->price); @endphp @foreach($terms as $term) @php $v_term_index = array_search($term,json_decode($variant->terms,true)); @endphp
  • {{$term}} @if(isset($prices[$v_term_index]) && !empty($prices[$v_term_index])) + {{amount_with_currency_symbol($prices[$v_term_index])}} @endif
  • @endforeach
@endif @endforeach @endif @endif
@if($product->is_downloadable === 'on' && $product->direct_download === 1)
@csrf
@elseif($product->stock_status === 'in_stock')
@csrf
@endif
{{get_static_option('product_single_'.$user_select_lang_slug.'_category_text')}} {!! get_product_category_by_id($product->category_id,'link') !!}
{{get_static_option('product_single_'.$user_select_lang_slug.'_subcategory_text')}} {!! get_product_subcategory_by_id($product->subcategory_id,'link') !!}
@if(!empty($product->sku))
{{get_static_option('product_single_'.$user_select_lang_slug.'_sku_text')}} {{$product->sku}}
@endif
@if(!empty($product_attributes_title[0])) @endif @if(!empty(get_static_option('product_single_related_products_status'))) @endif
@if(count($related_products) > 0 && !empty(get_static_option('product_single_related_products_status')))
@endif
@endsection @section('scripts') @include('frontend.partials.ajax-login-form-js') @endsection