@foreach([['111+','Photos & Media'],['5','Video Testimonials'],['500+','Student Memories'],['10+','Years of Moments']] as $s)
@endforeach
{{-- DB-managed gallery items (uploaded via admin) --}}
@if($items->count())
@foreach($items as $category => $categoryItems)
{{ ucfirst($category) }}
@foreach($categoryItems as $gi)
@if($gi->title)
{{ $gi->title }}
@endif
@endforeach
@endforeach
@endif
Classroom & Group Photos
@php
$galleryImages = [];
for($i=1;$i<=20;$i++) $galleryImages[] = ['class-'.$i.'.jpg','Class Session'];
for($i=1;$i<=21;$i++) $galleryImages[] = ['group-'.$i.'.jpg','Group Photo'];
@endphp
@foreach($galleryImages as $img)
@if(file_exists(public_path('images/gallery/'.$img[0])))
{{ $img[1] }}
@endif
@endforeach
Our Students in Japan 🇯🇵
@for($i=1;$i<=28;$i++)
@if(file_exists(public_path('images/japan/student-'.$i.'.jpg')))
Our Student in Japan
@endif
@endfor
Special Events & Celebrations
@for($i=1;$i<=4;$i++)
@if(file_exists(public_path('images/events/event-'.$i.'.jpg')))
Event
@endif
@endfor
Visa & COE Success Stories
@php
$visaFiles = [];
for($i=1;$i<=23;$i++) $visaFiles[] = 'visa-'.$i.'.jpg';
for($i=24;$i<=36;$i++) $visaFiles[] = 'coe-'.$i.'.jpg';
@endphp
@foreach($visaFiles as $vf)
@if(file_exists(public_path('images/visa/'.$vf)))
Visa / COE Approved
@endif
@endforeach
@php
$videos = [];
if(file_exists(public_path('videos'))) {
foreach(glob(public_path('videos').'/*.mp4') as $v) {
$videos[] = basename($v);
}
}
@endphp
@if(count($videos))
Student Videos & Testimonials
@foreach($videos as $video)
{{ ucfirst(str_replace(['-','_'], ' ', pathinfo($video, PATHINFO_FILENAME))) }}
@endforeach
@endif
Your Photo Could Be Here Next
Join 500+ students who have made their Japan dream a reality with Soyogi.