@if($message->type == 0) {{--from client--}}
{{abbreviateStr($thread->contact->name)}}
{{$thread->contact->name}} {{$message->created_at->diffForHumans()}}
@if($message->is_file == 0)
{{ $message->body }}
@else
{{ $message->body }}
@endif
@else
{{date_diff(new DateTime($message->created_at),new DateTime(Illuminate\Support\Carbon::now()))->format('%d days, %h hours, %i minutes')}} ago
Pic
@if($message->is_file == 0)
{{$message->body}}
@else
{{$message->body}}
@endif
@endif