@extends('layouts.bootstrap') @section('title', $ticket->title) @section('breadcrumb', 'Dashboard / Ticket Management / Ticket #' . $ticket->id) @section('content')

{{ $ticket->title }}

Ticket #{{ $ticket->id }} • Created {{ $ticket->created_at->format('M d, Y H:i') }} • Last update {{ $ticket->updated_at->format('M d, Y H:i') }}
@switch($ticket->status) @case('open') Open @break @case('in_progress') In Progress @break @case('resolved') Resolved @break @case('closed') Closed @break @endswitch @switch($ticket->priority) @case('urgent') High @break @case('high') High @break @case('medium') Medium @break @case('low') Low @break @endswitch {{ ucfirst(str_replace('_', ' ', $ticket->category)) }}

{{ $ticket->description }}

  • Requester{{ $ticket->user->name }}
    Assignee
    @if($ticket->assignedTo)
    {{ substr($ticket->assignedTo->name, 0, 1) }}
    {{ $ticket->assignedTo->name }} @if(auth()->user()->hasPermission('assign-tickets')) @endif @if($ticket->status === 'resolved' && (auth()->user()->hasPermission('edit-tickets') || $ticket->user_id === auth()->id())) @endif @else Unassigned @if(auth()->user()->hasPermission('assign-tickets')) @endif @if($ticket->status === 'resolved' && (auth()->user()->hasPermission('edit-tickets') || $ticket->user_id === auth()->id())) @endif @endif
    Created{{ $ticket->created_at->format('M d, Y H:i') }}
    Last Updated{{ $ticket->updated_at->format('M d, Y H:i') }}
    @if($ticket->resolved_at)
    Resolved{{ $ticket->resolved_at->format('M d, Y H:i') }}
    @endif
  • Status: @if(auth()->user()->hasPermission('edit-tickets'))
    @else @switch($ticket->status) @case('open') Open @break @case('in_progress') In Progress @break @case('resolved') Resolved @break @case('closed') Closed @break @endswitch @endif
    @if(auth()->user()->hasPermission('edit-tickets')) @if($ticket->status !== 'resolved' && $ticket->status !== 'closed') @endif @endif
Additional Information

{{ $ticket->description }}

Ticket Details
Ticket ID #{{ $ticket->id }}
Category {{ ucfirst(str_replace('_', ' ', $ticket->category)) }}
Priority {{ ucfirst($ticket->priority) }}
Status {{ ucfirst(str_replace('_', ' ', $ticket->status)) }}
@forelse($ticket->comments as $comment)
{{ substr($comment->user->name, 0, 1) }}
{{ $comment->user->name }} {{ $comment->created_at->format('M d, Y H:i') }} @if($comment->is_internal) Internal @endif
{{ $comment->content }}
@empty

No comments yet

@endforelse @if($ticket->comments->count() > 0)
@endif
@forelse($ticket->activities as $activity)
{{ $activity->user->name }} {{ $activity->description }}
{{ $activity->created_at->format('M d, Y H:i') }}
@empty
{{ $ticket->user->name }} created this ticket
{{ $ticket->created_at->format('M d, Y H:i') }}
@if($ticket->updated_at != $ticket->created_at)
{{ $ticket->user->name }} updated this ticket
{{ $ticket->updated_at->format('M d, Y H:i') }}
@endif @if($ticket->resolved_at)
{{ $ticket->assignedTo ? $ticket->assignedTo->name : 'System' }} resolved this ticket
{{ $ticket->resolved_at->format('M d, Y H:i') }}
@endif @endforelse
@forelse($ticket->attachments as $attachment)
{{ $attachment->original_filename }}
Uploaded by {{ $attachment->user->name }} • {{ $attachment->file_size_human }} • {{ $attachment->created_at->format('M d, Y H:i') }}
@empty

No attachments yet

@endforelse @if($ticket->attachments->count() > 0)
@endif
Quick Actions
@if(auth()->user()->hasPermission('edit-tickets')) @if($ticket->status === 'open') @endif @if($ticket->status === 'in_progress') @endif @if($ticket->status === 'resolved') @endif @endif Back to Tickets @if(auth()->user()->hasPermission('delete-tickets') || $ticket->user_id === auth()->id()) @endif
Ticket Details
Created by {{ $ticket->user->name }}
Email {{ $ticket->user->email }}
@if($ticket->assignedTo)
Assigned to {{ $ticket->assignedTo->name }}
@endif @if($ticket->resolved_at)
Resolved {{ $ticket->resolved_at->format('M d, Y H:i') }}
@endif
Timeline
Created: {{ $ticket->created_at->format('M d, Y H:i') }}
@if($ticket->updated_at != $ticket->created_at)
Updated: {{ $ticket->updated_at->format('M d, Y H:i') }}
@endif @if($ticket->resolved_at)
Resolved: {{ $ticket->resolved_at->format('M d, Y H:i') }}
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush