@extends('layouts.master') @section('title', 'Dashboard') @section('pagetitle', 'Student Dashboard') @section('content')

Dashboard

My mentors

@if(!empty($mentorsForSlider)) @foreach($mentorsForSlider as $mentorForSlider)

{{$mentorForSlider->mentor->getFullName() ?? "No mentor yet"}}

{{$mentorForSlider->mentor['data']['degree'] ?? ""}}

@endforeach @endif
@if(!empty($mentorsForSlider)) @foreach($mentorsForSlider as $count=>$mentor)
@endforeach @endif

My Appointment

You have {{$upcomingAppointments}} Upcoming appointment

calendar_month

Recent Appointments

@forelse($recentAppointments as $recentAppointment)

{{$recentAppointment->getMeetingTime()->diffForHumans()}}

{{$recentAppointment->mentor->getFullName()}}

{{$recentAppointment->start}} - {{$recentAppointment->end}}

@empty

You have no recent appointments at the moment

@endforelse

Messages

@if($chats->count() > 0) @foreach($chats as $chat)
withUser->id)}}">
{{$chat->withUser->getFullName()}}

@php $lastMessageIndex = $chat->messages->count(); if($lastMessageIndex==0){ $message = null; }else{ $message = $chat->messages[$lastMessageIndex-1]; } @endphp @if(!is_null($message)) {{str()->limit($message->message,46,)}} @else Click the mentor or mentee to have a chat,happy connecting... @endif

@if(!is_null($message))

{{$message->created_at->diffForHumans()}}

@endif {{-- 4--}}
@endforeach @else

You haven't had any conversations yet

@endif View all messages
@endsection