@extends('frontend.layouts.master') @section('meta_title', 'Tutor Details' . ' || ' . $setting->app_name) @section('contents')
img
@if ($instructor->created_at->diffInDays(now()) >= $badges['registration_badge_three'][0]->condition_from)
  • {{ $badges['registration_badge_three'][0]->name }}
  • @elseif ( $instructor->created_at->diffInDays(now()) >= $badges['registration_badge_two'][0]->condition_from && $instructor->created_at->diffInDays(now()) < $badges['registration_badge_two'][0]->condition_to)
  • {{ $badges['registration_badge_two'][0]->name }}
  • @elseif ( $instructor->created_at->diffInDays(now()) >= $badges['registration_badge_one'][0]->condition_from && $instructor->created_at->diffInDays(now()) < $badges['registration_badge_one'][0]->condition_to)
  • {{ $badges['registration_badge_one'][0]->name }}
  • @endif @if ($instructor->courses->count() >= $badges['course_count_badge_three'][0]->condition_from)
  • {{ $badges['course_count_badge_three'][0]->name }}
  • @elseif ( $instructor->courses->count() >= $badges['course_count_badge_two'][0]->condition_from && $instructor->courses->count() < $badges['course_count_badge_two'][0]->condition_to)
  • {{ $badges['course_count_badge_two'][0]->name }}
  • @elseif ( $instructor->courses->count() >= $badges['course_count_badge_one'][0]->condition_from && $instructor->courses->count() < $badges['course_count_badge_one'][0]->condition_to)
  • {{ $badges['course_count_badge_one'][0]->name }}
  • @endif @if ($instructor->courses->avg('avg_rating') >= $badges['course_rating_badge_three'][0]->condition_from)
  • {{ $badges['course_rating_badge_three'][0]->name }}
  • @elseif ( $instructor->courses->avg('avg_rating') >= $badges['course_rating_badge_two'][0]->condition_from && $instructor->courses->avg('avg_rating') < $badges['course_rating_badge_two'][0]->condition_to)
  • {{ $badges['course_rating_badge_two'][0]->name }}
  • @elseif ( $instructor->courses->avg('avg_rating') >= $badges['course_rating_badge_one'][0]->condition_from && $instructor->courses->avg('avg_rating') < $badges['course_rating_badge_one'][0]->condition_to)
  • {{ $badges['course_rating_badge_one'][0]->name }}
  • @endif @php $totalEnrollment = 0; foreach ($instructor->courses as $course) { $totalEnrollment += $course->enrollments->count(); } @endphp @if ($totalEnrollment >= $badges['course_enroll_badge_three'][0]->condition_from)
  • {{ $badges['course_enroll_badge_three'][0]->name }}
  • @elseif ( $totalEnrollment >= $badges['course_enroll_badge_two'][0]->condition_from && $totalEnrollment < $badges['course_enroll_badge_two'][0]->condition_to)
  • {{ $badges['course_enroll_badge_two'][0]->name }}
  • @elseif ( $totalEnrollment >= $badges['course_enroll_badge_one'][0]->condition_from && $totalEnrollment < $badges['course_enroll_badge_one'][0]->condition_to)
  • {{ $badges['course_enroll_badge_one'][0]->name }}
  • @endif

    {{ $instructor->name }}

    {{ $instructor->job_title }}

    {{ $instructor->short_bio }}

      @if ($instructor->facebook)
    • @endif @if ($instructor->twitter)
    • @endif @if ($instructor->linkedin)
    • @endif @if ($instructor->github)
    • @endif @if ($instructor->website)
    • @endif

    {{ __('Biography') }}

    {!! clean(nl2br($instructor->bio)) !!}

    @if(count($experiences))

    {{ __('Experience') }}

      @foreach ($experiences as $experience)
    • {{ formatDate($experience->start_date) }} - {{ $experience->current == 1 ? 'Present' : formatDate($experience->end_date) }}
      {{ $experience->company }}
      {{ $experience->position }}
    • @endforeach
    @endif @if(count($educations))

    {{ __('Education') }}

      @foreach ($educations as $education)
    • {{ formatDate($education->start_date) }} - {{ $education->current == 1 ? 'Present' : formatDate($education->end_date) }}
      {{ $education->organization }}
      {{ $education->degree }}
    • @endforeach
    @endif @if ($courses->count() > 0)

    {{ __('My Courses') }}

    {{ __('Checkout my latest courses') }}

    @foreach ($courses as $course)
    {{ truncate($course->title, 50) }}

    {{ __('By') }} {{ $course->instructor->name }}

    @if (in_array($course->id, session('enrollments') ?? [])) @elseif ($course->enrollments->count() >= $course->capacity && $course->capacity != null) @else @endif @if ($course->price == 0)
    {{ __('Free') }}
    @elseif ($course->price > 0 && $course->discount > 0)
    {{ currency($course->discount) }}
    @else
    @endif
    @endforeach
    @endif

    {{ __('Quick Contact') }}

    {{ __('Feel free to contact me through mail') }}!

    @csrf
    @if (Cache::get('setting')->recaptcha_status === 'active')
    @endif
    @endsection @push('scripts') @endpush