@extends('layouts.app')
@section('title', 'Product Categories')
@section('content')
<h1>Product Categories</h1>
<a href="{{ route('product-categories.create') }}">Create</a>
<ul>@foreach($categories as $category)<li>{{ $category->name }} ({{ $category->products_count }})</li>@endforeach</ul>
{{ $categories->links() }}
@endsection
