@extends('layouts.bootstrap') @section('title', 'Edit Ticket Category') @section('breadcrumb', 'Dashboard / Ticket Management / Ticket Categories / Edit') @section('content')
Edit Ticket Category
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
A unique name for this category
@error('description')
{{ $message }}
@enderror
Optional description for this category
@error('color')
{{ $message }}
@enderror
Choose a color for this category
@error('icon')
{{ $message }}
@enderror
Bootstrap icon class (optional)
@error('sort_order')
{{ $message }}
@enderror
Lower numbers appear first
is_active) ? 'checked' : '' }}>
Inactive categories won't appear in ticket creation
Cancel
Category Preview
@if($ticketCategory->icon) @else @endif
{{ $ticketCategory->name }}
{{ $ticketCategory->slug }}

{{ $ticketCategory->description ?: 'Category description will appear here' }}

{{ $ticketCategory->is_active ? 'Active' : 'Inactive' }} Order: {{ $ticketCategory->sort_order }}
Category Stats
Total Tickets {{ $ticketCategory->ticket_count }}
Active Tickets {{ $ticketCategory->active_ticket_count }}
@if($ticketCategory->active_ticket_count > 0)
This category has {{ $ticketCategory->active_ticket_count }} active ticket(s) and cannot be deleted.
@endif
Tips
  • Use descriptive names
  • Choose distinct colors
  • Set appropriate sort order
  • Use Bootstrap icons for better UX
@endsection @push('scripts') @endpush