@php $showLeftSidebar = false; $showRightSidebar = false; $mainContentClass = 'col-12'; @endphp @extends('front_end.layouts.home') @section('title', $user->first_name . ' ' . $user->last_name . ' - Profile - Socialink') @push('styles') @include('front_end.layouts.newsfeed_styles') @endpush @section('content') @php $isOwnProfile = $loggedInUserId && $loggedInUserId === $user->id; @endphp
{{ $user->first_name }}

{{ $user->first_name }} {{ $user->last_name }}

@auth
@if(!$isOwnProfile) @if($isFriend) @elseif($friendRequestStatus === 'pending') @elseif($friendRequestStatus === 'received') @else @endif @if($isFollowing) @else @endif @else Add to story Edit profile Privacy Settings @endif
@endauth
@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
Intro
@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') }}
Photos
See all
@if(count($photoThumbs) > 0)
@foreach($photoThumbs as $image)
Photo
@endforeach
@else

No photos to show

@endif
{{ number_format($friendsCount) }} @if($mutualFriendsCount && $loggedInUserId && $loggedInUserId !== $user->id) ({{ $mutualFriendsCount }} mutual) @endif Friends
See all
@if($friends->count() > 0) @else

No friends to show

@endif
@if(count($photoThumbs) > 0)
Highlights
@php $highlightImage = $photoThumbs[0] ?? null; @endphp @if($highlightImage) @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)
Bio

{{ $user->bio }}

@endif
Personal Information
Full Name
{{ $user->first_name }} {{ $user->last_name }}
Username
{{ $user->username }}
@if($user->email)
Email
{{ $user->email }}
@endif @if($user->phone)
Phone
{{ $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)
Work & Life
@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)
Location
@if($user->address)
Lives in
{{ $user->address }}
@endif @if($user->country)
From
{{ $user->country }}
@endif @if($user->state)
State
{{ $user->state }}
@endif
@endif
Account Info
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->first_name }} {{ $friend->last_name }}
{{"@". $friend->username }}
View
@endforeach
@else

No friends to show

@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)
Photo
@endforeach
@else

No photos to show

@endif
@endsection @push('scripts') @include('front_end.layouts.newsfeed_scripts') @endpush @section('extra-js') @endsection