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

{{ __('pages.gyanodaya') }} {{ __('pages.alumni_header') }}

{{ __('pages.gyanodaya') }} {{ __('pages.alumni_header') }}

{{ 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
{{ __('pages.alumni_profile') }}
@php $secondarySection = $sections['secondary_section'] ?? collect(); @endphp
@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
< >
{{ __('pages.alumni_testimonials') }}
{{-- TERNARY SECTION --}} @php $ternarySection = $sections['ternary_section'] ?? collect(); @endphp @if ($ternarySection->count() > 0)
@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

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

{{ __('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
{!! NoCaptcha::renderJs() !!} {!! NoCaptcha::display() !!} @error('g-recaptcha-response')

{{ $message }}

@enderror

{{ __('pages.alumni_header') }}"

{{ app()->getLocale() == 'en' ? $alumnidescription->group_en : $alumnidescription->group_np ?? $alumnidescription->group_en }}

@foreach ($links ?? [] as $link)
Background
Logo
{{ $link['name'] }} Chip
@endforeach
@endsection