@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
@if(sizeof($data['product']->prices) >0) @if($data['product']->prices[0]->discount_percent>0) {{__('Special Sale')}} @endif @endif
{{__('Code')}} : {{$data['product']->code}}

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

{{$data['product']->english_title}}
{{__('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
@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}}
{{$price->guarantee}} {{$price->guarantee}}
@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->selling_type==0)
{{fnumber_format($price->price)}} {{$prefix}}
@else
{{fnumber_format($price->price)}} {{$prefix}}
@endif @php $i++;@endphp @endforeach
@endif

{{__('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) @if($pricesAll->selling_type==0)
{{$pricesAll->seller->store_name}}
{{$pricesAll->guarantee}}

{{$pricesAll->guarantee}}

{{fnumber_format($pricesAll->price)}} {{$prefix}}
@csrf
@endif @endif @php $i++ ;@endphp @endforeach

{{__('Buy In Person')}}

@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) @if($pricesAll->selling_type==1)
{{$pricesAll->seller->store_name}}
{{$pricesAll->guarantee}}

{{$pricesAll->guarantee}}

{{fnumber_format($pricesAll->price)}} {{$prefix}}
@endif @endif @php $i++ ;@endphp @endforeach

{{__('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
@endsection @section('script') @endsection