@extends('website.layout.app') @section('content') @if(session('success'))
{{ session('success') }}
@endif @if($errors->any())
@endif @foreach ($categories as $category) @if($category->products->count() > 0)

{{ $category->name }}


@endif
@foreach ($category->products as $product) @endforeach
@endforeach @endsection