Split Ticket #{{ optional($this->ticket)->ticket_code ?? $ticketId }}
@if($this->ticket)
{{-- Original Ticket Info --}}
Original Ticket
Subject: {{ $this->ticket->subject }}
Customer: {{ $this->ticket->user->name }}
Department: {{ $this->ticket->department->department_name ?? 'N/A' }}
{{-- Warning Notice --}}
Warning: This action cannot be undone. Selected responses and their attachments will be moved to a new ticket. The original ticket will remain active with its remaining responses.
@if(session()->has('error'))
@endif
{{-- New Ticket Configuration --}}
New Ticket Subject *
@error('newSubject')
{{ $message }}
@enderror
Department (optional)
Use original department ({{ $this->ticket->department->department_name ?? 'N/A' }})
@foreach($this->departments as $department)
{{ $department->department_name }}
@endforeach
@error('newDepartmentId')
{{ $message }}
@enderror
Status (optional)
Use original status ({{ optional($this->ticket->status)->label() ?? 'N/A' }})
@foreach($statusOptions as $status)
{{ $status->label() }}
@endforeach
@error('newStatus')
{{ $message }}
@enderror
Priority (optional)
Use original priority ({{ optional($this->ticket->priority)->label() ?? 'N/A' }})
@foreach($priorityOptions as $priority)
{{ $priority->label() }}
@endforeach
@error('newPriority')
{{ $message }}
@enderror
Assign To (optional)
Keep current assignment ({{ optional($this->ticket->assignedEmployee)->name ?? 'Unassigned' }})
@foreach($employees as $employee)
{{ $employee->name }}
@endforeach
@error('newAssignedUserId')
{{ $message }}
@enderror
Move assignment from original ticket to this new ticket
{{-- Responses Selection --}}
Select Responses to Move ({{ count($selectedResponseIds) }} selected)
@if($this->responses->count() > 0)
@foreach($this->responses as $response)
id, $selectedResponseIds))
class="mt-1 h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 dark:border-neutral-700 rounded pointer-events-none"
>
{{ $response->user->name ?? 'System' }}
@if($response->employee_response)
Employee
@else
Customer
@endif
@if($response->is_note)
Private Note
@endif
@if($response->original_ticket_id)
From #{{ $response->original_ticket_code ?? $response->original_ticket_id }}
@endif
{{ $response->created_at->format('M d, Y g:i A') }}
{{ Str::limit(strip_tags($response->content), 150) }}
@endforeach
Click on responses to select them for the new ticket. Selected responses will be moved along with their attachments.
@else
No responses available to split.
@endif
@error('selectedResponseIds')
{{ $message }}
@enderror
{{-- Confirmation Input --}}
Type SPLIT to confirm
@endif