@extends('layouts.front') @section('page_title', $subCat->name . ' | '. $category->name ) @php $url = URL::current(); $urls = explode('/', $url); $lasturl = end($urls); @endphp @section('extra_css') @endsection @section('extra_js') @endsection @section('main_content')
@if($sub_cat_post) @endif

@foreach($sub_cat_post_six as $post) @endforeach
@foreach($category->SubCategory->all() as $sub_cat)
@if( $sub_cat_post = \App\Models\Post::orderBy('id','desc')->where('sub_cat_id', $sub_cat->slug)->where('post_status', 1)->first() ) @endif