@extends('layouts.default') @push('title', get_phrase('Home')) @push('meta')@endpush @push('css') @endpush @section('content')

{{ get_frontend_settings('banner_title') }}

{{ get_frontend_settings('banner_sub_title') }}

@php $university = json_decode(get_homepage_settings('university')); $slider_items = json_decode($university->slider_items ?? '{}', true) ?? []; @endphp @foreach ($slider_items as $key => $slider_items) @php $ext = pathinfo($slider_items, PATHINFO_EXTENSION); @endphp @if (file_exists(public_path($slider_items)))
banner
@else
@if($ext == 'mp4' || $ext == 'webm') @else
@endif
@endif @endforeach
@php $storImage = json_decode(get_homepage_settings('university')); @endphp @if (isset($storImage->faq_image)) @endif

{{ get_phrase('Creating A Community Of Life Long Learners') }}

{{ get_phrase("Our LMS goes beyond just providing courses. It's a platform designed to ignite curiosity and empower your lifelong learning journey. This supportive community provides a space to ask questions, no matter how big or small, and receive insightful answers from experienced learners and subject-matter experts.") }}

{{ get_phrase("Share your own experiences and challenges, and find encouragement and inspiration from others on a similar path. The diverse perspectives within our community will broaden your horizons and challenge your thinking, fostering a deeper understanding and a richer learning experience. Together, we'll transform learning from a solitary pursuit into a collaborative adventure, where shared knowledge fuels individual growth and collective discovery.") }}

{{ get_phrase('Learn more about us') }}

{{ get_phrase('Our Online Courses') }}

{{ get_phrase('Awesome site. on the top advertising a business online includes assembling Having the most keep.') }}

@php $featured_courses = DB::table('courses')->where('status', 'active')->latest('id')->take(4)->get(); @endphp @foreach ($featured_courses->take(4) as $key => $row) @php $ratings = DB::table('reviews') ->where('course_id', $row->id) ->pluck('rating') ->toArray(); $average_rating = count($ratings) > 0 ? array_sum($ratings) / count($ratings) : null; @endphp @endforeach

{{ get_phrase('Think more clearly') }}

{{ get_phrase('Awesome site. on the top advertising a business online includes assembling Having the most keep.') }}

@php $motivational_speeches = json_decode(get_frontend_settings('motivational_speech'), true); $increment = 1; @endphp @foreach ($motivational_speeches as $key => $motivational_speech)
@php $admininfo = DB::table('users')->where('role', 'admin')->first(); @endphp

{{ $increment++ }}

{{ $motivational_speech['title'] }}

@if ($admininfo->photo) @else @endif
{{ $admininfo->name }}

{{ $motivational_speech['description'] }}

@if ($motivational_speech['image']) @else @endif
@endforeach

{{ get_phrase('Frequently Asked Questions') }}

{{ get_phrase('Awesome site. on the top advertising a business online includes assembling Having the most keep.') }}

@if (isset($storImage->faq_image)) @endif
@php $faqs = count(json_decode(get_frontend_settings('website_faqs'), true)) > 0 ? json_decode(get_frontend_settings('website_faqs'), true) : [['question' => '', 'answer' => '']]; @endphp @foreach ($faqs as $key => $faq)

{{ $faq['answer'] }}

@endforeach

{{ get_phrase('What the people Thinks About Us') }}

@php $reviews = DB::table('user_reviews')->get(); @endphp @foreach ($reviews as $review) @php $userDetails = DB::table('users') ->where('id', $review->user_id) ->first(); @endphp

{{ $userDetails->name }}

{{ date('h:i A', strtotime($review->created_at)) }}

{{ $review->review }}

@for ($i = 1; $i <= 5; $i++) @if ($i <= $review->rating) @else @endif @endfor
({{ $review->rating }})
@endforeach
@if (get_frontend_settings('blog_visibility_on_the_home_page'))

{{ get_phrase('Our Blog') }}

{{ get_phrase('Awesome site. on the top advertising a business online includes assembling Having the most keep.') }}

@endif @endsection @push('js') @endpush