@php /** * Collect the media a visitor can see for one project: the cover image, * the gallery images and the three possible video flavours (uploaded file, * playable external file or embeddable YouTube/Vimeo link). * * @return array{cover: string, gallery: array, videoFile: string|null, videoEmbed: string|null, videoLink: string|null, hasVideo: bool} */ $projectMedia = function (\App\Models\Project $project): array { $gallery = collect(is_array($project->gallery) ? $project->gallery : []) ->filter(fn ($item): bool => is_string($item) && $item !== '') ->map(fn (string $item): string => asset('storage/'.$item)) ->values() ->all(); $videoFile = $project->video_path ? asset('storage/'.$project->video_path) : $project->external_video_file_url; return [ 'cover' => $project->image ? asset('storage/'.$project->image) : asset('template-2026/images/yh-min.jpg'), 'gallery' => $gallery, 'videoFile' => $videoFile, 'videoEmbed' => $project->video_embed_url, 'videoLink' => $project->video_url, 'hasVideo' => $videoFile !== null || $project->video_embed_url !== null || (bool) $project->video_url, ]; }; @endphp

{{ __('Our Projects') }}

{{ __('Our dedicated experts drive startup success with strategy, innovation, and industry expertise.') }}

{{ __('Visit Our Latest Projects And Our Innovative Works') }}

{{ __('“You can do anything you set your mind to.” - Benjamin Franklin') }}

@if ($categories->isNotEmpty())
@foreach ($categories as $projectCategory) @endforeach
@endif
@forelse ($projects as $project) @php $media = $projectMedia($project); $photoCount = count($media['gallery']); $hasMedia = $photoCount > 0 || $media['hasVideo']; $staggerDelay = ($loop->index % 6) * 150; @endphp
@if ($project->url) @endif {{ $project->translatedTitle() }} @if ($project->url) @endif
@if ($photoCount > 0) {{ $photoCount }} {{ __('Photos') }} @endif @if ($media['hasVideo']) {{ __('Video') }} @endif

{{ $project->translatedTitle() }}

@if ($project->translatedExcerpt())

{{ $project->translatedExcerpt() }}

@endif @if ($photoCount > 0) {{-- Gallery preview: every thumbnail opens the shared media dialog. --}}
@foreach (array_slice($media['gallery'], 0, 4) as $index => $thumbnail) @endforeach @if ($photoCount > 4) +{{ $photoCount - 4 }} @endif
@endif @if ($hasMedia || $project->url)
@if ($hasMedia) @endif @if ($project->url) {{ __('View project') }} @endif
@endif
@empty
{{ __('No projects yet') }}

{{ $category !== '' ? __('No projects in this category yet') : __('Coming soon') }}

{{ $category !== '' ? __('Try another category to see more of our work.') : __('New projects will be published here.') }}

@endforelse
{{ __('Start a Project') }}

{{ __('Information partners') }}

{{ __('Platforms and technology partners we build with, from cloud infrastructure to design tooling.') }}

@if ($activeProject) @php $activeMedia = $projectMedia($activeProject); @endphp {{-- Media dialog: every gallery image and the video of one project. --}}
@endif {{-- Styles for the project media cards and the media dialog. They live here instead of in Projects.css because the Nicepage export is a vendored template asset that stays in sync with template_2026/. --}}