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

{{ $category->name }}

@if ($category->description)

{{ $category->description }}

@endif
All products
@forelse ($products as $product)
{{ $product['name'] }} {{ $product['category'] }}
{{ $product['stock'] }} in stock {{ $product['rating'] }} rating

{{ $product['name'] }}

{{ $product['price_display'] }} @if ($product['compare_price_display']) {{ $product['compare_price_display'] }} @endif
@if ($product['discount_percent'] > 0) {{ rtrim(rtrim(number_format($product['discount_percent'], 2), '0'), '.') }}% off @endif
@empty

No active products in this category.

@endforelse
@endsection