<!DOCTYPE html>
<html>
<head>
    <title>New Job Application</title>
</head>
<body style="font-family: Arial, sans-serif; line-height: 1.6; color: #333; max-width: 600px; margin: 0 auto; padding: 20px;">
    <h2>New Application Received</h2>
    
    <p>Hi {{ $application->job->creator->name ?? 'there' }},</p>
    
    <p>You have received a new application from <strong>{{ $application->freelancer->name }}</strong> for your job post: <strong>{{ $application->job->title }}</strong>.</p>
    
    <div style="background: #f8f9fa; padding: 15px; border-radius: 5px; margin: 20px 0;">
        <p><strong>Freelancer Name:</strong> {{ $application->freelancer->name }}</p>
        <p><strong>Cover Letter:</strong></p>
        <p>{!! nl2br(e($application->cover_letter)) !!}</p>
    </div>
    
    <p>You can review this application and respond through your company dashboard.</p>
    
    <a href="{{ route('company.jobs.applications', $application->job->id) }}" style="display: inline-block; padding: 10px 20px; background-color: #405189; color: #fff; text-decoration: none; border-radius: 5px; margin-top: 10px;">View Applications</a>
    
    <p style="margin-top: 30px; font-size: 12px; color: #777;">
        Thanks,<br>
        The Infra24 Team
    </p>
</body>
</html>
