@extends('layouts.app') @section('styles') @endsection @section('content')
@php use App\Models\Support; $ticketStatusClasses = [ Support::OPEN => 'ticket-open', Support::AWAITING_USER_RESPONSE => 'ticket-waiting', Support::USER_REPLIED => 'ticket-replied', Support::CLOSED => 'ticket-completed', ]; $ticketPriorityClasses = ['priority-low', 'priority-medium', 'priority-high']; $ticketPriority = ['Low', 'Medium', 'High']; @endphp
Ticket Information

SUBJECT

{{ $ticket->subject }}

{{ $status_labels[$ticket->status] }}

Business Name

{{ $ticket->user->userable->business_name }}

Client Name

{{ $ticket->user->name }}

Department

{{ $ticket->department == 0 ? 'General' : ($ticket->department == 1 ? 'Sales/Billings' : 'Technical') }}

Submitted

{{ $ticket->created_at->format('M j, Y h:iA') }}

Last Updated

{{ \Carbon\Carbon::parse($ticket->updated_at)->diffForHumans() }}

@if ($ticket->status !== Support::CLOSED)
@csrf @method('patch')
@endif

{{ $ticket->subject }}

Ticket Submitted on {{ $ticket->created_at->format('M j, Y h:iA') }}

{{ $ticket->user->name }}
{{ $ticket->created_at->format('d/m/Y h:iA') }}

{!! $ticket->description !!}

@if ($ticket->attachments->count() > 0)

Attachments:

@foreach ($ticket->attachments as $index => $attachment) @endforeach @endif
@foreach ($ticket->replies as $reply)
{{ $reply->user->userable_type == App\Models\Staff::class ? 'Support | DigiSplix' : $reply->user->name }}
{{ $reply->created_at->format('d/m/Y h:iA') }}

{!! $reply->reply !!}

@if ($reply->attachments->count() > 0)

Attachments:

@foreach ($reply->attachments as $index => $attachment) @endforeach @endif
@endforeach

Type Reply

Upload Attachments (Optional)

@csrf
Drop files here or click to upload. +
@section('script') @endsection @endsection