{{-- About Team — History / Timeline Section --}} {{-- Same visual language as the dangerous objects timeline (sections/solutions/dangerous/actions): - Rail on the left (mobile) or centred (md+); a primary line grows with scroll, its glowing tip pinned at 65% of the viewport (initTimelineAnimation) - Year pills and event nodes light up when the tip reaches them, the event card glows with its node - Cards alternate right/left from md, linked to their node by a dashed stub - Each card fades in (autoAlpha 0→1) when its midpoint enters the viewport The markup renders the finished state (everything lit, line full). --}} @php $events = __('about.team.our_story.events'); // Detect year changes for year header labels $lastYear = null; $eventsWithMeta = collect($events)->map(function($event, $index) use (&$lastYear) { $parts = explode(' ', $event['date']); $year = array_pop($parts); $month = implode(' ', $parts); $isFirstOfYear = ($year !== $lastYear); $lastYear = $year; return array_merge($event, [ 'year' => $year, 'month' => $month, 'index' => $index, 'isFirstOfYear' => $isFirstOfYear, ]); })->all(); @endphp
{{-- Timeline container: animated by initTimelineAnimation() --}}
{{-- Rail + progress line + travelling tip --}} {{-- Events list --}}
    @foreach($eventsWithMeta as $event) {{-- Year pill: displayed once per year, sits on the rail --}} @if($event['isFirstOfYear'])
  1. {{ $event['year'] }}
  2. @endif @php $isEven = $event['index'] % 2 === 0; @endphp {{-- Event row (initially invisible, GSAP fades in on scroll) --}}
  3. {{-- Node on the rail + dashed stub toward the card --}} {{-- Card --}}
    {{ $event['alt'] ?? $event['description'] }}
    {{ $event['month'] }} {{ $event['year'] }}

    {{ $event['description'] }}

  4. @endforeach
{{-- /timeline container --}}