<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Profile - Flex Market</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container mt-4">
    <h3>My Profile</h3>
    <div class="card">
        <div class="card-body">
            <p><strong>Name:</strong> <?= esc($user['name']) ?></p>
            <p><strong>Email:</strong> <?= esc($user['email']) ?></p>
            <p><strong>Mobile:</strong> <?= esc($user['mobile']) ?></p>
            <p><strong>Address:</strong> <?= esc($user['address'] ?? 'N/A') ?></p>
            <p><strong>Pin Code:</strong> <?= esc($user['pin_code'] ?? 'N/A') ?></p>
            <p><strong>Account Type:</strong> <?= ucfirst($user['user_type']) ?></p>
            <p><strong>Reliability Score:</strong> <?= $user['reliability_score'] ?? 0 ?></p>
        </div>
    </div>
    <a href="<?= base_url('seller/dashboard') ?>" class="btn btn-secondary mt-3">Back to Dashboard</a>
</div>
</body>
</html>
