@extends('layouts.account') @section('heading', __('account.support')) @section('subheading', __('support.sub')) @section('account') @php($chatStrings = [ 'failed' => __('support.send_failed'), 'limit' => __('support.attachment_limit', ['size' => '10 MB']), 'recording' => __('support.recording'), 'stop' => __('support.stop'), 'mic' => __('support.mic_denied'), 'voice' => __('support.voice_message'), ])

{{ __('account.support') }}

{{ __('support.sub') }}
{{ $conversation?->status === 'open' ? __('support.open') : __('support.archived') }}
@if ($conversation)
@forelse ($messages as $message) @include('partials.chat-message', ['message' => $message, 'viewer' => 'customer']) @empty

{{ __('support.empty') }}

@endforelse
@if ($conversation->isArchived())

{{ __('support.archived_hint') }}

@csrf
@else
@csrf

{{ __('support.attachment_limit', ['size' => '10 MB']) }}

@endif @else

{{ __('support.no_chat') }}

@csrf
@endif
@if ($archived->isNotEmpty())

{{ __('support.archive') }}

@endif
@endsection @push('head') @endpush @push('scripts') @endpush