@extends('frontend.layouts.fix') @section('content') @section('meta_title'){{$data->meta_title}}@endsection @section('meta_keyw'){{$data->meta_keyw}}@endsection @section('meta_desc'){{$data->meta_desc}}@endsection

{{$data->product_title}}

by
@if(\App\Models\Productcoms::where('urun_id',$data->product_token)->where('status',1)->count() !=0) @php $toplam = 0; $total = \App\Models\Productcoms::getCom($data->product_token); @endphp @foreach (\App\Models\Products::where('product_token',$data->product_token)->get() as $key) @foreach (\App\Models\Productcoms::where('status',1)->where('urun_id',$key->product_token)->get() as $take) @php $toplam += $take->puan; $toplamlar = $toplam/$total; @endphp @endforeach @endforeach @php $yuvarla = round($toplamlar); @endphp @if($yuvarla == 1) @elseif($yuvarla ==2) @elseif($yuvarla == 3) @elseif($yuvarla == 4) @elseif($yuvarla == 5) @endif @else @endif ({{\App\Models\Productcoms::where('status',1)->where('urun_id',$data->product_token)->count()}} yorum)
SKU: {{$data->product_token}}
@if(\App\Models\Favories::isSave($data->product_token)) Favoriden Kaldır @else Favoriye Ekle @endif Karşılaştırmaya Ekle
Kategori: @foreach (\App\Models\Productcats::where('product_no',$data->product_token)->get() as $cat) {{$cat->getCat->category_title}}@if($loop->last) @else, @endif @endforeach
Alt Kategori: @foreach (\App\Models\Productsubcats::where('product_sno',$data->product_token)->get() as $subcat) {{$subcat->getSub->sub_title}}@if($loop->last) @else, @endif @endforeach
@if($data->product_indirim == 0)

{{$data->product_price}}


@else

{{$data->product_indirim}}

{{$data->product_price}} ₺
@endif
Satış: {{$data->product_sale}}/∞
{{$data->product_ozet}}
    {!! $data->product_compare !!}
@csrf @foreach (\App\Models\Variants::where('product_no',$data->product_token)->get() as $getvariant) @if($getvariant->getSet->size == 1)

{{$getvariant->getSet->secenek_adi}}

    @foreach (\App\Models\Productsets::where('set_top',$getvariant->variant_id)->get() as $takeVari) @if($takeVari->set_stok > 1)  
  •  
  • @endif @endforeach
@elseif($getvariant->getSet->size == 2)

{{$getvariant->getSet->secenek_adi}}

@endif @endforeach

Adet

@if($data->product_stok < 1) @else
@endif @if($data->product_stok < 1) @if(Auth::check())
@csrf
@else
@endif @else @endif
{!! $data->product_desc !!}

Müşteri Yorumları ve Cevapları

@if(\App\Models\Productcoms::where('status',1)->where('urun_id',$data->product_token)->count() != 0) @foreach (\App\Models\Productcoms::where('status',1)->where('urun_id',$data->product_token)->get() as $key)
{{ \Carbon\Carbon::parse($key->created_at)->diffForHumans() }}
puan == 1) style="width: 20%" @elseif($key->puan == 2) style="width: 40%" @elseif($key->puan == 3) style="width: 60%" @elseif($key->puan == 4) style="width: 80%" @elseif($key->puan == 5) style="width: 100%" @endif >

{{$key->yorum}}

@if($key->cevap != null)
{{ \Carbon\Carbon::parse($key->cevap_tarihi)->diffForHumans() }}

{{$key->cevap}}

@else @endif @endforeach @if(Auth::check())
@csrf
@endif @else
Bulunamadı!
Bu Ürüne Hiç Yorum Yapılmadı!
@if(Auth::check())
@csrf
@endif @endif
@if(\App\Models\Productcoms::where('urun_id',$data->product_token)->where('status',1)->count() !=0) @php $toplam = 0; $total = \App\Models\Productcoms::getCom($data->product_token); @endphp @foreach (\App\Models\Products::where('product_token',$data->product_token)->get() as $key) @foreach (\App\Models\Productcoms::where('status',1)->where('urun_id',$key->product_token)->get() as $take) @php $toplam += $take->puan; $toplamlar = $toplam/$total; @endphp @endforeach @endforeach @php $yuvarla = round($toplamlar); @endphp

