<?php
// Define variables passed from the controller
$typeEntry   	= isset($typeEntry) ? $typeEntry : '';
$activityName   = isset($activityName) ? $activityName : '';
$createdAt      = isset($createdAt) ? $createdAt : '';
$createdBy      = isset($createdBy) ? $createdBy : '';
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="preconnect" href="https://fonts.googleapis.com">
	<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
	<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@100;300;400;500;700&family=Montserrat:wght@200;300;400;500;600;700;800&display=swap" rel="stylesheet">
    
    <title>[<?= date('jS/m/Y', strtotime($createdAt)); ?>] New <?= $typeEntry ?> Created - UCOLD Website</title>
	<style>
        body { font-family: 'Montserrat', sans-serif; color: #333; line-height: 1.6; background: #f7f7f7; padding: 20px 0; }
        .container { max-width: 600px; margin: 0 auto; background: #fff; border-radius: 5px; box-shadow: 0 0 10px rgba(0,0,0,0.1); border-top: 4px solid #10194b; }
        .header { padding: 20px; text-align: center; border-bottom: 1px solid #eee; }
        .content { padding: 20px; }
        .footer { padding: 20px; text-align: center; font-size: 12px; color: #777; background: #f9f9f9; }
        .btn { display: inline-block; padding: 10px 20px; background: #10194b; color: #fff; text-decoration: none; border-radius: 4px; margin-top: 15px; }
    </style>
</head>
<body>
	<div class="container" style="background:#fff;padding: 20px;">
	    <div class="header">
	        <a href="https://ucold.org" target="_blank"><img src="https://ucold.org/UCOLD-logo1.png" height="50px" style="object-fit:contain"/></a>
	    </div>
		<div class="content">
				<h3 style="font-size:16px;font-weight:600">Notification: New <?= $typeEntry ?> Created</h3>
				<hr/>
		
				<p>Hello  Admin,</p>
				
                <p>A new <?= $typeEntry ?> has been created by <strong><?php echo htmlspecialchars($createdBy); ?></strong>.</p>
				 
                            
				<p>Visit the system for a complete preview of the <?= $typeEntry ?>.</p>
				<p>&nbsp;</p>

				<div class="footer">
                    <p>The Uganda Committee on Large Dams (UCOLD)<br>
                    Uganda's National Committee to ICOLD<br>
                    <a href="https://ucold.org" style="color: #10194b;">ucold.org</a></p>
                </div>
		</div>
	</div>
</div>
</body>
</html>