@extends('layouts.tenant') @section('title', 'Home') @section('content')
@if (Auth::check()) @if (Auth::user()->isSuperAdmin() || Auth::user()->isTenant() || Auth::user()->isAdmin())
@endif @endif

{{ $home_content->hero_section_title ?? 'Welcome to our community, we play and learn' }}

{!! $home_content->hero_section_p ?? 'Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia consequat duis enim velit mollit. Exercitation veniam consequat sunt nostrud amet.' !!}

@if (Auth::check()) Feeds @else Get started @endif
@if (Auth::check()) @if (Auth::user()->isSuperAdmin() || Auth::user()->isTenant() || Auth::user()->isAdmin())
@endif @endif

{{ $about_content->project_section_title ?? 'About us' }}

{!! $about_content->project_section_p ?? "Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia consequat duis enim velit mollit. Exercitation veniam consequat sunt nostrud amet. Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia consequat duis enim velit mollit. Exercitation veniam consequat sunt nostrud amet." !!}

@if (count($course_videos) > 0)
@if (Auth::check()) @if (Auth::user()->isSuperAdmin() || Auth::user()->isTenant() || Auth::user()->isAdmin())
@endif @endif

{{ $home_content->course_section_title ?? 'Featured Mentorship Courses' }}

{!! $home_content->course_section_p ?? 'Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia ' !!}

@forelse ($course_videos as $course)
@if ($course->duration > 1) {{ $course->duration }} mins eCLE Value @elseif($course->duration < 2) {{ $course->duration }} min eCLE Value @elseif($course->duration >= 60 && $course->duration < 120) {{ $course->duration / 60 }} hr eCLE Value @elseif($course->duration >= 120) {{ $course->duration / 60 }} hrs eCLE Value @endif

{{ Str::words($course->description, 10) }}

@php $review_count = App\Models\CourseReview::where('course_id', $course->id)->count(); $viewed_count = App\Models\ViewedCourse::where('course_id', $course->id)->count(); @endphp @if ($review_count > 0) {{ number_format($review_count) }} @endif
@if ($viewed_count > 9999) {{ substr($viewed_count, 0, -3) }}K views @elseif($viewed_count > 99999) {{ substr($viewed_count, 0, -3) }}K views @elseif($viewed_count > 999999) {{ substr($viewed_count, 0, -4) }}M views @elseif($viewed_count < 2) {{ number_format($viewed_count) }} view @else {{ number_format($viewed_count) }} views @endif
@empty
No courses found
@endforelse
@endif @if (count($contributors) > 0)
@if (Auth::check()) @if (Auth::user()->isSuperAdmin() || Auth::user()->isTenant() || Auth::user()->isAdmin())
@endif @endif

{{ $home_content->contributor_section_title ?? 'Featured Contributors' }}

{!! $home_content->contributor_section_p ?? 'Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia ' !!}

@forelse ($contributors as $contributor)
{{ $contributor->first_name }}
{{ $contributor->first_name }} {{ $contributor->last_name }}

{{ Str::words($contributor->bio, 10) }}

@empty
No Contributor found
@endforelse
@endif @if (count($mentors) > 0)
@if (Auth::check()) @if (Auth::user()->isSuperAdmin() || Auth::user()->isTenant() || Auth::user()->isAdmin())
@endif @endif

{{ $home_content->mentor_section_title ?? 'Featured Mentors' }}

{!! $home_content->mentor_section_p ?? 'Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia ' !!}

@forelse ($mentors as $mentor)
@empty
No Mentor found
@endforelse
@endif @if (count($ecle_users) > 0)
@if (Auth::check()) @if (Auth::user()->isSuperAdmin() || Auth::user()->isTenant() || Auth::user()->isAdmin())
@endif @endif

{{ $home_content->course_user_section_title ?? 'Best Community Users' }}


{!! $home_content->course_user_section_p ?? 'Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit officia consequat duis enim velit mollit. Exercitation veniam consequat sunt nostrud amet.' !!}

@endif

Pricing

Enjoy {{ domain($_SERVER['HTTP_HOST'])->company_name }} by getting started with a Price plan.

@forelse ($package_categories as $package_category)
@php $packages = App\Models\Package::where('package_category_id', $package_category->id) ->orderBy('price', 'asc') ->get(); @endphp @forelse ($packages as $package)

