@if(!empty($booking)) @php $subject = $booking->slot->subjectGroupSubjects->subject->name; $tooltipClass = Arr::random(['warning', 'pending', 'ready', 'success']) @endphp
parseToUserTz($booking->slot->start_time)->isFuture() || $booking->status == 'disputed' || $booking->status == 'rescheduled' , 'am-blur-tooltip' => auth()->user()->role == 'student' && ($booking->status == 'rescheduled' || $booking->status == 'disputed') ])>
@if (!empty($booking->slot->subjectGroupSubjects->image) && Storage::disk(getStorageDisk())->exists($booking->slot->subjectGroupSubjects->image)) {{ $subject }} @else {{ $subject }} @endif

{{ $subject }} @if(parseToUserTz($booking->slot->start_time)->isFuture()) {{ parseToUserTz($booking->slot->start_time)->format('h:i a') }} - {{ parseToUserTz($booking->slot->end_time)->format('h:i a') }} @elseif($booking->rating_exists) {{ __('calendar.review_submitted') }} @elseif($booking->status == 'completed') @php $tutorInfo['name'] = $booking->tutor->full_name; if (!empty($booking?->tutor?->image) && Storage::disk(getStorageDisk())->exists($booking?->tutor?->image)) { $tutorInfo['image'] = resizedImage($booking?->tutor?->image, 36, 36); } else { $tutorInfo['image'] = setting('_general.default_avatar_for_user') ? url(Storage::url(setting('_general.default_avatar_for_user')[0]['path'])) : resizedImage('placeholder.png', 36, 36); } @endphp {{ __('calendar.add_review') }} @elseif(auth()->user()->role == 'student' && $booking->status == 'disputed') {{ __('calendar.dispute_session') }} @else {{ __('calendar.mark_as_completed') }} @endif

@if(auth()->user()->role == 'student' && $booking->status == 'rescheduled')
{{ __('calendar.tutor_rescheduled') }}
@elseif(auth()->user()->role == 'student' && $booking->status == 'disputed')
{{ __('calendar.dispute_session') }}
@elseif(parseToUserTz($booking->slot->start_time)->isFuture())
@if(!empty($booking->slot->meta_data['meeting_link'])) @role('tutor'){{ __('calendar.start_session_now') }} @elserole('student') {{ __('calendar.join_session') }} @endrole @endif
@endif
@endif