@extends('website.layout.layout') @section('content') @foreach(\Xmen\StarterKit\Models\Slider::where('active',1)->limit(5)->get() as $sld) @endforeach {{\App\Helpers\getSetting('top1text')}} @foreach(\App\Helpers\getProductByCat(\App\Helpers\getSetting('top1cat'),'id','desc',10) as $p) {{$p->name}} {{$p->getPrice()}} افزودن به سبد خرید @endforeach @foreach(\App\Helpers\getProductByCat(\App\Helpers\getSetting('top2cat'),'id','desc',2) as $p) {{$p->getPrice()}} {{\App\Helpers\getSetting('top2text')}} @endforeach @foreach(\App\Helpers\getProductByCat(\App\Helpers\getSetting('top3cat'),'id','desc',2) as $p) {{$p->getPrice()}} {{\App\Helpers\getSetting('top3text')}} @endforeach {{\App\Helpers\getSetting('sectext')}} @foreach(\App\Helpers\getProductByCat(\App\Helpers\getSetting('seccat'),'id','desc',10) as $p) {{$p->name}} {{$p->getPrice()}} افزودن به سبد خرید @endforeach همه محصولات {{\App\Helpers\getSetting('3text')}} همه @foreach(\App\Helpers\getSubCats(\App\Helpers\getSetting('3cat')) as $cat) {{$cat->name}} @endforeach @foreach(\App\Helpers\getProductByCat(\App\Helpers\getSetting('3cat'),'stock_quantity','desc',12) as $p) {{$p->name}} {{$p->getPrice()}} @endforeach واپسین مطالب @foreach(\Xmen\StarterKit\Models\Post::where('status',1)->limit(4)->get() as $p) {{$p->title}} @foreach($p->tags as $tag) {{$tag->name}} @endforeach {{$p->created_at->jdate('Y/m/d')}} {{$p->subtitle}} دیدگاه: {{$p->comments()->count()}} @endforeach همه مطالب برندها @foreach(\App\Helpers\getSubCats(\App\Helpers\getSetting('4cat')) as $cat) @endforeach @endsection
{{$p->subtitle}}