@extends('layouts.app') @section('title','Messagerie') @section('immersive-account','1') @section('content')
@include('account._sidebar')

Messagerie

Échangez en privé au sujet d’un don ou d’une demande d’assistance.

@forelse($conversations as $conversation)@php $other=$conversation->participants->firstWhere('id','!=',auth()->id()); $subject=$conversation->subject; $title=$subject instanceof \App\Modules\Donation\Domain\Models\Donation?$subject->items()->pluck('label')->join(', '):($subject->title??'Conversation FreeGive'); @endphp{{ mb_substr($other?->firstname??'F',0,1) }}
{{ $other?->firstname }} {{ $other?->lastname }}{{ $title }}

{{ Str::limit($conversation->latestMessage?->body??'Conversation démarrée',100) }}

@empty
▣

Aucune conversation

Utilisez « Contacter » depuis un don ou une demande publique.

@endforelse
{{ $conversations->links() }}
@endsection