@extends('layouts.user') @section('title', ($user->name ?? 'User') . ' – Profile') @php $isOwnProfile = auth()->check() && auth()->id() == $user->id; $location = trim(($profile->city ?? '') . ', ' . ($profile->country ?? ''), ', '); $experience = $profile->experience_years ?? $profile->years_experience ?? null; @endphp @push('styles') @endpush @section('content')
Back
{{ $user->name }}

{{ $user->name }} @if($isVerified ?? false) Verified @endif

@if($profile?->headline || $profile?->primary_specialty)

{{ $profile?->headline ?: $profile?->primary_specialty }}

@endif @if($location)

{{ $location }}

@endif
{{ $connectionsCount ?? 0 }} connections {{ $postsCount ?? 0 }} posts
@if(!$isOwnProfile && auth()->check())
@if($connectionStatus === 'none')
@csrf
@elseif($connectionStatus === 'pending') @else Connected @endif View activity
@endif @if($isOwnProfile) @endif
@if($profile?->bio)

About

{{ $profile->bio }}

@endif

Professional details

Primary specialty {{ $profile?->primary_specialty ?? '—' }}
@if($profile?->secondary_specialty)
Secondary specialty {{ $profile->secondary_specialty }}
@endif
Experience {{ $experience !== null ? $experience . ' years' : '—' }}
License type {{ $profile?->license_type ?? '—' }}
@if($profile?->nclex_status)
NCLEX {{ ucfirst($profile->nclex_status) }}
@endif @if($profile?->language_skills)
Languages {{ $profile->language_skills }}
@endif @if($profile?->preferred_shift)
Preferred shift {{ $profile->preferred_shift }}
@endif
@if(($documents ?? collect())->isNotEmpty())

Documents

@foreach($documents as $document)

{{ $document->original_filename ?? $document->type ?? 'Document' }}

{{ $document->type ?? $document->doc_type ?? 'File' }}

@if(!empty($document->file_url)) View @elseif(!empty($document->file_path)) View @endif
@endforeach
@endif {{-- Posts by this user --}}

Posts @if(($postsCount ?? 0) > 0) ({{ $postsCount }}) @endif

@if(($recentPosts ?? collect())->isNotEmpty())
@foreach($recentPosts as $post) @include('nurse.connect.partials.post-card', ['post' => $post]) @endforeach
@if(($postsCount ?? 0) > count($recentPosts))

View all posts

@endif
@else

No posts yet.

View activity @endif
@endsection