@extends('Front.PatientLayout.mainLayout') @section('title', 'Education') @section('css') @endsection @section('content') @php $lang = app()->getLocale(); $is_wacthed_video = $videoIdArray->toArray(); @endphp
{{ $playNow->name }}
{{--
{{ $playNow->sub_title }}
{{ $playNow->name_welsh }}
{{--
{{ $playNow->sub_title_welsh }}
{{ __('education.watched') }}
--}} @else{{ __('education.finishReading') }}
@endif{{ __('education.once') }} --}}
@else{{ __('education.readingQuestion') }}
@endif{{ __('education.videos') }}
{{-- other video --}} @foreach ($records->Education as $vData) @php if ($lang == 'en') { $totalWord = str_word_count($vData->description); } else { $totalWord = str_word_count($vData->description_welsh); } $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 @else @if (!empty($vData->video_url)){{ $vData->name_welsh }}
@if ($vData->type == 'content'){!! html_entity_decode(substr($vData->description_welsh, 0, 200)) !!}
@else {{ $vData->sub_title_welsh }} @endif @endif