• @php $attachment = $message->has_attachment == 1 ? $message->fileUrl() : null; @endphp @if ($attachment) @php $file = $message->fileNew($message->objectFile()->first()->file_id)->first(); @endphp @if (in_array(strtolower($file->params['type']), ['jpg', 'jpeg', 'png'])) {{ $message->message }} @else {{ $message->message }} @endif @else {!! $message->message !!} @endif
    {{ strtotime($message->date) < strtotime('-3 days') ? $message->date : \Carbon\Carbon::parse($message->date)->diffForhumans() }}