@extends('Front.PatientLayout.mainLayout') @section('title', 'Education') @section('css') @endsection @section('content') @php $lang = app()->getLocale(); $is_wacthed_video = $videoIdArray->toArray(); @endphp
{{-- {{pre($playNow->toArray(),1)}} --}} {{-- {{ pre($records->Education->toArray()) }} --}}
@if ($lang == 'en') @if (!empty($playNow->video_url)) @else @endif

{{ $playNow->name }}

{{--

{{ $playNow->sub_title }}

--}} {!! html_entity_decode($playNow->description) !!} @else @if (!empty($playNow->video_url_welsh)) @else @if (!empty($playNow->video_thumb_welsh)) @else @endif @endif

{{ $playNow->name_welsh }}

{{--

{{ $playNow->sub_title_welsh }}

--}} {!! html_entity_decode($playNow->description_welsh) !!} @endif
@isset($is_wacthed_video) @if (in_array($playNow->id, $is_wacthed_video))
@if ($playNow->type == 'video') {{--

{{ __('education.watched') }}

--}} @else

{{ __('education.finishReading') }}

@endif
@else
@if ($playNow->type == 'video') {{--

{{ __('education.once') }} --}}

@else

{{ __('education.readingQuestion') }}

@endif
{{ csrf_field() }}
@endif @endisset
@section('js') @endsection @endsection