@extends('layouts.app') @section('content')

Edit Category

Update category information

Back to Categories
@csrf @method('PUT')
@error('name')

{{ $message }}

@enderror

A unique, descriptive name for the category

Current slug: {{ $category->slug }}

The slug will be automatically regenerated if you change the category name.

@error('description')

{{ $message }}

@enderror

Help users understand what this category is for

@if($category->products()->count() > 0)

Category Usage

This category currently has {{ $category->products()->count() }} {{ Str::plural('product', $category->products()->count()) }} associated with it.

@endif
Cancel
@endsection