@extends('Client.layouts.layout') @section('title', $Category?->title() ?? __('trans.categories') ) @section('content')
@if($Category) @if ( $Category->Children->count() )
@foreach ( $Category->Children as $Category)
{{ $Category->title() }}

{{ $Category->title() }}

@endforeach
@elseif ($Category->Products->where('status',1)->count())
@foreach ($Category->Products->where('status',1) as $Product)
@include('Client.layouts.product',['Product'=>$Product])
@endforeach
@else
data-not-found

@lang('trans.Data not found')

@endif @else
@foreach ($Categories as $Category)
{{ $Category->title() }}

{{ $Category->title() }}

@endforeach
@endif
@endsection