@extends('ecommerce::frontend.layout.main2') @section('title') {{ $category->page_title ?? $category->name }} - {{ $ecommerce_setting->site_title ?? 'Shop' }} @endsection @section('description') {{ $category->short_description ?? $category->meta_description ?? 'Browse ' . $category->name . ' collection' }} @endsection @section('content') @include('ecommerce::frontend.partials.header')
Home Shop {{ $category->name }}
@if($category->image)
{{ $category->name }}
{{ $category->name }}

{{ $category->page_title ?? $category->name }}

@if($category->short_description)

{{ $category->short_description }}

@endif
@else

{{ $category->name }}

@if($category->short_description)

{{ $category->short_description }}

@endif
@endif
@if($sub_categories->count() > 0)
@foreach($sub_categories as $sub_category) @php $productCount = DB::table('products') ->where('category_id', $sub_category->id) ->where('is_active', 1) ->where('is_online', 1) ->count(); @endphp
{{ $sub_category->name }} {{ $productCount }} {{ $productCount == 1 ? 'product' : 'products' }}
@endforeach
@else

No Products Yet

Products in this category are coming soon. Check back later!

@endif
@endsection @section('script') @endsection