<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Project Assignment</title>
<style>
  body { font-family: Arial, sans-serif; background: #f5f5f5; margin: 0; padding: 20px; color: #333; }
  .container { max-width: 600px; margin: 0 auto; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
  .header { background: linear-gradient(135deg, #1e40af 0%, #0891b2 100%); color: #fff; padding: 28px 32px; }
  .header h1 { margin: 0 0 6px; font-size: 22px; }
  .header p { margin: 0; font-size: 13px; opacity: 0.85; }
  .body { padding: 28px 32px; }
  .greeting { font-size: 16px; margin-bottom: 18px; font-weight: 600; color: #1e293b; }
  .project-card { background: #f0f9ff; border: 1px solid #bae6fd; border-radius: 8px; padding: 18px; margin: 20px 0; }
  .project-card .project-name { font-size: 18px; font-weight: 700; color: #0369a1; margin: 0 0 4px; }
  .project-card .project-code { font-size: 12px; color: #64748b; margin: 0 0 12px; }
  .project-card table { width: 100%; border-collapse: collapse; }
  .project-card td { padding: 6px 0; font-size: 14px; border-bottom: 1px solid #e0f2fe; }
  .project-card td:first-child { font-weight: 600; color: #475569; width: 40%; }
  .project-card tr:last-child td { border-bottom: none; }
  .action-box { background: #f8faff; border-left: 4px solid #1e40af; padding: 14px 16px; margin: 20px 0; font-size: 14px; color: #475569; border-radius: 0 6px 6px 0; }
  .cta { display: inline-block; margin-top: 20px; padding: 12px 28px; background: #1e40af; color: #fff; text-decoration: none; border-radius: 6px; font-size: 14px; font-weight: 600; }
  .footer { padding: 16px 32px; font-size: 12px; color: #94a3b8; border-top: 1px solid #e2e8f0; background: #f8faff; }
</style>
</head>
<body>
<div class="container">
  <div class="header">
    <h1>🏗 Project Assignment</h1>
    <p>General Construction Manager (GCM)</p>
  </div>
  <div class="body">
    <p class="greeting">Hello <?php echo e($recipientName ?: 'Team Member'); ?>,</p>
    <p style="font-size:14px; color:#475569; margin-bottom:20px;">
      You have been assigned to a construction project. Please log in to review the project details, your responsibilities, and begin submitting your reports.
    </p>

    <div class="project-card">
      <p class="project-name"><?php echo e($projectName); ?></p>
      <p class="project-code">Code: <?php echo e($projectCode); ?></p>
      <table>
        <tr>
          <td>Your Role</td>
          <td><strong><?php echo e($assignedRole ?: 'Team Member'); ?></strong></td>
        </tr>
        <tr>
          <td>Assigned By</td>
          <td><?php echo e($assignerName); ?></td>
        </tr>
      </table>
    </div>

    <div class="action-box">
      <strong>What to do next:</strong><br>
      Log in to the system and visit the <strong>Reports</strong> section to start submitting daily progress reports. Check <strong>Compliance</strong> for any certificates required for this project.
    </div>

    <a href="<?php echo e($appUrl); ?>/projects" class="cta">View Project</a>
  </div>
  <div class="footer">
    This is an automated message from GCM. If you have questions, contact your project administrator.
  </div>
</div>
</body>
</html>
<?php /**PATH D:\nj\c\c2\cms1\backend\resources\views/emails/project-assigned.blade.php ENDPATH**/ ?>