@extends('layouts.dashboard') @section('title', __('Live Classes')) @section('page_title', __('Live Classes')) @section('content') @if(auth()->user()->calendarConnections()->where('provider', 'google')->exists() || auth()->user()->calendarConnections()->where('provider', 'microsoft')->exists())
{{ $class->course->title ?? '' }}
{{ optional($class->start_time)->format('d M Y, h:i A') }}
@php($calLoc = $class->isBuiltIn() ? route('liveclass.room', $class) : ($class->join_url ?: '')) @php($calGoogle = \App\Support\CalendarLink::googleUrl($class->title, $class->start_time, $class->end_time, (string) ($class->course->title ?? ''), $calLoc)) @php($calOutlook = \App\Support\CalendarLink::outlookUrl($class->title, $class->start_time, $class->end_time, (string) ($class->course->title ?? ''), $calLoc))