34702-vm/dashboard.php
2025-10-05 21:53:53 +00:00

44 lines
1.6 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
require_once 'header.php';
if (!isset($_SESSION['loggedin']) || !isset($_SESSION['user_id'])) {
header('Location: /login.php');
exit;
}
$user_role = $_SESSION['role'] ?? 'talent';
?>
<div class="container mt-5">
<h1>Panelim</h1>
<p>Hoş geldin, <strong><?php echo htmlspecialchars($_SESSION['user_name']); ?></strong>!</p>
<p>Burası sizin kişisel paneliniz. Projeyle ilgili işlemlerinizi buradan yönetebilirsiniz.</p>
<hr>
<?php if ($user_role === 'talent'): ?>
<div class="list-group">
<a href="/apply.php" class="list-group-item list-group-item-action">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">Başvuru Yap / Profili Düzenle</h5>
</div>
<p class="mb-1">Profil bilgilerinizi (biyografi, kategori vb.) buradan doldurabilir veya güncelleyebilirsiniz.</p>
</a>
<a href="/status.php" class="list-group-item list-group-item-action">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">Başvuru Durumunu Kontrol Et</h5>
</div>
<p class="mb-1">Profilinizin onay durumunu buradan takip edebilirsiniz.</p>
</a>
</div>
<?php elseif ($user_role === 'agency'): ?>
<p>Ajans paneli özellikleri yakında burada olacak.</p>
<?php elseif ($user_role === 'admin'): ?>
<p>Yönetim işlemleri için <a href="/admin.php">Admin Paneli</a>'ni kullanabilirsiniz.</p>
<?php endif; ?>
</div>
<?php require_once 'footer.php'; ?>