Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 42 additions & 9 deletions dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,21 @@
// Load counts for admin/staff overview cards
$newEstimates = [];
$newRequests = [];
$myEstimates = [];
if (in_array($role, ['admin', 'staff'], true)) {
$allEstimates = portalLoadEstimateRequests();
$newEstimates = array_filter($allEstimates, function ($r) { return ($r['status'] ?? '') === 'new'; });
$allRequests = portalLoadRequests();
$newRequests = array_filter($allRequests, function ($r) { return ($r['status'] ?? '') === 'new'; });
} elseif ($role === 'client') {
$allEstimates = portalLoadEstimateRequests();
$myUsername = (string)($user['username'] ?? '');
$myEstimates = array_values(array_filter($allEstimates, function ($r) use ($myUsername) {
return (string)($r['client_username'] ?? '') === $myUsername;
}));
usort($myEstimates, function ($a, $b) {
return strcmp((string)($b['created_at'] ?? ''), (string)($a['created_at'] ?? ''));
});
}

$current_page = 'dashboard';
Expand Down Expand Up @@ -232,18 +242,13 @@
<div class="portal-card-grid">
<a href="/estimate.php" class="portal-dash-card" style="border-color: rgba(255,198,0,0.3);">
<div class="card-icon">➕</div>
<div class="card-label">Submit New Request</div>
<div class="card-label">Submit New Estimate</div>
<div class="card-sub">Start a project estimate</div>
</a>
<a href="/client/requests.php" class="portal-dash-card">
<div class="card-icon">📥</div>
<div class="card-label">My Requests</div>
<div class="card-sub">View your requests</div>
</a>
<a href="/estimate.php" class="portal-dash-card">
<div class="card-icon">📝</div>
<div class="card-label">My Estimates</div>
<div class="card-sub">Submit or review</div>
<div class="card-label">My Estimate Requests</div>
<div class="card-sub"><?php echo count($myEstimates); ?> submitted</div>
</a>
<a href="/client/proposals.php" class="portal-dash-card">
<div class="card-icon">📄</div>
Expand All @@ -263,7 +268,7 @@
<a href="/design-debug-deploy.php" class="portal-dash-card">
<div class="card-icon">🛠️</div>
<div class="card-label">Runlevel Tools</div>
<div class="card-sub">Dev Partner tools</div>
<div class="card-sub">Dev+1 tools</div>
</a>
<a href="/contact.php" class="portal-dash-card">
<div class="card-icon">🙋</div>
Expand All @@ -272,6 +277,34 @@
</a>
</div>

<div style="background:#0c1729;border:1px solid rgba(54,243,255,0.18);border-radius:10px;padding:20px;overflow:auto;">
<h3 style="margin-top:0;color:#36f3ff;text-transform:uppercase;font-size:1rem;letter-spacing:.04em;">My Estimate Requests</h3>
<table style="width:100%;min-width:680px;border-collapse:collapse;">
<thead>
<tr>
<th style="text-align:left;padding:8px 6px;color:#5a7a9e;font-size:.76rem;text-transform:uppercase;">Estimate ID</th>
<th style="text-align:left;padding:8px 6px;color:#5a7a9e;font-size:.76rem;text-transform:uppercase;">Project Type</th>
<th style="text-align:left;padding:8px 6px;color:#5a7a9e;font-size:.76rem;text-transform:uppercase;">Status</th>
<th style="text-align:left;padding:8px 6px;color:#5a7a9e;font-size:.76rem;text-transform:uppercase;">Submitted Date</th>
</tr>
</thead>
<tbody>
<?php if (empty($myEstimates)): ?>
<tr><td colspan="4" style="padding:12px 6px;color:#7a9ac0;">No estimate requests yet.</td></tr>
<?php else: ?>
<?php foreach ($myEstimates as $est): ?>
<tr>
<td style="padding:10px 6px;border-top:1px solid rgba(54,243,255,0.12);font-family:monospace;color:#ffc600;"><?php echo pe(portalGetEstimateDisplayId($est)); ?></td>
<td style="padding:10px 6px;border-top:1px solid rgba(54,243,255,0.12);color:#a8bedc;"><?php echo pe($est['project_type'] ?? '—'); ?></td>
<td style="padding:10px 6px;border-top:1px solid rgba(54,243,255,0.12);color:#a8bedc;"><?php echo pe(ucfirst((string)($est['status'] ?? 'new'))); ?></td>
<td style="padding:10px 6px;border-top:1px solid rgba(54,243,255,0.12);color:#7a9ac0;"><?php echo pe(date('M j, Y', strtotime($est['created_at'] ?? 'now'))); ?></td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</tbody>
</table>
</div>

<?php endif; ?>

<div style="background: rgba(54,243,255,0.06); border: 1px solid rgba(54,243,255,0.15); border-radius: 8px; padding: 16px 20px; margin-top: 8px;">
Expand Down
16 changes: 8 additions & 8 deletions design-debug-deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/png" href="/assets/images/RL-icon.png">

<title>Dev Partner | Runlevel Systems</title>
<meta name="description" content="Dev Partner gives you access to Runlevel Systems as your development team when you need one.">
<meta name="keywords" content="Dev Partner, software development support, project rescue, Runlevel Tools, deployment support">
<title>Dev+1 | Runlevel Systems</title>
<meta name="description" content="Dev+1 gives you access to Runlevel Systems as your development team when you need one.">
<meta name="keywords" content="Dev+1, software development support, project rescue, Runlevel Tools, deployment support">
<link href="assets/css/coreloop.css" rel="stylesheet">
</head>
<body>
<?php
$current_page = 'dev-partner';
$header_class = 'inner-header';
$page_subtitle = 'Your development team when you need one';
$page_subtitle = 'Your extra development help when the project needs momentum';
?>
<?php include 'includes/header.php'; ?>
<?php include 'includes/navigation.php'; ?>

<main class="service-site" aria-label="Dev Partner service page">
<main class="service-site" aria-label="Dev+1 service page">
<section class="service-hero compact">
<div class="container">
<p class="service-kicker">Dev Partner</p>
<h1>Your Development Team When You Need One</h1>
<p class="service-kicker">Dev+1</p>
<h1>Your Extra Development Help When The Project Needs Momentum</h1>
<p class="service-lead">Need help building, fixing, launching, or improving software? Runlevel Systems can work alongside your team or handle development for you.</p>
<p class="hero-tagline">DESIGN • DEBUG • DEPLOY</p>
<div class="service-actions">
Expand All @@ -35,7 +35,7 @@

<section class="service-section">
<div class="container">
<h2>Who Dev Partner Is For</h2>
<h2>Who Dev+1 Is For</h2>
<ul class="service-icon-list single-column">
<li>Customers who need help finishing a project</li>
<li>Customers who need a complete application built</li>
Expand Down
Loading
Loading