diff --git a/app/Filament/Admin/Resources/InternApplications/InternApplicationResource.php b/app/Filament/Admin/Resources/InternApplications/InternApplicationResource.php
index 71abce1..53e4779 100644
--- a/app/Filament/Admin/Resources/InternApplications/InternApplicationResource.php
+++ b/app/Filament/Admin/Resources/InternApplications/InternApplicationResource.php
@@ -187,6 +187,66 @@ class InternApplicationResource extends Resource
->columnSpanFull()
]),
+ Tab::make('Staj Defteri & Onay')
+ ->icon('heroicon-o-book-open')
+ ->schema([
+ \Filament\Forms\Components\Placeholder::make('notebook_view')
+ ->label('Doldurulan Staj Defteri')
+ ->content(function ($record) {
+ if (!$record) return 'Henüz başvuru bulunmamaktadır.';
+ $days = \App\Http\Controllers\CareerController::getInternshipDates($record->internship_start_date, $record->internship_total_days);
+ if (empty($days)) return 'Staj başlangıç tarihi veya süresi girilmemiş.';
+
+ $saved = $record->journalEntries()->get()->keyBy('day_number');
+
+ $html = '
';
+ foreach ($days as $d) {
+ $dayNum = $d['day_number'];
+ $dateF = $d['formatted_date'];
+ $content = isset($saved[$dayNum]) ? $saved[$dayNum]->content : '';
+
+ $html .= '
';
+ $html .= '
';
+ $html .= ' ' . $dayNum . '. Gün Raporu';
+ $html .= ' ' . $dateF . '';
+ $html .= '
';
+ $html .= '
' . ($content ? e($content) : 'Rapor yazılmamış') . '
';
+ $html .= '
';
+ }
+ $html .= '
';
+
+ // Add preview buttons
+ $html .= '
@@ -619,9 +619,7 @@
@if($intern->signed_internship_form_path)