{{ Auth::user()->name }}
{{ Auth::user()->getRoleNames()->first() }}
    @forelse($conversaciones as $conv)
  • {{ $conv->name }}
    {{ $conv->getRoleNames()->first() }}
    @if($conv->no_leidos > 0) {{ $conv->no_leidos }} @endif
  • @empty
  • No hay conversaciones

  • @endforelse
@if($conversacionActiva && $usuarioActivo)
{{ $usuarioActivo->name }}
En línea
    @foreach($mensajes as $mensaje)
  • @if($mensaje->remitente_id != Auth::id())
    @endif

    {{ $mensaje->contenido }}

    @if($mensaje->remitente_id == Auth::id()) @endif {{ $mensaje->created_at->format('h:i A') }}
  • @endforeach
@else

Selecciona una conversación para comenzar

@endif
@push('scripts') @endpush