@extends('backoffice.layout.master') @section('setSectionTitle', __('Messaggi')) @section('setContent')

{{ __('Le tue conversazioni con i candidati') }}

@if($conversations->isEmpty())

{{ __('Non hai ancora conversazioni con candidati.') }}

@else
@foreach($conversations as $conversation) @php $lastMessage = $conversation->refCandidateOrgConvMsgs->last(); @endphp @endforeach
{{ __('Candidato') }} {{ __('Email') }} {{ __('Ultimo messaggio') }} {{ __('Messaggi') }} {{ __('Azioni') }}
{{ $conversation->refCandidate->first_name }} {{ $conversation->refCandidate->last_name }} {{ $conversation->refCandidate->refUser->email }} @if($lastMessage) {{ \Illuminate\Support\Str::limit($lastMessage->message_content, 50) }} @else {{ __('Nessun messaggio') }} @endif {{ $conversation->refCandidateOrgConvMsgs->count() }} {{ __('Apri') }}
@endif
@endsection