@extends('Front.PatientLayout.mainLayout') @section('title', 'Profile') @section('css') @endsection @section('content')
{{ __('dashboard.wellness_dial') }} {{ __('dashboard.tests') }}
@php $profileData = Auth::User(); if (isset($finaleArray['month']) && !blank($finaleArray['month'])) { $m = Carbon\Carbon::create()->month((int) $finaleArray['month']); } $isGamification = !blank($finaleArray['gamification']); $gamification = $isGamification ? $finaleArray['gamification'] : []; $month = $isGamification ? (!isset($gamification['month']) && $gamification['completed'] ? 6 : $gamification['month'] ?? 0) : 1; @endphp

{{ __('dashboard.Hi') }} {{ $profileData->name }}

@if ($finaleArray['type'] == 'BETTER_ASTHMA')

{{ $finaleArray['title'] }}

{{ $finaleArray['content'] }}

{{--

{{ $finaleArray['x_count'] }}

--}} {{ __('dashboard.find_out_more') }}
@elseif ($finaleArray['type'] == 'GOOD_ASTHMA')

{{ $finaleArray['title'] }}

{{ $finaleArray['content'] }}

{{--

{{ $finaleArray['x_count'] }}

--}} {{ __('dashboard.find_out_more') }}
@elseif ($finaleArray['type'] == 'NORMAL_VALUE')

{{ $finaleArray['content'] }}

{{ $finaleArray['title'] }}

{{ __('dashboard.update') }}
@elseif ($finaleArray['type'] == 'THIRD_QUE')

{{ $finaleArray['content'] }}

{{ $finaleArray['title'] }}

{{ __('dashboard.last_updated') }}:

{{ $m->format('M') }} {{ $finaleArray['year'] }}

{{ __('dashboard.find_out_more') }}
@elseif ($finaleArray['type'] == 'PICK_FLOW')

{{ $finaleArray['content'] }}

{{ $finaleArray['title'] }}

{{ __('dashboard.last_updated') }}:

{{ $m->format('M') }} {{ $finaleArray['year'] }}

{{ __('dashboard.find_out_more') }}
@elseif ($finaleArray['type'] == 'PICK_FLOW_AND_THIRD_QUE')

{{ $finaleArray['content'] }}

{{ $finaleArray['title'] }}

{{ __('dashboard.last_updated') }}:

{{ $m->format('M') }} {{ $finaleArray['year'] }}

{{ __('dashboard.find_out_more') }}
@elseif ($finaleArray['type'] == 'CURRENT_MONTH')

{{ $finaleArray['content'] }}

{{ $finaleArray['title'] }}

{{ __('dashboard.last_updated') }}:

{{ $m->format('M') }} {{ $finaleArray['year'] }}

{{-- update asthma questions --}} {{ __('dashboard.recheck') }}
@elseif ($finaleArray['type'] == 'NO_DATA')

{{ $finaleArray['content'] }}

{{ $finaleArray['title'] }}

{{ __('dashboard.start') }}
@endif
{{ __('dashboard.ckHistory') }}

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

@if ($gamification['completed'] ?? 0)
@if ($gamification['all_star_patient']) @endif
@else

{{ $month ?? 1 }}

@endif
@if ($isGamification && $month == 1)

...

@elseif($isGamification && $month > 1) @endif
@if ($isGamification && $month == 2)

...

@elseif($isGamification && $month > 2) @endif
@if ($isGamification && $month == 3)

...

@elseif($isGamification && $month > 3) @endif
@if ($isGamification && $month == 4)

...

@elseif($isGamification && $month > 4) @endif
@if ($isGamification && $month == 5)

...

@elseif($isGamification && $month > 5) @endif
@if ($isGamification && $month == 6 && isset($gamification['status']) && $gamification['status'] == 'Pending')

...

@elseif($isGamification && isset($gamification['completed']) && $gamification['completed']) @endif
1
2
3
4
5
{{-- ////!!!----old expert-points flow ---!!!//// --}} {{--

{{ __('expertpoint.my_progress') }}

@if ($finaleArray['expert-points']['totalPoints'] < 250) @else @endif
@if ($finaleArray['expert-points']['totalPoints'] >= 50) @endif @if ($finaleArray['expert-points']['totalPoints'] >= 100) @endif @if ($finaleArray['expert-points']['totalPoints'] >= 150) @endif @if ($finaleArray['expert-points']['totalPoints'] >= 200) @endif @if ($finaleArray['expert-points']['totalPoints'] >= 250) @endif
@if ($finaleArray['expert-points']['GoldEcoFriendlyExpertBadge']) @endif @if ($finaleArray['expert-points']['EcoFriendlyExpertBadge']) @endif @if ($finaleArray['expert-points']['PulmonaryRehabExpertBadge']) @endif
--}}

{{ __('dashboard.homeDes') }}

@endsection {{-- @section('js') @if ($finaleArray['expert-points']['totalPoints'] < 250) @endif @endsection --}}