<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Worker List</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
        }
        .container {
            width: 80%;
            margin: 20px auto;
            padding: 20px;
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
        }
        h1 {
            text-align: center;
            color: #333;
        }
        .worker-list {
            list-style: none;
            padding: 0;
        }
        .worker-list li {
            display: flex;
            justify-content: space-between;
            padding: 10px;
            background-color: #f9f9f9;
            margin: 10px 0;
            border-radius: 5px;
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
        }
        .worker-list li:nth-child(odd) {
            background-color: #f1f1f1;
        }
        .worker-list li span {
            color: #555;
        }
        .worker-list li .label {
            font-weight: bold;
            color: #333;
        }
        .error {
            text-align: center;
            color: red;
            font-size: 18px;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>Available Workers</h1>
        <ul class="worker-list">
            <% if (data.length > 0) { }}
                <% data.forEach(worker => { }}
                    <li>
                        <div><span class="label">Name:</span> {{ worker.name }}</div>
                        <div><span class="label">Phone:</span> {{ worker.phone }}</div>
                        <div><span class="label">Location:</span> {{ worker.location }}</div>
                        <div><span class="label">Profession:</span> {{ worker.profession }}</div>
                    </li>
                <% }); }}
            <% } else { }}
                <div class="error">No workers available at the moment.</div>
            <% } }}
        </ul>
    </div>
</body>
</html>
