#{{ $ticket->id }} · {{ $ticket->subject }}

{{ $ticket->user?->name }} · {{ $ticket->user?->email }}

{{-- Thread --}}
{{-- Message thread --}}
@forelse ($messages as $msg)
{{ $msg->user?->name ?? ($msg->is_staff ? __('Staff') : __('Customer')) }} · {{ $msg->created_at?->diffForHumans() }}
{{ $msg->body }}
{{-- Attachments --}} @if ($msg->attachments)
@foreach ($msg->attachments as $att) @if ($att['type'] === 'gif') GIF @elseif (str_starts_with($att['mime'] ?? '', 'image/')) {{ $att['name'] }} @else {{ $att['name'] }} @if (!empty($att['size'])) {{ number_format($att['size'] / 1024, 1) }} KB @endif @endif @endforeach
@endif
@empty

{{ __('No messages in this ticket yet.') }}

@endforelse
{{-- Composer --}} @if ($ticket->status !== 'closed')
@php // GIF search is powered by Giphy and needs a key of this // installation's own (Settings → Social login → Giphy; // free at developers.giphy.com). Blank = the GIF button // is not rendered, rather than a picker that can only fail. $rfGiphyKey = (string) \App\Models\Setting::get('giphy_api_key', ''); @endphp
{{-- Hidden file input --}} {{-- Composer card --}}
{{-- Header --}}
{{ __('Reply to') }} {{ $ticket->user?->name }}
{{-- Textarea --}} @error('reply')

{{ $message }}

@enderror {{-- File upload progress --}}
{{-- Pending files (uploaded) --}} @if ($uploadedFiles)
@foreach ($uploadedFiles as $i => $file)
@if (str_starts_with($file->getMimeType(), 'image/')) @else @endif {{ $file->getClientOriginalName() }}
@endforeach
@endif {{-- Pending GIFs (from picker) --}} {{-- Toolbar --}}
{{-- Emoji --}}
{{-- Emoji Picker --}}
{{-- Search --}}
{{-- Tabs --}}
{{-- Grid --}}
{{-- Image / File upload --}} {{-- Link --}}
{{-- Link popover --}}

{{ __('Insert link') }}

{{-- GIF (only when this panel has a Giphy key) --}} @if (filled($rfGiphyKey))
{{-- GIF Picker --}}

Powered by Giphy

@endif
{{-- Send --}}
{{-- Close all pickers on outside click --}}
@else
{{ __('This ticket is closed.') }}
@endif
{{-- Sidebar: status + assignment --}}

{{ __('Details') }}

{{ __('Status') }}
{{ __(ucfirst(str_replace('_', ' ', $ticket->status))) }}
{{ __('Category') }}
{{ $ticket->category ?? '—' }}
{{ __('Priority') }}
{{ ucfirst($ticket->priority) }}
@if ($ticket->order_id)
{{ __('Order') }}
#{{ $ticket->order_id }}
@endif

{{ __('Assign to staff') }}

{{ __('Actions') }}

@if ($ticket->status !== 'closed') @else @endif