@extends('layouts.app') @section('title', $category->name) @section('content')

{{ $category->name }}

@if($category->description)

{{ $category->description }}

@endif
@if($subcategories->count() > 0)
Subcategories
@foreach($subcategories as $subcategory) @endforeach

@endif
Products
@if($products->count() > 0)
@foreach($products as $product)
{{ $product->name }} @if($product->is_featured) Featured @endif
{{ substr($product->name, 0, 30) }}

{{ substr($product->description, 0, 60) }}...

{{ \App\Support\Currency::symbol() }}{{ number_format($product->price, 2) }} @if($product->inventory->quantity > 0) In Stock @else Out of Stock @endif
@endforeach
{{ $products->links() }}
@else
\"No
No products available

in this category

@endif
@endsection