@extends('layouts.admin') @section('title', 'Edit Category - ' . $ticketCategory->name) @section('content')
@if($ticketCategory->ticketTypes->count() > 0)
Note: This category is used by {{ $ticketCategory->ticketTypes->count() }} ticket type(s). Changes to the color will affect how these tickets are displayed.
@endif
@csrf @method('PUT')
Basic Information
@error('name')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
@error('color')
{{ $message }}
@enderror
This color will be used to identify tickets in this category
@error('sort_order')
{{ $message }}
@enderror
Lower numbers appear first
Color Presets

Click on a color below to use it as your category color:

@php $presetColors = [ '#007bff' => 'Primary Blue', '#28a745' => 'Success Green', '#dc3545' => 'Danger Red', '#ffc107' => 'Warning Yellow', '#17a2b8' => 'Info Cyan', '#6f42c1' => 'Purple', '#e83e8c' => 'Pink', '#fd7e14' => 'Orange', '#20c997' => 'Teal', '#6c757d' => 'Gray', '#343a40' => 'Dark', '#f8f9fa' => 'Light' ]; @endphp @foreach($presetColors as $colorValue => $colorName) @endforeach
@if($ticketCategory->ticketTypes->count() > 0)
Associated Ticket Types ({{ $ticketCategory->ticketTypes->count() }})
@foreach($ticketCategory->ticketTypes->take(5) as $ticketType) @endforeach @if($ticketCategory->ticketTypes->count() > 5) @endif
Name Event Price Status Actions
{{ $ticketType->name }}
{{ $ticketType->event->name }} ${{ number_format($ticketType->base_price, 2) }} {{ $ticketType->is_active ? 'Active' : 'Inactive' }}
... and {{ $ticketCategory->ticketTypes->count() - 5 }} more ticket types
@endif
Settings
is_active) ? 'checked' : '' }}>
Live Preview
Category Badge:
{{ $ticketCategory->name }}
In Ticket List:
Sample Ticket Type
$299.00
Current Statistics

{{ $ticketCategory->ticketTypes->count() }}

Ticket Types
@php $activeTypes = $ticketCategory->ticketTypes->where('is_active', true)->count(); @endphp

{{ $activeTypes }}

Active Types
@if($ticketCategory->ticketTypes->count() > 0)
Last used: {{ $ticketCategory->ticketTypes->max('updated_at')->diffForHumans() }}
@endif
Quick Actions
@if($ticketCategory->ticketTypes->count() == 0) @endif
Cancel
@endsection @push('styles') @endpush @push('scripts') @endpush