{{ $achievement->title }}
{{ $achievement->author }}
{{ $achievement->published_at->format('F j, Y') }}
@if($achievement->excerpt)
{{ $achievement->excerpt }}
@endif
{{-- Google Drive Folder Images (Photo Gallery Style) --}}
@if($achievement->google_drive_folder_link)
@php
// Extract folder ID from Google Drive URL
preg_match('/folders\/([a-zA-Z0-9_-]+)/', $achievement->google_drive_folder_link, $matches);
$folderId = $matches[1] ?? null;
@endphp
@if($folderId)
Invalid Google Drive folder link. Please check the link format.
@endif
@endif
{!! $achievement->content !!}
{{-- Image Gallery --}}
@if($achievement->additional_images && count($achievement->additional_images) > 0)
Image Gallery
@foreach($achievement->additional_images as $imageUrl)
@php
$directUrl = \App\Helpers\GoogleDriveHelper::isGoogleDriveUrl($imageUrl)
? \App\Helpers\GoogleDriveHelper::getDirectUrl($imageUrl)
: $imageUrl;
@endphp
@endforeach