@php $status = [ 0 => ['text' => 'Open', 'class' => 'badge badge-info badge-pill', 'btn-class' => 'info'], 1 => ['text' => 'In Progress', 'class' => 'badge badge-warning badge-pill', 'btn-class' => 'warning'], 2 => ['text' => 'Closed', 'class' => 'badge badge-dark badge-pill', 'btn-class' => 'dark'], 3 => ['text' => 'Resolved', 'class' => 'badge badge-success badge-pill', 'btn-class' => 'success'], 4 => ['text' => 'Reopened', 'class' => 'badge badge-primary badge-pill', 'btn-class' => 'primary'], 5 => ['text' => 'Cancelled', 'class' => 'badge badge-danger badge-pill', 'btn-class' => 'danger'], ]; $currentStatus = $status[$ticket->status] ?? [ 'text' => 'Unknown', 'class' => 'badge rounded-pill bg-secondary', 'btn-class' => 'secondary', ]; @endphp @extends('admin.layouts.layouts') @section('title', 'View Employee Ticket') @section('page-css') @endsection @section('content') {{-- Image View Modal --}}
🎫 Employee Ticket Details
Back
@can('employee-ticket-status') @endcan
Ticket ID: {{ $ticket->id ?? '' }}
Category: {{ $ticket->ticketCategory->name ?? '-' }}
Department: {{ $ticket->ticketCategory->employeeDepartment->name ?? '-' }}
Created By: {{ $ticket->users->name ?? '' }}
Created Date: {{ $ticket->created_at->format('d-m-Y h:i A') ?? '' }}
Status:
Description: {{ $ticket->description ?? '' }}
@if (isset($ticket->voice_recording) && !empty($ticket->voice_recording)) @endif @if (isset($ticket->ticketImages) && count($ticket->ticketImages) > 0) @endif
Voice Recording
Ticket Images @if (isset($ticket->ticketImages) && count($ticket->ticketImages) > 0)
@foreach ($ticket->ticketImages as $ticketImage) @if (!empty($ticketImage->image)) @if ($ticketImage->extension == '.heic' || $ticketImage->extension == '.heif')
@else
@if (file_exists('storage/' . $ticketImage->image)) @else @endif
@endif @endif @endforeach
@endif
@can('employee-ticket-reply')
🎫 Ticket Reply
@csrf
{{ $errors->first('reply_message') }}
{{ $errors->first('attachment') }}

@include('admin.ticket-management.ajax_ticket_reply')
@endcan @endsection @section('page-js') @endsection