@if (session()->has('message'))
{{ session('message') }}
@endif @if (session()->has('error'))
{{ session('error') }}
@endif

Brands

@forelse($brands as $brand)

{{ $brand->name }}

{{ $brand->products_count }} products @if($brand->description) • {{ Str::limit($brand->description, 50) }} @endif

@empty

No brands found

@endforelse
@if($brands->hasPages())
{{ $brands->links() }}
@endif

{{ $isEditing ? 'Edit Brand' : 'Add New Brand' }}

@error('name') {{ $message }} @enderror
@error('description') {{ $message }} @enderror
@if($isEditing) @endif