Initial commit

This commit is contained in:
Ronald Huynen
2026-03-23 21:37:59 +01:00
commit 2547717edb
2193 changed files with 972171 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
<div class="flex gap-x-2 items-center">
{{-- Only show if AUTH is onwer of message --}}
@if ($lastMessage?->ownedBy($this->auth))
<span class="font-bold text-xs dark:text-white/90 dark:font-normal">
@lang('wirechat::chats.labels.you'):
</span>
@elseif(!$lastMessage?->ownedBy($this->auth) && $group !== null)
<span class="font-bold text-xs dark:text-white/80 dark:font-normal">
{{ $lastMessage->sendable?->display_name }}:
</span>
@endif
<p @class([
'truncate text-sm dark:text-white gap-2 items-center',
'font-semibold text-black' =>
!$isReadByAuth && !$lastMessage?->ownedBy($this->auth),
'font-normal text-gray-600' =>
$isReadByAuth && !$lastMessage?->ownedBy($this->auth),
'font-normal text-gray-600' =>
$isReadByAuth && $lastMessage?->ownedBy($this->auth),
])>
{{ $lastMessage->body != '' ? $lastMessage->body : ($lastMessage->isAttachment() ? '📎 '.__('wirechat::chats.labels.attachment') : '') }}
</p>
<span class="font-medium px-1 text-xs shrink-0 text-gray-800 dark:text-gray-50">
@if ($lastMessage->created_at->diffInMinutes(now()) < 1)
@lang('wirechat::chats.labels.now')
@else
{{ $lastMessage->created_at->shortAbsoluteDiffForHumans() }}
@endif
</span>
</div>