Skip to content

Commit

Permalink
improve last seen
Browse files Browse the repository at this point in the history
  • Loading branch information
butburg committed Sep 4, 2024
1 parent 1bcd30b commit fb926f6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/resources/views/profile/show.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,12 @@ class="mb-6 overflow-hidden bg-c-primary/10 p-6 shadow-sm sm:rounded-lg">

<div class="text-sm text-gray-400">
<p>
<strong>Seen:</strong>
Last time seen:
@if ($user->session)
Online
{{ \Carbon\Carbon::parse($user->session->last_activity)->diffInMinutes() }}
@else
{{ $mostRecentUpdatedAt->diffForHumans() }}
{{ $mostRecentUpdatedAt->format('d.m.y') }}
@endif
</p>
</div>
Expand All @@ -72,7 +73,8 @@ class="mb-6 overflow-hidden bg-c-primary/10 p-6 shadow-sm sm:rounded-lg">
<!-- User Posts Section -->
<div
class="posts-container overflow-hidden bg-c-primary/10 p-6 text-c-text shadow-sm sm:rounded-lg">
<h3 class="mb-4 text-lg truncate font-bold">Posts by {{ $user->name }}
<h3 class="mb-4 truncate text-lg font-bold">Posts by
{{ $user->name }}
</h3>
<ul class="flex flex-wrap gap-x-8">
@forelse ($posts as $post)
Expand Down

0 comments on commit fb926f6

Please sign in to comment.