@extends('Front.PatientLayout.mainLayout') @section('title', 'Profile') @section('css') @endsection @section('content') @php switch (Crypt::decrypt($_GET['question_id'])) { case 'ASTHMA_CHECKER': $title = __('dashboard.copd_checker'); $grapgTitle = __('dashboard.copd_checker'); break; case '1': $title = __('dashboard.annual_review'); $grapgTitle = __('dashboard.copd_checker'); break; case '2': $title = __('dashboard.annual_review'); $grapgTitle = __('dashboard.annual_review'); break; case '3': $title = __('dashboard.picking_up_prescription'); $grapgTitle = __('dashboard.prescription_results'); break; case '4': $title = __('dashboard.inhaler_technique'); $grapgTitle = __('dashboard.inhaler_technique_results'); break; case '5': $title = __('dashboard.salbutamol_use'); $grapgTitle = __('dashboard.salbutamol_results'); break; case '6': $title = __('dashboard.gp_visits'); $grapgTitle = __('dashboard.gp_visit_results'); break; case '7': $title = __('dashboard.a_and_e_visit'); $grapgTitle = __('dashboard.ae_visit_results'); break; case '8': $title = __('dashboard.hospital_visit'); $grapgTitle = __('dashboard.hospital_visit_results'); break; case '9': $title = __('dashboard.antibiotics'); $grapgTitle = __('dashboard.antibiotics_results'); break; case '10': $title = __('dashboard.oral_steroids'); $grapgTitle = __('dashboard.oral_steroid_results'); break; case '11': $title = __('dashboard.smoking'); $grapgTitle = __('dashboard.smoking_results'); break; case '12': $title = __('dashboard.vaping'); $grapgTitle = __('dashboard.vaping_results'); break; case '13': $title = __('dashboard.physical_activity'); $grapgTitle = __('dashboard.physical_activity_results'); break; default: $title = __('dashboard.copd_checker'); $grapgTitle = __('dashboard.copd_checker'); break; } @endphp {{-- {{ pre($finale) }} --}}
{{-- {{ pre($finale['video_data']) }} --}} @php if ($finale['overview'][0]['color'] == 'GREEN') { $bg = 'text-white bg-green '; $icon = ' fa fa-check-circle fs-4 '; } elseif ($finale['overview'][0]['color'] == 'RED') { $bg = 'text-white bg-red'; $icon = 'fa fa-times '; } $comments = explode('@', $finale['overview'][0]['comment']); @endphp
@forelse ($comments as $comment)

{{ $comment }}

@empty @endforelse

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

{{ __('dashboard.update_checker') }}
{!! $finale['overview'][0]['description'] !!}
{{-- {{pre($finale['graph_1'])}} --}} @if (Crypt::decrypt($_GET['question_id']) != 1) @isset($finale['graph_1'])

{{ $grapgTitle }}

{{ date('Y') }}

@if (in_array(Crypt::decrypt($_GET['question_id']), ['6', '7', '8', '9', '10', 'MRC_TEST', 'CAT_TEST'])) @else
@forelse ($finale['graph_1'] as $graph) @php if ($graph['color'] == 'RED') { $color = '#B66263'; } elseif ($graph['color'] == 'GREEN') { $color = '#3cb371'; } else { $color = $graph['color']; } @endphp

{{ substr($graph['month'], 0, 3) }}

@empty @endforelse
@endif
@endif
@endisset @if (!empty($finale['video_data']))

{{ $finale['video_data'][0]['title'] }}

@endif
{{ __('dashboard.All_videos') }}
@section('js') @if (in_array(Crypt::decrypt($_GET['question_id']), ['6', '7', '8', '9', '10', 'MRC_TEST', 'CAT_TEST'])) @else @endif @endsection @endsection