@props([
'chats' => null,
'robot' => null,
'conversation' => null,
])
-
{{ $robot->name }}
{{ $conversation ? $conversation->created_at->format('H:i') : \Carbon\Carbon::now()->format('H:i') }}
@lang('robots.welcomeMessage')
@foreach ($chats as $chat)
@if ($chat->user_id != 0)
-
{{ $chat->created_at->format('H:i') }}
{{ $chat->user->name }}
{{ $chat->message }}
@endif
@if ($chat->robot_id != 0)
-
{{ $chat->robot->name }}
{{ $chat->created_at->format('H:i') }}
{!! $chat->message !!}
@endif
@endforeach