@extends('admin.layouts.app') @section('title', 'Edit Spare Part Category') @section('content')
{{-- Header --}}

Edit Spare Part Category

Categories / {{ $sparePartCategory->name }}
ID: {{ $sparePartCategory->id }} {{ $sparePartCategory->created_at?->format('d M Y') }} {{ $sparePartCategory->spare_parts_count ?? $sparePartCategory->spareParts()->count() }} parts
@if($errors->any())
Please fix:
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif
@csrf @method('PUT')
{{-- LEFT --}}
{{-- Icon Picker --}}
{{ old('icon', $sparePartCategory->icon ?: 'πŸ“¦') }}
Click the icon to open picker, or type/paste an emoji below.
{{-- Name --}}
@error('name')
{{ $message }}
@enderror
{{-- Description --}}

Status
Visible to garages
{{-- RIGHT: Preview --}}
Live Preview
{{ $sparePartCategory->icon ?: 'πŸ“¦' }}
{{ $sparePartCategory->name }}
{{ $sparePartCategory->is_active ? 'Active' : 'Inactive' }}
{{ $sparePartCategory->description }}
{{ $sparePartCategory->spareParts()->count() }}
Spare Parts
{{ $sparePartCategory->slug }}
Slug
Tips
  • Pick an emoji that visually represents the category
  • Use clear, descriptive names for easy navigation
  • Sort order controls the display position
  • Inactive categories won't be shown to garages
@endsection