@extends('front.layouts.app') @section('content')
@if (!empty($podcast->contentFiles->first()))
@if (!$podcast->contentFiles->isEmpty()) @endif podcast_placeholder
{{ secondsToMinuteSecond(optional($podcast->contentFiles->first())->length) }}
@endif

{{ $podcast->podcast_title }}

@php $activeSpeakers = collect($podcast->speakers) ->filter(function ($speaker) { return optional($speaker->speaker)->status == 1; }) ->values(); // reindex @endphp @foreach ($activeSpeakers as $key => $speaker) @if ($speaker->speaker->status == 1) {{ optional($speaker->speaker)->name ?? '' }} @if ( $key !== count($activeSpeakers) - 1 && $speaker->speaker->status == 1 && count($activeSpeakers) > 1) , @endif @endif @endforeach
Disclaimer: Listening to this podcast will not earn you any credit. If you want to earn credits, login to clearly.legal and start listening the podcast.
Category

{{ $podcast->category?->name }}

CLE Type

{{ getSpecialtyCourseName($podcast->cl_type) }}

@php $states = $podcast->contentsStates; $firstState = $states->first(); $moreStates = $states->skip(1); // everything except the first $moreCount = $moreStates->count(); @endphp
CLE State

@if ($firstState) {{ $firstState->state_name }} @endif @if ($moreCount > 0) +{{ $moreCount }} more @endif

Durations

{{ $podcast->lengthOfPodcast() }} mins

Credits

{{ $podcast->totalCreditsOfPodcast('Tennessee') }} credits

Published on

{{ \Carbon\Carbon::parse($podcast->published_on)->format('M d, Y') }}


Overview

{!! $podcast->short_description !!}


Episodes
@include('front.includes.podcast_course_card')

Speakers
@php $activeSpeakers = collect($podcast->speakers) ->filter(function ($speaker) { return optional($speaker->speaker)->status == 1; }) ->values(); // reindex @endphp @foreach ($activeSpeakers as $key => $speaker) @if ($speaker->speaker->status == 1) @endif @endforeach
@include('front.includes.speaker_modal') @include('front.includes.states_modal') @include('front.modules.player.modal') @endsection