@extends('layouts.app') @section('title', $ticket->r_id.' - '.$ticket->subject) @push('styles') @endpush @section('content')

{{ $ticket->r_id }} - {{ ucfirst($ticket->subject) }}

Ticket @if($ticket->priority) {{ $ticket->priority->name }} @endif @if($ticket->status) {{$ticket->status->name}} @endif @if($ticket->auto_close_on_tasks_complete && $ticket->has_tasks) Auto-close Enabled @endif
@can('tickets.edit') Edit @endcan @can('tasks.create') Add Task @endcan
@if($ticket->has_tasks)
Task Progress: {{ $ticket->task_progress }}% {{ $ticket->allTasksCompleted() ? 'Completed' : 'In Progress' }}
@php $progressClass = 'bg-success'; if ($ticket->task_progress < 25) $progressClass = 'bg-danger'; elseif ($ticket->task_progress < 50) $progressClass = 'bg-warning'; elseif ($ticket->task_progress < 75) $progressClass = 'bg-info'; @endphp
@if($ticket->allTasksCompleted()) ✅ All tasks completed @else {{ $ticket->tasks->count() }} tasks remaining @endif
@endif
Customer Information
Name:
{{ $ticket->name }}
Email:
{{ $ticket->email }}
Phone:
{{ $ticket->phone ?? 'Not provided' }}
Assignment
Assignee:
@if($ticket->assignee)
{{ strtoupper(substr($ticket->assignee->name, 0, 1)) }}
{{ $ticket->assignee->name }}
@else Unassigned @endif
Issue Type:
{{ $ticket->issueType->name ?? 'Not set' }}
Queue:
{{ $ticket->queue->name ?? 'General' }}
Description
@if($ticket->message) {!! $ticket->message !!} @else
No description provided
@endif
{{ $ticket->allTasks->count() }}
Total Tasks
{{ $ticket->created_at->format('d M') }}
Created Date
@if($ticket->has_tasks) Yes @else No @endif
Has Tasks
{{ $ticket->active ? 'Active' : 'Inactive' }}
Status
@include('admin.tickets.components.ticket-sidebar')
@push('modals') @include('admin.tickets.modals.create-task')
{{-- @include('admin.tickets.modals.attachmentsModal') --}} @endpush @endsection @push('scripts') @endpush