@extends('layouts.app') @section('title', 'Messages | healthcareers.app') @section('robots', 'noindex, nofollow') @section('content')

Messages

Conversations about jobs, as a candidate or an employer. Answer here or straight from your email.

@if ($threads->isEmpty())

No messages yet.

Browse jobs

@else
@foreach ($threads as $t) @php $mine = $t->candidate_email === $email; @endphp

{{ $mine ? $t->posting?->title : $t->candidate_name }}

{{ $mine ? $t->posting?->org_name.' · you applied' : 'about '.$t->posting?->title }} · {{ $t->messages_count }} {{ $t->messages_count === 1 ? 'message' : 'messages' }}
{{ ($t->last_message_at ?? $t->created_at)->diffForHumans(short: true) }}
@endforeach
@endif @endsection