@extends('Layouts.frontLayout',['classBody'=>"page-wrapper page-wrapper-page container-max-width show-bottom-nav sticky-tabs"]) @section('title') {{$data['product']->title}} @endsection @section('metaData') @if(count($data['prices'])>0) @else @endif meta_data->meta_title:''}}"> meta_data->meta_tags:''}}"> meta_data->meta_description:''}}"> meta_data->facebook_meta_data:''}}" > meta_data->meta_title:''}}" > meta_data->facebook_meta_description:''}}" > meta_data->facebook_meta_image:''}}"> meta_data->twitter_meta_data:''}}" > meta_data->meta_title:''}}" > meta_data->twitter_meta_description:''}}"> meta_data->twitter_meta_image:''}}"> @endsection @section('css') @endsection @section('content') @php $Points=0; $PointsSum=0; $PointsRecommend=[]; if(count($data['comments']) !=0) { $PointsSum = $data['comments']->sum('rating'); $PointsRecommend = $data['comments']->where('recommend',0); $Points=$PointsSum/count($data['comments']); } @endphp
@php $date = \Morilog\Jalali\Jalalian::now()->getTimestamp(); @endphp
@if(sizeof($data['product']->prices) >0) @if($data['product']->prices[0]->discount_percent>0 and $data['product']->prices[0]->time_discount==1 and $date < $data['product']->prices[0]->end_date) {{__('Special Sale')}}
@endif @endif
{{__('Code')}} : {{$data['product']->code}}

{{$data['product']->title}}

{{$data['product']->english_title}}
@if(isset($settings['show_category_brand']) and $settings['show_category_brand']==1)
{{__('Category')}} : @if ($data['product']->categorys) @foreach ($data['product']->categorys->parents() as $parent) , @endforeach {{ $data['product']->categorys->title }} @endif {{__('Tags')}} : @php $tags=explode(',',$data['product']->keywords); @endphp @foreach($tags as $tage) , @endforeach {{__('Brand')}} : {{$data['product']->brands->title}}
@endif
{{__('Attributes')}}
@php $arrayAttributes_list=[];@endphp @if(isset($data['product']->short_description) and $data['product']->short_description !=null) @php $arrayAttributes_list=json_decode($data['product']->short_description); @endphp @endif @if($arrayAttributes_list!=null) @foreach($arrayAttributes_list as $key => $item)
{!! $arrayAttributes_list[$key] !!}
@endforeach @endif
{{$data['product']->fast_sending}}
{!! (isset($settings['product_text_'.$lang]))?$settings['product_text_'.$lang]:'' !!}
{{__('Free Shipping')}}
{{__('For High Orders')}} {{ (isset($settings['free_order_minimum_amount_'.$lang]))?$settings['free_order_minimum_amount_'.$lang]:'' }} {{$prefix}}
{{__('Free Shipping')}}
@php $i=0;@endphp @if(sizeof($data['prices'])==0)
{{__('Not Available In Stock')}}
@endif @foreach($data['prices'] as $price) @if($i==0) @php $d_none='block';@endphp @else @php $d_none='none';@endphp @endif
{{__('Seller')}}
{{$price->seller->store_name}}
{{$data['product']->refund}} {{$data['product']->refund}}
{{$price->guarantee}} {{$price->guarantee}}
@if($price->count >0)

{{__('Available In Stock')}}

@else

{{__('Not Available In Stock')}}

@endif
{{__('Minimum Order')}} : {{$price->minimum_order}}
{{__('Maximum Order')}} : {{$price->maximum_order}}
{{$price->leadtime_day}} {{__('Day')}} {{__('Leadtime Day')}}
@php $i++;@endphp @endforeach @if(count($data['prices'])>0)
@csrf
@php $i=0;@endphp @foreach($data['prices'] as $price) @if($price->AttributeValue!=null) @if($i==0) @php $checked='checked';@endphp @php $btnActive='btn-active';@endphp @else @php $checked='';@endphp @php $btnActive='no-active';@endphp @endif @if(isset($price->AttributeValue->property) and $price->AttributeValue->property!= '' )
@else
@endif @endif @php $i++;@endphp @endforeach
@php $i=0;@endphp @foreach($data['prices'] as $price) @if($i==0) @php $d_none='block';@endphp @else @php $d_none='none';@endphp @endif
@if($price->discount_percent>0 and $price->time_discount==1 and $date < $price->end_date) {{$price->discount_percent}}% {{fnumber_format(PriceCalculation($price->price,$price->discount_percent))}} {{$prefix}} @else {{fnumber_format($price->price)}} {{$prefix}} @endif
@php $i++;@endphp @endforeach
@if(sizeof($data['prices'])>0)
- +
@endif
@endif
@foreach($data['icon'] as $icon) {{ $icon->title}}

