feat: implement quick approval dashboard for intern reports with filtered views and modal navigation

This commit is contained in:
Ümit Tunç
2026-07-17 21:40:09 +03:00
parent 161d1c86bc
commit e172afb3ac
9 changed files with 1491 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
$json = file_get_contents(__DIR__ . '/intern_data.json');
$interns = json_decode($json, true);
$report = "";
foreach ($interns as $intern) {
$report .= "========================================\n";
$report .= "NAME: " . $intern['name'] . "\n";
$report .= "Email: " . $intern['email'] . "\n";
$report .= "GitHub Repo: " . ($intern['github_repo'] ?: 'NONE') . "\n";
$report .= "Start: " . $intern['internship_start_date'] . " | End: " . $intern['internship_end_date'] . "\n";
$report .= "Total Journal Entries: " . count($intern['journal_entries']) . "\n";
foreach ($intern['journal_entries'] as $entry) {
$report .= "--- Date: " . $entry['date'] . " | Day: " . $entry['day_number'] . " | Retroactive: " . ($entry['is_retroactive'] ? 'YES' : 'NO') . " | Approved: " . ($entry['supervisor_approved'] ? 'YES' : 'NO') . "\n";
$report .= strip_tags($entry['content']) . "\n";
}
$report .= "\n\n";
}
file_put_contents(__DIR__ . '/detailed_report.txt', $report);
echo "Written to scratch/detailed_report.txt\n";