@extends('layouts.main') @section('title', 'CMS | Podcast') @section('content') @php use Illuminate\Support\Str; use App\Enums\StatusEnum; @endphp

Content List : ({{$podcast->name}}-{{$podcast->content_id}})

@php $podcastDetails=$podcast->podcastDetails; @endphp @foreach ($podcastDetails as $index => $podcastDetail) @endforeach
SL Title Image Duration Audio Player Publish Date Status Action
{{ $index + 1 }} {{ $podcastDetail->title }} {{ sprintf("%02d:%02d", floor( $podcastDetail->duration_time/60), $podcastDetail->duration_time%60) . ' h ' }} {{ $podcastDetail->release_date }}
status == StatusEnum::Active->value ? 'checked' : '' }} name='input_switch'>
@method('DELETE') @csrf Edit
@endsection @push('scripts') @endpush