@foreach($conversationUsers as $conversationUser) @php if($conversationUser->sender_id == Auth::id()){ $receiver = $conversationUser->receiver; }else{ $receiver = $conversationUser->sender; } @endphp @if($conversationUser->job)
  • photo

    Job: {{Str::limit($conversationUser->job->job_title, 25)}}

    {{ $receiver->company->company_name }}

    {{ Str::limit($conversationUser->last_message->message, 25) }}

    {{Carbon\Carbon::parse($conversationUser->last_message->created_at)->diffForHumans()}}
  • @endif @endforeach