Puanlama

{{$yuvarla}} out of 5
@php $sayx = \App\Models\Productcoms::where('status',1)->where('urun_id',$key->product_token)->where('puan',5)->count() @endphp @if($sayx == 0) @php $Topsay = 0; @endphp @else @php $Topsay = $sayx*5/100; @endphp @endif
5 yıldız
{{$Topsay}}%
@php $sayxb = \App\Models\Productcoms::where('status',1)->where('urun_id',$key->product_token)->where('puan',4)->count() @endphp @if($sayxb == 0) @php $Topsayb = 0; @endphp @else @php $Topsayb = $sayxb*5/100; @endphp @endif
4 yıldız
{{$Topsayb}}%
@php $sayxq = \App\Models\Productcoms::where('status',1)->where('urun_id',$key->product_token)->where('puan',3)->count() @endphp @if($sayxq == 0) @php $Topsayq = 0; @endphp @else @php $Topsayq = $sayxq*5/100; @endphp @endif
3 yıldız
{{$Topsayq}}%
@php $sayxw = \App\Models\Productcoms::where('status',1)->where('urun_id',$key->product_token)->where('puan',2)->count() @endphp @if($sayxw == 0) @php $Topsayw = 0; @endphp @else @php $Topsayw = $sayxw*5/100; @endphp @endif
2 yıldız
{{$Topsayw}}%
@php $sayxa = \App\Models\Productcoms::where('status',1)->where('urun_id',$key->product_token)->where('puan',1)->count() @endphp @if($sayxa == 0) @php $Topsaya = 0; @endphp @else @php $Topsaya = $sayxa*5/100; @endphp @endif
1 yıldız
{{$Topsaya}}%
@else

Puanlama

0 out of 5
5 yıldız
0%
4 yıldız
0%
3 yıldız
0%
2 yıldız
0%
1 yıldız
0%
@endif

Benzer Ürünler

@foreach (\App\Models\Products::where('product_bizim',1)->inRandomOrder()->limit(5)->get() as $key)
@if(\App\Models\Favories::isSave($key->product_token)) @else @endif
@foreach (\App\Models\Productcats::where('product_no',$key->product_token)->get() as $cat) {{$cat->getCat->category_title}}@if($loop->last) @else, @endif @endforeach
@foreach (\App\Models\Productsubcats::where('product_sno',$key->product_token)->get() as $subcat) {{$subcat->getSub->sub_title}}@if($loop->last) @else, @endif @endforeach
{{$key->product_title}}
@if(\App\Models\Productcoms::where('urun_id',$key->product_token)->where('status',1)->count() !=0) @php $toplam = 0; $total = \App\Models\Productcoms::getCom($key->product_token); @endphp @foreach (\App\Models\Products::where('product_token',$key->product_token)->get() as $keys) @foreach (\App\Models\Productcoms::where('status',1)->where('urun_id',$keys->product_token)->get() as $takes) @php $toplam += $takes->puan; $toplamlar = $toplam/$total; @endphp @endforeach @endforeach @php $yuvarla = round($toplamlar); @endphp @if($yuvarla == 1) @elseif($yuvarla ==2) @elseif($yuvarla == 3) @elseif($yuvarla == 4) @elseif($yuvarla == 5) @endif @else @endif ({{\App\Models\Productcoms::where('status',1)->where('urun_id',$key->product_token)->count()}} reviews)
@if($key->product_indirim == 0)
{{$key->product_price}} ₺
@else
{{$key->product_indirim}} ₺{{$key->product_price}} ₺
@endif
    {!! $key->product_compare !!}
@endforeach
@foreach(\App\Models\Products::all() as $key) @section('scr') @foreach(\App\Models\Products::all() as $key) @endforeach @endsection @endforeach
@endsection