@extends('website.layout') @section('content')

{{\App\Helpers\getSetting('top1text')}}

@foreach(\App\Helpers\getProductByCat(\App\Helpers\getSetting('top2cat'),'id','desc',2) as $p) @endforeach
@foreach(\App\Helpers\getProductByCat(\App\Helpers\getSetting('top3cat'),'id','desc',2) as $p) @endforeach

{{\App\Helpers\getSetting('sectext')}}

همه محصولات

{{\App\Helpers\getSetting('3text')}}

@foreach(\App\Helpers\getSubCats(\App\Helpers\getSetting('3cat')) as $cat) @endforeach
@foreach(\App\Helpers\getProductByCat(\App\Helpers\getSetting('3cat'),'stock_quantity','desc',12) as $p)
{{$p->name}}

{{$p->name}}

{{$p->getPrice()}}
@endforeach

برندها

@foreach(\App\Helpers\getSubCats(\App\Helpers\getSetting('4cat')) as $cat) @endforeach
@endsection