@if($can_send_message)

@csrf
@error('message_body')
{{ $message }}
@enderror

Max. file size: 1 MB. Allowed formats: MS Word or PDF.

@error('file')
{{ $message }}
@enderror
@else

Message can not longer be send to this user

@endif

@if($parent_chat_messages)
  • Hide From Inbox (archive)
  • |
  • Started @if($parent_chat_messages){{\Carbon\Carbon::parse($parent_chat_messages->created_at)->format('d M Y')}}@else{{\Carbon\Carbon::now()->format('d M Y')}}@endif
  • |
  • Last updated by emma

Report chat as spam

@endif
@if($chat_messages) @php $last_message = $chat_messages->first(); $same = 1; $i = 0; @endphp
@if($last_message->messageFrom->profile_photo_path)
messageFrom->profile_photo_path)}}');">
@else
@endif
{{$last_message->messageFrom->name}} {{$last_message->messageFrom->last_name}}
@foreach ($chat_messages as $message) @if($last_message && $last_message->message_from != $message->message_from) @php $same = 0; @endphp @else @php $same = 1; @endphp @endif @if($scroll_to_unread && $scroll_to_unread->id == $message->id) @php $same = 0; @endphp @endif @if(!$same) @if($i > 0)
@if($scroll_to_unread && $scroll_to_unread->id === $message->id)
@endif
@if($message->messageFrom->profile_photo_path)
messageFrom->profile_photo_path)}}');">
@else
@endif
{{$message->messageFrom->name}} {{$message->messageFrom->last_name}}
{{$message->message_body}}
{{\Carbon\Carbon::parse($message->created_at)->diffForHumans()}}
@if($message->file_name) {{$message->file_name}} @endif @if($scroll_to_unread && $scroll_to_unread->id <= $message->id && $message->message_from != Auth::user()->id)
(new)
@endif @if($scroll_to_unread && $scroll_to_unread->id === $message->id)

@endif @else
{{$message->message_body}}
@if($message->file_name) {{$message->file_name}} @endif
{{\Carbon\Carbon::parse($message->created_at)->diffForHumans()}}
@endif @else
{{$message->message_body}}
@if($message->file_name) {{$message->file_name}} @endif
{{\Carbon\Carbon::parse($message->created_at)->diffForHumans()}}
@endif @php $last_message = $message; $i++; @endphp @endforeach
@endif
@push('scripts') @endpush