@extends('web_site.account.layout') @section('account_title', trans('site.account.menu.messages')) @section('account_content')
@if ($conversations->isNotEmpty()) @endif
@forelse ($conversations as $conversation) @php $doctor = $conversation['doctor']; $last = $conversation['last_message']; $preview = $last->body ?: trans('clinic.chat.attachment'); @endphp {{ $doctor->name }} {{ $doctor->name }} {{ $last->created_at?->diffForHumans() }} @if ($last->sender_type === 'patient'){{ trans('site.chat.you') }}:@endif {{ \Illuminate\Support\Str::limit($preview, 90) }} @if ($conversation['unread_count']) @endif @empty

{{ trans('site.chat.empty') }}

{{ trans('site.chat.find_doctor') }}
@endforelse
@endsection @section('js') @endsection