@extends('public.layout.app') @section('title', __('front.home')) @section('body')
Afghan Online Education
FREE EDUCATION FOR ALL AFGHANS

Knowledge has no
borders,
no barriers.

دانش هیچ مرزی ندارد

Afghan Online Education - bringing accessible, high-quality education to students across the country and the diaspora in Dari, Pashto, and English.

@if (Route::has('front.apply.create')) Apply for Admission @endif @if (Route::has('front.programs.index')) Explore Programs @endif
Afghan Online Education

Professional online learning

Modern courses, volunteer faculty, student portals, and digital resources designed for Afghan learners everywhere.

Official social contact

Afghan Online Education

The official Facebook page is connected for public announcements, student communication and updates. The page describes Afghan Online Education as offering higher education programs through electronic media and the Internet.

{{-- ========== HERO / QUICK ACTION CARDS ========== --}}
@if (Route::has('front.apply.create'))
{{ __('front.online_apply') }}

{{ __('front.apply_online_for_admission_quickly') }}

{{ __('front.apply_now') }}
@endif @if (Route::has('front.membership.create'))
{{ __('front.membership') }}

{{ __('front.register_for_membership_and_benefits') }}

{{ __('front.register') }}
@endif @if (Route::has('front.volunteer.create'))
{{ __('front.volunteer_lecturer') }}

{{ __('front.join_as_a_volunteer_lecturer_and_teach') }}

{{ __('front.join') }}
@endif @if (Route::has('front.donation.create'))
{{ __('front.donation') }}

{{ __('front.support_our_programs_with_donations') }}

{{ __('front.donate') }}
@endif
{{ __('front.student_portal') }}

{{ __('front.login_courses_quizzes_results') }}

{{ __('front.login') }}
{{ __('front.teacher_portal') }}

{{ __('front.manage_courses_students_posts') }}

{{ __('front.login') }}
{{-- ========== FEATURES + UPCOMING EVENTS ========== --}}
{{ __('front.what_you_can_do') }}
{{ __('front.academics') }}
{{ __('front.faculties_departments_courses_resources') }}
{{ __('front.assessments') }}
{{ __('front.quizzes_attempts_results_grading_workflow') }}
{{ __('front.news_events') }}
{{ __('front.posts_announcements_event_schedules') }}
{{ __('front.media') }}
{{ __('front.videos_and_galleries_for_activities_campus_life') }}
{{ __('front.upcoming_events') }}
@if (Route::has('front.events.index')) {{ __('front.view_all') }} @endif
{{-- ========== ABOUT / MISSION / VISION / CAREER ========== --}}
@php $about = $pages['about'] ?? null; $mission = $pages['mission'] ?? null; $vision = $pages['vision'] ?? null; $career = $pages['career'] ?? null; @endphp
{{ $about->title ?? 'About Us' }}

{{ $about->excerpt ?? 'We provide a modern learning environment with structured programs and digital resources.' }}

@if (Route::has('front.about')) @endif
{{ $mission->title ?? 'Mission' }}

{{ $mission->excerpt ?? 'Deliver quality education through modern systems.' }}

@if (Route::has('front.mission')) {{ __('front.details') }} @endif
{{ $vision->title ?? 'Vision' }}

{{ $vision->excerpt ?? 'Build a future-ready learning community.' }}

@if (Route::has('front.vision')) {{ __('front.details') }} @endif
{{ $career->title ?? 'Career Development' }}

{{ $career->excerpt ?? 'Training, guidance, and career opportunities for students.' }}

@if (Route::has('front.career.index')) {{ __('front.explore') }} @endif
{{-- ========== LATEST POSTS ========== --}}

{{ __('front.latest_posts') }}

{{ __('front.news_announcements') }}
@if (Route::has('front.posts.index')) {{ __('front.view_all') }} @endif
@forelse($posts as $p) @php $img = $p->cover_image ?? null; $imgUrl = $img ? asset('storage/'.$img) : asset('asset/img/placeholder.jpg'); @endphp @empty
{{ __('front.no_posts_yet') }}
@endforelse
{{-- ========== GALLERIES ========== --}}

{{ __('front.galleries') }}

{{ __('front.photos_activities') }}
@if (Route::has('front.galleries.index')) {{ __('front.view_all') }} @endif
@forelse($galleries as $g) @php $img = $g->cover_image ?? null; $imgUrl = $img ? asset('storage/'.$img) : asset('asset/img/placeholder.jpg'); @endphp @empty
{{ __('front.no_galleries_yet') }}
@endforelse
{{-- ========== VIDEOS with WATCH BUTTON ========== --}}

{{ __('front.videos') }}

{{ __('front.highlights_lectures') }}
@if (Route::has('front.videos.index')) {{ __('front.view_all') }} @endif
@forelse($videos as $v) @php $img = $v->thumbnail ?? null; $imgUrl = $img ? asset('storage/'.$img) : asset('asset/img/placeholder.jpg'); // Determine the direct video URL (for the Open button) $directUrl = '#'; if (!empty($v->url)) { $directUrl = $v->url; } elseif (!empty($v->video_url)) { $directUrl = $v->video_url; } elseif (!empty($v->file_path)) { $directUrl = asset('storage/'.$v->file_path); } // Determine the detail page URL (for the Watch button) $detailUrl = Route::has('front.videos.show') && !empty($v->slug) ? route('front.videos.show', $v->slug) : $directUrl; // fallback to direct URL if no detail page @endphp
{{ $v->title }}
{{ $v->title }}

{{ $v->provider ?? 'Video' }}

@empty
{{ __('front.no_videos_yet') }}
@endforelse
{{-- ========== CONTACT CTA ========== --}}

{{ __('front.need_help_or_want_to_contact_us') }}

{{ __('front.send_us_a_message_and_we_will_respond_as_soon_as_possib') }}

@if (Route::has('front.contact')) {{ __('front.contact_us') }} @else {{ __('front.contact') }} @endif
@endsection {{-- ========== ADDITIONAL STYLES (NO COLOR CHANGES) ========== --}} @push('styles') @endpush