@lang('View Ticket Details') {{-- Header Section --}}

@lang('Ticket Details')

{{-- Main Content - Two Column Layout --}}
{{-- Left Column - Ticket Information --}}

@lang('Ticket Information')

{{-- Ticket Name/Title --}}

@lang('Ticket Name')

{{ $myTicket->name }}

{{-- Priority --}}

@lang('Priority')

{{ $myTicket->priority }}
{{-- Customer --}}

@lang('Customer Details')

{{ $myTicket->customer }}

{{ $myTicket->phone }}

{{ $myTicket->email }}

{{ $myTicket->organizations }}

{{-- Helpdesk Team --}}

@lang('Helpdesk Team')

{{ $myTicket->helpdesk_team ?? '-' }}

@lang('Assigned To')

{{ $myTicket->assigned_to ?? '-' }}

{{-- Assigned To --}}

@lang('Tags')

{{ $myTicket->tags ?? '-' }}

@lang('Created At')

{{ $myTicket->created_at ?? '-' }}

@lang('Closed At')

{{ $myTicket->closed_at ?? '-' }}

{{-- SLA Status --}}

@lang('SLA Deadline')

{{ $myTicket->sla_deadline }}

@lang('Expired At')

{{ $myTicket->sla_time }}

{{-- Stage/Status --}}

@lang('Stage')

{{ $myTicket->stage }}
{{-- Description --}}

@lang('Description')

{{ $myTicket->description ?? 'No description recorded' }}

{{-- Image Preview Area --}}

@lang('Evidence Image')

@if($myTicket->image_url) @php // Parse JSON string menjadi array $images = json_decode($myTicket->image_url, true) ?? []; @endphp
@foreach($images as $image) Ticket Image @endforeach
@else
@lang('No image uploaded')
@endif
{{-- Right Column - Ticket Logs --}} {{-- Right Column with Tabs --}}
{{-- Pipeline Navigation --}}
@php $stages = ['New', 'Pending', 'In Progress', 'Solved', 'Closed']; $currentStageIndex = array_search($myTicket->stage, $stages); @endphp @foreach($stages as $index => $stage)
{{-- Arrow shape pointing right --}} @if($index !== count($stages) - 1)
@endif {{-- Stage text --}} {{ $stage }}
{{-- Gap between arrows --}} @if($index !== count($stages) - 1)
@endif
@endforeach
@push('styles') @endpush
{{-- Tabs Navigation --}}
{{-- Tab Contents --}}
{{-- Ticket History Tab --}}
@forelse($ticketLogs as $log)
@if(!$loop->last)
@endif

{{ $log->description }}

@if($log->old_value && $log->new_value)

@lang('Changed from') {{ $log->old_value }} @lang('to') {{ $log->new_value }}

@endif

@lang('By'): {{ $log->changed_by_name ?? '-' }}

{{ $log->created_at->format('d M Y H:i') }}

@empty

@lang('No ticket history available')

@endforelse
{{-- Attachment Tab --}} {{-- Attachment Tab --}} {{-- CSS untuk scrollbar styling --}} {{-- Evidence Image Tab --}} {{-- Problem Solved Tab --}}
@push('styles') @endpush {{-- Image Modal --}} @push('scripts') @endpush @push('styles') @endpush