@php
$photoThumbs = [];
foreach ($photos as $photo) {
if($photo->media && $photo->media->count() > 0) {
foreach ($photo->media as $media) {
if($media->isImage()) {
$photoThumbs[] = $media->media_path;
if (count($photoThumbs) >= 6) {
break 2;
}
}
}
}
}
@endphp
@if($user->bio)
{{ $user->bio }}
@endif
-
{{ number_format($friendsCount) }}
@if($mutualFriendsCount && $loggedInUserId && $loggedInUserId !== $user->id)
({{ $mutualFriendsCount }} mutual)
@endif
Friends
-
{{ $followersCount }} Followers ยท {{ $followingCount }} Following
@if($user->workspace)
-
Works at {{ $user->workspace }}
@endif
@if($user->relationship)
-
{{ ucfirst($user->relationship) }}
@endif
@if($user->address)
-
Lives in {{ $user->address }}
@endif
@if($user->country)
-
From {{ $user->country }}
@endif
-
Joined {{ $user->created_at->format('M Y') }}
@if(count($photoThumbs) > 0)
@foreach($photoThumbs as $image)
@endforeach
@else
No photos to show
@endif
@if($friends->count() > 0)
@else
No friends to show
@endif
@if(count($photoThumbs) > 0)
@php
$highlightImage = $photoThumbs[0] ?? null;
@endphp
@if($highlightImage)
Recent Memories
{{ count($photoThumbs) }} recent photos
@endif
@endif
@if($isOwnProfile)
@php
$postType = 'post';
$boxAvatar = Auth::user()->avatar;
@endphp
@include('front_end.layouts.newsfeed_box')
@else
@endif
About {{ $user->first_name }}
@if($user->bio)
@endif
Full Name
{{ $user->first_name }} {{ $user->last_name }}
Username
{{ $user->username }}
@if($user->email)
@endif
@if($user->phone)
@endif
@if($user->gender)
Gender
{{ ucfirst($user->gender) }}
@endif
@if($user->date_of_birth)
Birthday
{{ $user->date_of_birth->format('M d, Y') }}
@endif
@if($user->workspace || $user->relationship)
@if($user->workspace)
Works at
{{ $user->workspace }}
@endif
@if($user->relationship)
Relationship Status
{{ ucfirst($user->relationship) }}
@endif
@endif
@if($user->address || $user->country || $user->state)
@if($user->address)
Lives in
{{ $user->address }}
@endif
@if($user->country)
From
{{ $user->country }}
@endif
@if($user->state)
@endif
@endif
Member Since
{{ $user->created_at->format('M d, Y') }}
Last Active
{{ $user->updated_at->diffForHumans() }}
@if($friends->count() > 0)
@foreach($friends as $friend)
{{ $friend->first_name }} {{ $friend->last_name }}
{{"@". $friend->username }}
View
@endforeach
@else
@endif
@php
$allPhotos = [];
foreach($photos as $photo) {
if($photo->media && $photo->media->count() > 0) {
foreach($photo->media as $media) {
if($media->isImage()) {
$allPhotos[] = $media;
}
}
}
}
@endphp
@if(count($allPhotos) > 0)
@foreach($allPhotos as $media)
@endforeach
@else
@endif