Support Ticket #{{ $ticket->id }}
arrow_back Back to Tickets
@csrf @method('DELETE')

{{ $ticket->subject }}

Ticket #{{ $ticket->id }}

@csrf @method('PUT')
@if($ticket->status === 'open') radio_button_checked Open @elseif($ticket->status === 'closed') check_circle Closed @elseif($ticket->status === 'reopened') priority_high Reopened @endif

Company

{{ $ticket->company_name ?? $ticket->company_sno }}

Client

{{ $ticket->client_sno }}

Created

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

Updated

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

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

Modules

@foreach($modules as $module) {{ $module }} @endforeach
@endif @endif

Description

{{ $ticket->description }}
@if($ticket->attachments && $ticket->attachments->count() > 0)

Attachments

@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 @if($images->count() > 0) @endif @if($documents->count() > 0) @endif
@endif

Replies ({{ $ticket->replies ? $ticket->replies->count() : 0 }})

@if($ticket->replies && $ticket->replies->count() > 0)
@foreach($ticket->replies as $reply)

@if($reply->replied_by === 'admin') admin_panel_settings {{ $reply->admin_name }} (Admin) @else person {{ $reply->company_name ?? 'User' }} @endif

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

{{ $reply->message }}
@if($reply->attachments && $reply->attachments->count() > 0) @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)

Images

@foreach($replyImages as $image) {{ $image->file_name }}
@endforeach
@endif @if($replyDocuments->count() > 0) @endif @endif
@endforeach

Add Reply

@csrf
@error('message')

{{ $message }}

@enderror
cloud_upload

Drag files or click to browse

Max 5MB per file

@else

No replies yet

Add Reply

@csrf
@error('message')

{{ $message }}

@enderror
cloud_upload

Drag files or click to browse

Max 5MB per file

@endif

Ticket Info

@if($ticket->module)

Modules

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

{{ $mod }}

@endforeach
@endif

Replies Count

{{ $ticket->replies ? $ticket->replies->count() : 0 }}

Timeline

add_circle

Created

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

update

Last Updated

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