{{ __('Courses In Bundle') }}
@php
// FSMS
function convertToHoursMins($time, $format = '%02d:%02d') {
if ($time < 1) {
return;
}
$hours =floor($time / 60);
$minutes = ($time % 60);
return sprintf($format, $hours, $minutes);
}
$courseCount = count( $bundle['course_id'] )
// FSMS
@endphp
{{ $courseCount . " courses" }}
@foreach ($bundle->course_id as $bundles)
@php
$course = App\Course::where('id', $bundles)->first();
@endphp
@if(isset($course))
{{ $course->short_detail }}
|
@endif
@endforeach