{{ $package->name }}

@if ($package->validity == 'Years') @if ($package->duration == 1) ₦{{ number_format($package->price, 2) }} / Year @elseif($package->duration > 1) ₦{{ number_format($package->price, 2) }} / {{ $package->duration }} Years @endif @elseif($package->validity == 'Months') @if ($package->duration > 0 && $package->duration < 2) NGN {{ number_format($package->price, 2) }} / Month @elseif($package->duration > 1) NGN {{ number_format($package->price, 2) }} / {{ $package->duration }} Months @endif @elseif($package->validity == 'Days') @if ($package->duration > 0 && $package->duration < 2) NGN {{ number_format($package->price, 2) }} / Day @elseif($package->duration > 1) @if ($package->price < 1) {{ $package->duration }} Days Trial @else NGN {{ number_format($package->price, 2) }} / {{ $package->duration }} Days @endif @endif @endif

@if ($package->recommended == 1) @endif
Features
    @php $features = ''; if (isset($package->features) && !empty($package->features)) { $features = json_decode($package->features); } @endphp @forelse ($features as $feature)
  • {{ $feature }}
  • @empty
  • None Available for now
  • @endforelse
@if (isLoggedIn()) @if (!Auth::user()->isTenant())
@if ($package->price < 1) @if (isLoggedIn()) Start for free @else Start for free @endif @else Get started @endif
@endif @else
@if ($package->price < 1) Start for free @else Get started @endif
@endif
@empty
No Plan found
@endforelse
@empty
@forelse ($other_packages as $package)

{{ $package->name }}

@if ($package->validity == 'Years') @if ($package->duration > 0 && $package->duration < 2) NGN {{ number_format($package->price, 2) }} / Year @elseif($package->duration > 1) NGN {{ number_format($package->price, 2) }} / {{ $package->duration }} Years @endif @elseif($package->validity == 'Months') @if ($package->duration > 0 && $package->duration < 2) NGN {{ number_format($package->price, 2) }} / Month @elseif($package->duration > 1) NGN {{ number_format($package->price, 2) }} / {{ $package->duration }} Months @endif @elseif($package->validity == 'Days') @if ($package->duration > 0 && $package->duration < 2) NGN {{ number_format($package->price, 2) }} / Day @elseif($package->duration > 1) @if ($package->price < 1) {{ $package->duration }} Days Trial @else NGN {{ number_format($package->price, 2) }} / {{ $package->duration }} Days @endif @endif @endif

@if ($package->recommended == 1) @endif
Features
    @php $features = ''; if (isset($package->features) && !empty($package->features)) { $features = json_decode($package->features); } @endphp @forelse ($features as $feature)
  • {{ $feature }}
  • @empty
  • None Available for now
  • @endforelse
@if ($package->price < 1) Start for free @else Get started @endif
@empty
No Plan found
@if (Auth::check()) @if (Auth::user()->isSuperAdmin() || Auth::user()->isTenant() || Auth::user()->isAdmin()) @endif @endif
@endforelse
@endforelse
@if (Auth::check()) @if (Auth::user()->isSuperAdmin() || Auth::user()->isTenant() || Auth::user()->isAdmin())
@endif @endif

{{ $home_content->qa_section_title ?? 'Take from our Customers and Users' }}

{!! $home_content->qa_section_p ?? 'Happy customers have somethings to say using Tribearc Socialite.' !!}

@forelse ($trustees as $trustee)
@if (Auth::check()) @if (Auth::user()->isSuperAdmin() || Auth::user()->isTenant() || Auth::user()->isAdmin())
@endif @endif

{!! $trustee->bio !!}

{{ $trustee->name }}

{{ $trustee->short_bio }}

@empty
@if (Auth::check()) @if (Auth::user()->isSuperAdmin() || Auth::user()->isTenant() || Auth::user()->isAdmin())
@endif @endif
@endforelse
@include('elements.home-hero') @include('elements.home-course') @include('elements.home-course-user') @include('elements.home-contributor') @include('elements.home-mentor') @include('elements.home-qa') @include('elements.about-project') @include('elements.about-trustee-excos') @include('elements.about-trustee-list') @include('elements.about-trustee-list-edit') @endsection