{{-- Delete Message Button --}} @if ($isSender)
@endif {{-- Card --}}
@if (@$attachment->type != 'image' || $message)
{!! ($message == null && $attachment != null && @$attachment->type != 'file') ? $attachment->title : nl2br($message) !!} {!! $timeAndSeen !!} {{-- If attachment is a file --}} @if(@$attachment->type == 'file') {{$attachment->title}} @endif
@endif @if(@$attachment->type == 'image')
{{ $attachment->title }}
{!! $timeAndSeen !!}
@endif