@extends('frontend.layouts.fix') @section('content') @section('meta_title'){{$info[0]['meta_title']}}@endsection @section('meta_keyw'){{$info[0]['meta_keyw']}}@endsection @section('meta_desc'){{$info[0]['meta_desc']}}@endsection
@if(count($data)!=0) @foreach ($data as $take) @php $key = \App\Models\Products::where('product_token',$take->product_no)->first(); @endphp
@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 @else
Bu Kategoride Ürün Bulunamadı.!
@endif
Ürün Tagları
@foreach (\App\Models\Subcategories::where('sub_status',1)->get() as $sub) {{$sub->sub_title}} @endforeach
@foreach(\App\Models\Products::all() as $key) @endforeach @section('scr') @foreach(\App\Models\Products::all() as $key) @endforeach @endsection
@endsection