@extends('Front.PatientLayout.mainLayout') @section('title', 'Expert Patient') @section('css') @endsection @section('content')
{{ __('Gamification.month') }}: {{ $data['month'] }}

{{ __('Gamification.page_1_title') }}

{{ __('Gamification.description_1') }}

Month {{ $data['month'] }}

{{--

{!! $data['monthContent']['content'] !!}

--}}

{{ __('Gamification.edu') }}

    @foreach ($data['educationTask'] ?? [] as $edu)
  • @if ($edu->is_completed) @else @endif {{ $edu->name }}
  • @endforeach

{{ __('Gamification.monitoring') }}

    @foreach ($data['monitoringTask'] ?? [] as $mon) @php $checkerCondution = $mon['is_completed'] || ($mon['id'] == $data['monitoringTask'][0]['id'] && $mon['type'] == 2 && $data['month'] == 1 && $data['firstChecker'] == 1); $link = match ($mon['type']) { 2 => $checkerCondution ? '#' : $data['checkerRoute'], 3 => $mon['is_completed'] ? '#' : route('front.patient.wellness-dail.view'), 4 => $mon['is_completed'] ? '#' : route('front.patient.get-spo2-measure.view'), default => '#', }; @endphp
  • @if ($checkerCondution) @else @endif {{ $mon['name'] }}
  • @endforeach

{{ __('Gamification.test_konw') }}

    @foreach ($data['quizTask'] ?? [] as $quiz)
  • @if ($quiz->is_completed) @else @endif {{ $quiz->name }}
  • @endforeach
@section('js') @endsection @endsection