@extends('layouts.app') @section('title', $course->title . ' | GrowUp') @section('cssExternal') @endsection @section('content') {{-- CHECKOUT MODAL --}} @include('layouts.checkout', ['course' => $course]) {{-- CLASS DETAIL --}}
@if (explode('/', $course->cover)[0] != 'https:') {{ $course->title }} @else {{ $course->title }} @endif {{ $course->title }} {{ Auth::user() && Auth::user()->id == $course->mentor_id? 'Kamu adalah mentor di kelas ini 👏': $course->user->name }} {{ $course->category->title }} {{ $course->price != null ? 'Rp' . number_format($course->price) : 'Gratis' }} {{ $course->description }} @if (!Auth::user()) Gabung Kelas Sekarang @elseif ($hasTransaction == null) Gabung Kelas Sekarang @elseif ($hasTransaction != null) Sudah Bergabung @endif
{{-- CLASS INFO --}}
Kelas Dimulai
{{ \Carbon\Carbon::parse($course->started_at)->format('d M Y') }}
Kelas Berakhir
{{ \Carbon\Carbon::parse($course->ended_at)->format('d M Y') }}
Total Mentee
{{ $transaction->count() }} / {{ $course->max_mentee }}
Rating Kelas
@for ($i = 1; $i <= $course->rating; $i++) @endfor
{{-- CLASS SESSION --}} @if ($sessions->count() != null)
@foreach ($sessions as $session)

Topik Materi {{ $session->title }}

Deskripsi Materi {{ $session->description }}

Link Meeting Join Kelas

Materi Pembelajaran Unduh Materi

@endforeach
@else
Mentor belum mengatur pertemuan dikelas ini. Ditunggu aja ya 😁
@endif
@endsection