@extends('layouts.support') @section('content')
arrow_back Back to Tickets / Ticket #{{ $ticket->id }}
@if($ticket->status === 'open')
@csrf
@else
@csrf
@endif Back

Ticket #{{ $ticket->id }}

{{ strtoupper($ticket->status) }}

"{{ $ticket->subject }}"

@if(session('success'))
{{ session('success') }}
@endif
description

Description

Created {{ $ticket->created_at->diffForHumans() }}

{{ $ticket->description }}

@if($ticket->module) @php $modules = is_string($ticket->module) ? json_decode($ticket->module, true) : (is_array($ticket->module) ? $ticket->module : []); @endphp

Modules

@foreach($modules as $mod) {{ $mod }} @endforeach
@endif @if($ticket->attachments && $ticket->attachments->count() > 0) @php $images = $ticket->attachments->filter(function($att) { return in_array(strtolower(pathinfo($att->file_name, PATHINFO_EXTENSION)), ['jpg', 'jpeg', 'png', 'gif', 'webp']); }); $documents = $ticket->attachments->filter(function($att) { return !in_array(strtolower(pathinfo($att->file_name, PATHINFO_EXTENSION)), ['jpg', 'jpeg', 'png', 'gif', 'webp']); }); @endphp

Attachments ({{ $ticket->attachments->count() }})

@if($images->count() > 0)
@foreach($images as $image)
{{ $image->file_name }}

{{ $image->file_name }}

download
@endforeach
@endif @if($documents->count() > 0) @endif
@endif
forum

Replies

@if($replies->count())
@foreach($replies as $reply)
{{ $reply->replied_by === 'admin' ? 'admin_panel_settings' : 'person' }}
@if($reply->replied_by === 'admin')

{{ $reply->admin_name }} (Admin)

@else

{{ $reply->company_name ?? 'You' }}

@endif
{{ $reply->created_at->format('M d, Y H:i') }}

{{ $reply->message }}

@if($reply->attachments && $reply->attachments->count()) @php $replyImages = $reply->attachments->filter(function($att) { return in_array(strtolower(pathinfo($att->file_name, PATHINFO_EXTENSION)), ['jpg', 'jpeg', 'png', 'gif', 'webp']); }); $replyDocuments = $reply->attachments->filter(function($att) { return !in_array(strtolower(pathinfo($att->file_name, PATHINFO_EXTENSION)), ['jpg', 'jpeg', 'png', 'gif', 'webp']); }); @endphp
@if($replyImages->count() > 0)
@foreach($replyImages as $image) {{ $image->file_name }} @endforeach
@endif @if($replyDocuments->count() > 0) @endif
@endif
@endforeach
@else
chat_bubble

No replies yet

Be the first to respond to this ticket.

@endif
@if($ticket->status === 'open')

Add Reply

@csrf

Max 2MB per file. Allowed: Images, PDF, DOC, DOCX, XLS, TXT

@else
This ticket is closed. Reopen it to add replies.
@endif

Customer Information

business

{{ $ticket->company_name ?? 'Company' }}

Active Organization

mail

Email Address

Loading...

call

Contact

verified

Service Plan

N/A

calendar_month

Expiry Date

N/A

Metadata

Company {{ $ticket->company_name ?? 'Company' }}
Created

{{ $ticket->created_at->format('M d, Y') }}

{{ $ticket->created_at->format('H:i') }}

Updated

{{ $ticket->updated_at->format('M d, Y') }}

{{ $ticket->updated_at->format('H:i') }}

@endsection