@extends('frontend.layouts.app') @php use App\Helpers\Helper; @endphp @section('title', 'Alumni') @section('styles') @endsection @section('content') @php $alumni = \App\Models\Alumni::first(); // or pass $alumni from controller $backgroundImage = \Illuminate\Support\Arr::first(json_decode($alumni?->images ?? '', true) ?? []) ?? 'assets/frontend/images/about-us/alumni.jpg'; @endphp
{!! Helper::content('pages.alumni') !!}

{!! Helper::content('pages.alumni_hero_heading') !!}

{{ __('pages.alumni_button') }}

{!! Helper::content('pages.alumni_intro_heading') !!}

{!! app()->getLocale() == 'en' ? $alumni->description_en : $alumni->description_np ?? $alumni->description_en !!}
@php $primarySection = $sections['primary_section'] ?? collect(); @endphp @if ($primarySection->count() > 0)
@foreach ($primarySection as $alumni) @php $companyLogo = $alumni->company_logo ? asset($alumni->company_logo) : asset('assets/backend/images/logo.png'); $testimonialImage = optional($alumni->testimonial)->image ? asset($alumni->testimonial->image) : asset('assets/backend/images/logo.png'); @endphp

{{ $alumni->full_name }} @if (!empty(optional($alumni->testimonial)->testimonial_video)) @endif

{{ $alumni->designation }} {{ __('pages.at') }} {{ $alumni->occupation }} @if ($alumni->country) {{ countries()[$alumni->country]['emoji'] }} {{-- {{ app()->getLocale() == 'en' ? countries()[$alumni->country]['name'] : Helper::getNepaliCountryName($alumni->country) }} --}} @endif

{{ __('pages.batch_of') }} {{ $alumni->batch }}

{!! optional($alumni->testimonial)->testimonial_text ?? 'No testimonial available.' !!}

@endforeach
< >
@endif
@php $secondarySection = $sections['secondary_section'] ?? collect(); @endphp @if (count($secondarySection) > 0)
{!! Helper::content('pages.alumni_profile') !!}
@foreach ($secondarySection as $alumni)
@php $profileImage = $alumni->company_logo ? asset($alumni->company_logo) : asset('assets/backend/images/logo.png'); @endphp alumni

{{ $alumni->full_name }}

{{ __('pages.batch') }}: {{ $alumni->batch }}

{!! optional($alumni->testimonial)->testimonial_text ?? 'No testimonial available.' !!}

@endforeach
< >
@endif @php $ternarySection = $sections['ternary_section'] ?? collect(); @endphp @if ($ternarySection->count() > 0)
{!! Helper::content('pages.alumni_testimonials') !!}
@foreach ($ternarySection as $alumni)
{{-- Quote Icon --}} mark {{-- Testimonial Text --}}

{!! optional($alumni->testimonial)->testimonial_text ?? 'No testimonial available.' !!}

{{-- Name + Batch --}}

{{ $alumni->full_name }}

{{ __('pages.batch') }} {{ $alumni->batch }}
@endforeach
{{-- Navigation --}}
< >
@endif

{!! Helper::content('pages.alumni_community_registration') !!}

{!! Helper::content('pages.alumni_community_registration_description') !!}

@if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @php $prefix = app()->getLocale() === 'np' ? 'तपाईंको ' : 'Your '; @endphp
@csrf
{{-- Full Name --}}
@error('full_name')

{{ $message }}

@enderror
{{-- Email --}}
@error('email')

{{ $message }}

@enderror
{{-- Mobile Number --}}
@error('mobile_number')

{{ $message }}

@enderror
{{-- Occupation --}}
@error('occupation')

{{ $message }}

@enderror
{{-- Designation --}}
@error('designation')

{{ $message }}

@enderror
{{-- Batch --}}
@error('batch')

{{ $message }}

@enderror
{{-- Country --}}
@error('country')

{{ $message }}

@enderror
{{-- Testimonial Video --}}
@error('testimonial_video')

{{ $message }}

@enderror
{{-- Company Logo --}}
@error('company_logo')

{{ $message }}

@enderror
{{-- Image --}}
@error('image')

{{ $message }}

@enderror
{{-- Testimonial Text --}}
@error('testimonial_text')

{{ $message }}

@enderror

{!! Helper::content('pages.alumni_group_heading') !!}

{!! app()->getLocale() == 'en' ? $alumnidescription->group_en : $alumnidescription->group_np ?? $alumnidescription->group_en !!}
@foreach ($links ?? [] as $link)
Background
Logo
{{ $link['name'] }} Chip
@endforeach
@endsection