feat: implement quick approval dashboard for intern reports with filtered views and modal navigation
This commit is contained in:
@@ -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";
|
||||
Reference in New Issue
Block a user