@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 --}}
| 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 ?? '' }} |
| Voice Recording | |
|---|---|
| Ticket Images | @if (isset($ticket->ticketImages) && count($ticket->ticketImages) > 0) @endif |