@use('Namu\WireChat\Facades\WireChat') @php $group = $conversation->group; @endphp
{{-- Return --}} isWidget()) @click="$dispatch('close-chat',{conversation: {{json_encode($conversation->id)}} })" dusk="return_to_home_button_dispatch" @else href="{{ route(WireChat::indexRouteName(), $conversation->id) }}" dusk="return_to_home_button_link" @endif @class([ 'shrink-0 cursor-pointer dark:text-white', 'lg:hidden' => !$this->isWidget(), ]) id="chatReturn"> {{-- Receiver wirechat::Avatar --}}
{{-- Group --}} @if ($conversation->isGroup())
{{ $group?->name }}
@if(timebank_config('wirechat.disappearing_messages.enabled', true)) @php $durationInDays = timebank_config('wirechat.disappearing_messages.duration', 30); @endphp

{{ __('Messages deleted after :days days', ['days' => $durationInDays]) }}

@endif
@else {{-- Not Group --}}
{{ $receiver?->display_name }} @if ($conversation->isSelfConversation()) ({{ __('wirechat::chat.labels.you') }}) @endif
@if(timebank_config('wirechat.disappearing_messages.enabled', true)) @php $durationInDays = timebank_config('wirechat.disappearing_messages.duration', 30); @endphp
{{ __('messages.wirechat.messages_deleted_after', ['days' => $durationInDays]) }} {{ __('Click on message actions (three dots) to keep.')}}
@endif
@endif
{{-- Header Actions --}}
@if ($conversation->isGroup()) {{-- Open group info button --}} @else {{-- Open chat info button --}} @endif @if ($this->isWidget()) @lang('wirechat::chat.actions.close_chat.label') @else @lang('wirechat::chat.actions.close_chat.label') @endif {{-- Only show delete and clear if conversation is NOT group --}} @if (!$conversation->isGroup()) @endif @if ($conversation->isGroup() && !$this->auth->isOwnerOf($conversation)) @endif