<!DOCTYPE html>
<html>
<head>
    <title>New Message Received</title>
</head>
<body>
    <h2>You have received a new message</h2>
    
    <p>From: {{ $message->sender->name }}</p>
    
    <p>Message:</p>
    <div style="border: 1px solid #ccc; padding: 10px; border-radius: 5px;">
        {{ $message->body }}
    </div>
    
    @if($message->attachment_path)
        <p>Attachment: 
            <a href="{{ Storage::url($message->attachment_path) }}">Download attachment</a>
        </p>
    @endif
    
    <p>
        <a href="{{ route('messages.show', $message->thread) }}">View full conversation</a>
    </p>
</body>
</html>