@php $dayOfWeeks = config("edmclass.day_of_weeks"); @endphp @foreach($posts as $post) @php $content = $post->content; $subject = isset( $post->lecture?->video?->subject ) && ! empty($post->lecture?->video?->subject) ? explode(" ", $subjects[$post->lecture?->video?->subject])[0] : ""; @endphp
  • $post->is_end && $tab == 'information'] )> @if ($tab == 'information') $service, 'id' => $post->id]) }}" class="go-viewPage"> @elseif ($tab == 'view') @endif

    {{ $post->teacher?->name }}

    @if ($tab == 'view') {{ $subject }} @endif {{ date("y.m.d", strtotime($post->scheduleDetail?->date)) }} @if ($tab == 'information') ({{ $dayOfWeeks[date("w", strtotime($post->scheduleDetail?->date))] }}요일) @endif

    {{ $post->description }}

    @if ($tab == 'information') $service, 'id' => $post->id]) }}" class="more">자세히 보기
    @elseif ($tab == 'view') @php $file = $post->lecture?->attachments->isNotEmpty() ? $post->lecture?->attachments[0] : '' @endphp @if ($isStudy) @if ($file) 학습자료
    @endif @else 학습자료
    @endif @endif
    @if ($tab == 'information')

    {{ $content->title }}

    @endif
  • @endforeach