{{ $icon->title}}

@endforeach
@if(isset($settings['seller']) and $settings['seller']==1) {{__('Other Sellers Of This Product')}}
@php $i=0; @endphp @foreach($data['pricesAll'] as $pricesAll) @if($i==0) @php $active='active' ;@endphp @else @php $active='' ;@endphp @endif @if($pricesAll->seller!=null)
{{$pricesAll->seller->store_name}}
{{$pricesAll->guarantee}}

{{$pricesAll->guarantee}}

{{$pricesAll->leadtime_day}} {{__('Day')}} {{__('Leadtime Day')}}
@if($pricesAll->discount_percent>0) {{$pricesAll->discount_percent}}% {{fnumber_format(PriceCalculation($pricesAll->price,$pricesAll->discount_percent))}} {{$prefix}} @else {{fnumber_format($pricesAll->price)}} {{$prefix}} @endif
@csrf
@endif @php $i++ ;@endphp @endforeach
@endif

{{__('Description')}}

{!!$data['product']->description!!}

{{__('Specification')}}

@foreach($data['categoryAttribute'] as $categoryAttribute) @if(sizeof($categoryAttribute->attributeAll)>0) @foreach($categoryAttribute->attributeAll as $attribute) @php $AttributeValue=\App\Models\AttributeValue::getProductAttributeValue($attribute->id,$data['product']->id); @endphp @if(sizeof($AttributeValue)>0) @if($AttributeValue[0]->attribute_value_id ==0 and $AttributeValue[0]->text =='') @continue @endif @endif @endforeach @endif @endforeach
{{$categoryAttribute->title}}
{{$attribute->title}}

@if($AttributeValue[0]->attribute_value_id !=0 ) @else @endif

{{__('Reviews')}}

{{$Points}} {{__('From')}} 5
{{__('Out Of A Total Of')}} {{$PointsSum}} {{__('Points')}}

{{__('Leave A Comment About This Product')}}

    @foreach($data['comments'] as $comment)
  1. {{ $comment->rating }}.0 {{ $comment->title }}

    {{ $comment->fullname }}

    @if($comment->recommend==0) @elseif($comment->recommend==1)
    {{__('No Idea')}}
    @else @endif

    {!! $comment->text !!}

    @php $arrayAdvantage_list=[];@endphp @if(isset($comment->advantage) and $comment->advantage !=null and $comment->advantage !='') @php $arrayAdvantage_list=json_decode($comment->advantage); @endphp @endif @if($arrayAdvantage_list!=null) @foreach($arrayAdvantage_list as $key => $item)
    {!! $arrayAdvantage_list[$key] !!}
    @endforeach @endif @php $arrayDisAdvantage_list=[];@endphp @if(isset($comment->disadvantage) and $comment->disadvantage !=null and $comment->disadvantage !='') @php $arrayDisAdvantage_list=json_decode($comment->disadvantage); @endphp @endif @if($arrayDisAdvantage_list!=null) @foreach($arrayDisAdvantage_list as $key => $item)
    {!! $arrayDisAdvantage_list[$key] !!}
    @endforeach @endif
  2. @endforeach
@if(sizeof($data['product']->prices) >0) @if($data['product']->prices[0]->discount_percent>0) {{__('Special Sale')}} @endif @endif
{{$data['product']->title}}
@if(sizeof($data['product']->prices) >0)

{{__('Available In Stock')}}

@else

{{__('Not Available In Stock')}}

@endif
@if(sizeof($data['product']->prices) >0)
@if($data['product']->prices[0]->discount_percent>0) {{$data['product']->prices[0]->discount_percent}}% @endif @if($data['product']->prices[0]->discount_percent>0) {{fnumber_format(PriceCalculation($data['product']->prices[0]->price,$data['product']->prices[0]->discount_percent))}}   {{$prefix}} @else {{fnumber_format($data['product']->prices[0]->price)}}   {{$prefix}} @endif
@endif
@if(sizeof($data['prices'])>0) @php if (sizeof($data['product']->prices)>0) { if ($data['product']->prices[0]->AttributeValue != null) { $attributeTitle = $data['product']->prices[0]->AttributeValue->attribute->title . ' : '; $attributeId = $data['product']->prices[0]->AttributeValue->attribute->id; } else { $attributeTitle = ''; $attributeId = 0; } } else { $attributeTitle = ''; $attributeId = 0; } @endphp @if(sizeof($data['product']->prices)>0)
@csrf
- +
@endif @endif
@endsection @section('script') @endsection