{{ __('Ticket') }} #{{ $ticket->id }}

{{ __($ticket->subject) }} · {{ __($ticket->category) }} @if ($ticket->order_id) · {{ __('Order') }} {{ $ticket->order_id }} @endif

@php $tone = ['open' => 'info', 'answered' => 'success', 'closed' => 'neutral', 'pending' => 'warning'][$ticket->status] ?? 'neutral'; @endphp {{ __(ucfirst($ticket->status)) }} @if ($ticket->status !== 'closed') @endif
{{-- Thread --}}
{{-- Message thread --}}
@forelse ($messages as $message)
{{ $message->is_staff ? ($message->user?->name ?? __('Support')) : ($message->user?->name ?? __('You')) }} ·{{ $message->created_at?->diffForHumans() }}

{{ $message->body }}

{{-- Attachments --}} @if ($message->attachments)
@foreach ($message->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 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 --}}
{{-- Header --}}
{{ __('Reply to Support') }}
{{-- Textarea --}} @error('reply')

{{ $message }}

@enderror {{-- Upload progress --}}
{{-- Pending files --}} @if ($uploadedFiles)
@foreach ($uploadedFiles as $i => $file)
@if (str_starts_with($file->getMimeType(), 'image/')) @else @endif {{ $file->getClientOriginalName() }}
@endforeach
@endif {{-- Pending GIFs --}} {{-- Toolbar --}}
{{-- Emoji --}}
{{-- Image / File --}} {{-- Link --}}

{{ __('Insert link') }}

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

Powered by Giphy

@endif
{{-- Send --}}
{{-- Overlay to close pickers --}}
@else
{{ __('This ticket is closed. Open a new one if you still need help.') }}
@endif
{{-- Meta --}}

{{ __('Details') }}

{{ __('Subject') }}
{{ __($ticket->subject) }}
{{ __('Request') }}
{{ __($ticket->category) }}
@if ($ticket->order_id)
{{ __('Order ID') }}
{{ $ticket->order_id }}
@endif
{{ __('Opened') }}
{{ rf_datetime($ticket->created_at) }}