@extends('layouts.default') @push('title', get_phrase('Home')) @push('meta')@endpush @push('css') @endpush @section('content') @php $total_students = DB::table('users')->where('role', 'student')->get(); $total_instructors = DB::table('users')->where('role', 'instructor')->get(); $free_courses = DB::table('courses')->where('is_paid', 0)->get(); $premium_courses = DB::table('courses')->where('is_paid', 1)->get(); @endphp
@php $banner_title = get_frontend_settings('banner_title'); $arr = explode(' ', $banner_title); $first_word = $arr[0]; $second_word = $arr[1] ?? ''; array_shift($arr); array_shift($arr); $remaining_text = implode(' ', $arr); @endphp

{{ get_phrase('Education For Eeveryone') }}

{{ $first_word }} {{ $second_word }} {{ $remaining_text }}

{{ get_frontend_settings('banner_sub_title') }}

has('search')) value="{{ request()->input('search') }}" @endif>
@php $bannerData = json_decode(get_frontend_settings('banner_image')); $banneractive = get_frontend_settings('home_page'); if ($bannerData !== null && is_object($bannerData) && property_exists($bannerData, $banneractive)) { $banner = json_decode(get_frontend_settings('banner_image'))->$banneractive; } @endphp @if (isset($banner)) @else @endif

{{ count($total_students) }}+

{{ get_phrase('User already register and signing up for using it') }}

{{ count($total_instructors) }}+

{{ get_phrase('Online Instructor have a new ideas every week.') }}

{{ get_phrase('Latest Top Skills') }}

{{ get_phrase('Awesome site the top advertising been business.') }}

{{ get_phrase('Industry Experts ') }}

{{ get_phrase('Awesome site the top advertising been business.') }}

{{ get_phrase('Learning From Anywhere') }}

{{ get_phrase('Awesome site the top advertising been business.') }}

{{ get_phrase('Special Featured Course.') }}

{{ get_phrase('ABOUT US') }}

{{ get_phrase('Know About Academy LMS Learning Platform') }}

{{ get_phrase('Far far away, behind the word mountains, far from the away countries Vokalia and Consonantia, there live the blind texts.') }}

{!! ellipsis(removeScripts(get_frontend_settings('about_us')), 160) !!}
{{ get_phrase('Learn More') }}

{{ get_phrase('WHY CHOOSE US') }}

{{ get_phrase('Free Resources Learning English for Beginner') }}

{{ get_phrase('Far far away, behind the word mountains, far from the away countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.') }}

{{ count($total_students) }}+

{{ get_phrase('User already register and signing up for using it') }}

{{ count($total_instructors) }}+

{{ get_phrase('Instructor have a new ideas every week.') }}

{{ get_phrase('Meet Our Team') }}

@php $popular_instaructors = DB::table('courses')->select('enrollments.user_id', DB::raw('count(*) as enrol_number'))->join('enrollments', 'courses.id', '=', 'enrollments.course_id')->groupBy('enrollments.user_id')->orderBy('enrollments.user_id', 'DESC')->limit(10)->get(); @endphp @foreach ($popular_instaructors as $key => $instructor) @php $instructorDetails = App\Models\User::where('id', $instructor->user_id)->first(); if (!$instructorDetails) { continue; } @endphp @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
@endforeach
@foreach ($reviews as $review) @php $userDetails = DB::table('users') ->where('id', $review->user_id) ->first(); @endphp

{{ $userDetails->name }}

@for ($i = 1; $i <= 5; $i++) @if ($i <= $review->rating) @else @endif @endfor

{{ $review->review }}

@endforeach

{{ get_phrase('Our Latest Blog') }}

@endsection