@extends('layouts.landing') @section('title', 'Mentor') @section('content')

Mentors

@if(!$applied_mentor && Auth::user()->isUser())
Become a mentor
@endif
@if(count($mentors) > 0) @foreach ($mentors as $mentor)
@php $user = App\Models\User::where('id', $mentor->user_id)->first(); $mentor_profile = App\Models\MentorProfile::where('mentor_id', $mentor->id)->first(); @endphp
@if($user->avatar) @else @endif
{{$user->first_name}} {{$user->last_name}}

{{$mentor_profile->designation}}

View Profile

@endforeach @else
No Mentors available at the moment
@endif
@if(count($pending_mentors) > 0) @foreach ($pending_mentors as $mentor)
@php $user = App\Models\User::where('id', $mentor->user_id)->first(); $mentor_profile = App\Models\MentorProfile::where('mentor_id', $mentor->id)->first(); @endphp
@if($user->avatar) @else @endif
{{$user->first_name}} {{$user->last_name}}

{{$mentor_profile->designation}}

View Profile

@endforeach @else
No Mentors available at the moment
@endif
@endsection