@extends('layouts.member-login') @section('title', 'Private Profile - View Posts') @section('page_title', 'PrivateProfile') @section('page_level_css') @endsection @section('content') @php $textLength = 250; @endphp
@include('member.include.user-info-box')
@include('member.include.2026-pn')

@if(isset($search_para) && !empty($search_para)) My Posts: Search Results @else My Posts @endif

@foreach ($posts as $wlp)
Profile Image
@if($wlp->who_see == 'OnlyMe') Only Me @elseif(in_array($wlp->who_see, ['Colleagues', 'TheirColleagues', 'ColleaguesDays'])) Close Colleagues @endif @if($wlp->type=="Post") @else @endif
@if($user->role == 'General') @php $pi = explode(' ' ,$user->investigator_name); $pi = $pi[1] ?? $pi[0]; @endphp

{{$pi}} Laboratory

@endif

{{$user->research_name}}

{{\Carbon\Carbon::parse($wlp->approved_time)->format('F j, Y g:i A')}}
@if($wlp->type=="Wishlist") @elseif($wlp->post_type == "Data") @elseif($wlp->post_type == "Sample") @elseif($wlp->post_type == "Skills") @endif

{{$wlp->title}}

@if($wlp->type == "Wishlist") @if($mainPostSpecies != "") @endif @endif @if($wlp->type == "Post") @if($mainPostSpecies != "") @endif @endif
Wants: @foreach($wlp->want as $key => $want) {{$want->type}} @isset($wlp->want[$key + 1]), @endisset @endforeach
Species: {{$mainPostSpecies}}
Offering: {{($wlp->post_type == 'Sample') ? 'Samples' : $wlp->post_type}}
Origin: {{config("const.post_type.".$wlp->post_origin)}}
Species: {{$mainPostSpecies}}
Keywords: @foreach($wlp->PostKeywords as $key => $keyword){{$keyword->keyword}}@isset($wlp->PostKeywords[$key + 1]), @endisset @endforeach
@php $stringLength = strlen($wlp->description); @endphp

{!!nl2br(substr($wlp->description, 0, $textLength))!!}@if($stringLength >= $textLength) See More{!!nl2br(substr($wlp->description, $textLength))!!} See Less@endif

@php $postImg = App\Models\PostDocument::select('name')->where(['type'=>'Thumbnail','post_id'=>$wlp->id])->first(); @endphp @if(!empty($postImg->name) && Storage::disk('public')->exists($postImg->name))
@endif
@foreach($wlp->message as $key => $message)

{{$message->message}}

@foreach($message->reply as $reply)

{{$reply->message}}

@endforeach
@endforeach
@endforeach
@include('member.include.tooltip-modal-box') @endsection @section('page_level_js') @endsection @push('footerscript') @endpush