@extends('Front.PatientLayout.mainLayout') @section('title', 'Education') @section('css') @endsection @section('content') {{-- {{pre($playNow->toArray(),1)}} --}} {{-- {{ pre($records->Education->toArray()) }} --}} @php $lang = app()->getLocale(); $is_wacthed_video = $videoIdArray->toArray(); @endphp
{{ $playNow->name }}
{{--
{{ $playNow->sub_title }}
{{ __('education.watched') }}
--}} @else{{ __('education.finishReading') }}
@endif{{ __('education.readingQuestion') }}
@endif{{ __('education.videos') }}
{{-- other video --}} @foreach ($records->Education as $vData) @php $totalWord = str_word_count($vData->description); $min = getReadCount($totalWord); @endphp {{-- {{ pre($vData) }} --}}{{ sprintf('%02d', $min) }}:00 minutes
@else{{ sprintf('%02d', $vData->min) . ':' . sprintf('%02d', $vData->sec) }} {{ __('education.minute') }}
@endif @if (in_array($vData['id'], $is_wacthed_video)) @endif{{ $vData->name }}
@if ($vData->type == 'content'){!! html_entity_decode(substr($vData->description, 0, 200)) !!}....
@else {{ $vData->sub_title }} @endif