{{__('all.dashboard_text')}}

{{__('all.risk_score')}}

@if($selectedtypes && $search) {{ __('all.reset') }} @else @endif
{{-- --}} @if($selectedtypes && $search)

{{ __('all.risk_overview') }}

@foreach($scores as $level) @foreach($selectedtypes as $types) @if($types == 'behavior')

{{__('all.behavior_consistency_risk')}}

@switch($level->score->behavior_consistency_risk_level) @case('very low')

{{ __('all.very_low') }}

@break @case('low')

{{ __('all.low') }}

@break @case('medium')

{{ __('all.medium') }}

@break @case('high')

{{ __('all.high') }}

@break @case('very high')

{{ __('all.very_high') }}

@break @default @endswitch
@elseif($types == 'lifestyle')

{{__('all.lifestyle_risk')}}

@switch($level->score->life_style_risk_level) @case('very low')

{{ __('all.very_low') }}

@break @case('low')

{{ __('all.low') }}

@break @case('medium')

{{ __('all.medium') }}

@break @case('high')

{{ __('all.high') }}

@break @case('very high')

{{ __('all.very_high') }}

@break @default @endswitch
@elseif($types == 'health')

{{__('all.health_risk')}}

@switch($level->score->health_risk_level) @case('very low')

{{ __('all.very_low') }}

@break @case('low')

{{ __('all.low') }}

@break @case('medium')

{{ __('all.medium') }}

@break @case('high')

{{ __('all.high') }}

@break @case('very high')

{{ __('all.very_high') }}

@break @default @endswitch
@elseif($types == 'financial')

{{__('all.financial_risk')}}

@switch($level->score->financial_risk_level) @case('very low')

{{ __('all.very_low') }}

@break @case('low')

{{ __('all.low') }}

@break @case('medium')

{{ __('all.medium') }}

@break @case('high')

{{ __('all.high') }}

@break @case('very high')

{{ __('all.very_high') }}

@break @default @endswitch
@endif @endforeach @endforeach
@foreach($scores as $level) @foreach($selectedtypes as $types) @if($types == 'overall')
@switch($level->score->final_risk_level) @case('very low')

{{__('all.overall_risk')}}

{{ __('all.very_low') }}

@break @case('low')

{{__(all.overall_risk)}}

{{ __('all.low') }}

@break @case('medium')

{{__('all.overall_risk')}}

{{ __('all.medium') }}

@break @case('high')

{{__('all.overall_risk')}}

{{ __('all.high') }}

@break @case('very high')

{{__('all.overall_risk')}}

{{ __('all.very_high') }}

@break @default @endswitch
@endif @endforeach @endforeach
@php $promdata = array(); @endphp @php $prombg = array(); @endphp @foreach($scores as $level) @foreach($selectedtypes as $types) @if($types == 'overall') @switch($level->score->final_risk_level) @case('very low') @php $promdata[] = 2000; @endphp @php $prombg[] = '#7ed957'; @endphp @break @case('low') @php $promdata[] = 4000; @endphp @php $prombg[] = '#70c5d8'; @endphp @break @case('medium') @php $promdata[] = 6000; @endphp @php $prombg[] = '#fecd56'; @endphp @break @case('high') @php $promdata[] = 8000; @endphp @php $prombg[] = '#ff7c1f'; @endphp @break @case('very high') @php $promdata[] = 10000; @endphp @php $prombg[] = '#ff1616'; @endphp @break @default @php $promdata[] = 0; @endphp @php $prombg[] = '#7ed957'; @endphp @endswitch @elseif($types == 'behavior') @switch($level->score->behavior_consistency_risk_level) @case('very low') @php $promdata[] = 2000; @endphp @php $prombg[] = '#7ed957'; @endphp @break @case('low') @php $promdata[] = 4000; @endphp @php $prombg[] = '#70c5d8'; @endphp @break @case('medium') @php $promdata[] = 6000; @endphp @php $prombg[] = '#fecd56'; @endphp @break @case('high') @php $promdata[] = 8000; @endphp @php $prombg[] = '#ff7c1f'; @endphp @break @case('very high') @php $promdata[] = 10000; @endphp @php $prombg[] = '#ff1616'; @endphp @break @default @php $promdata[] = 0; @endphp @php $prombg[] = '#7ed957'; @endphp @endswitch @elseif($types == 'lifestyle') @switch($level->score->life_style_risk_level) @case('very low') @php $promdata[] = 2000; @endphp @php $prombg[] = '#7ed957'; @endphp @break @case('low') @php $promdata[] = 4000; @endphp @php $prombg[] = '#70c5d8'; @endphp @break @case('medium') @php $promdata[] = 6000; @endphp @php $prombg[] = '#fecd56'; @endphp @break @case('high') @php $promdata[] = 8000; @endphp @php $prombg[] = '#ff7c1f'; @endphp @break @case('very high') @php $promdata[] = 10000; @endphp @php $prombg[] = '#ff1616'; @endphp @break @default @php $promdata[] = 0; @endphp @php $prombg[] = '#7ed957'; @endphp @endswitch @elseif($types == 'health') @switch($level->score->health_risk_level) @case('very low') @php $promdata[] = 2000; @endphp @php $prombg[] = '#7ed957'; @endphp @break @case('low') @php $promdata[] = 4000; @endphp @php $prombg[] = '#70c5d8'; @endphp @break @case('medium') @php $promdata[] = 6000; @endphp @php $prombg[] = '#fecd56'; @endphp @break @case('high') @php $promdata[] = 8000; @endphp @php $prombg[] = '#ff7c1f'; @endphp @break @case('very high') @php $promdata[] = 10000; @endphp @php $prombg[] = '#ff1616'; @endphp @break @default @php $promdata[] = 0; @endphp @php $prombg[] = '#7ed957'; @endphp @endswitch @elseif($types == 'financial') @switch($level->score->financial_risk_level) @case('very low') @php $promdata[] = 2000; @endphp @php $prombg[] = '#7ed957'; @endphp @break @case('low') @php $promdata[] = 4000; @endphp @php $prombg[] = '#70c5d8'; @endphp @break @case('medium') @php $promdata[] = 6000; @endphp @php $prombg[] = '#fecd56'; @endphp @break @case('high') @php $promdata[] = 8000; @endphp @php $prombg[] = '#ff7c1f'; @endphp @break @case('very high') @php $promdata[] = 10000; @endphp @php $prombg[] = '#ff1616'; @endphp @break @default @php $promdata[] = 0; @endphp @php $prombg[] = '#7ed957'; @endphp @endswitch @endif @endforeach @endforeach

{{ __('all.risk_distribution') }}

@foreach($selectedtypes as $types) @if($types == 'overall')
{{__('all.overall_risk')}}
@elseif($types == 'behavior')
{{__('all.behavior_consistency_risk')}}
@elseif($types == 'lifestyle')
{{__('all.lifestyle_risk')}}
@elseif($types == 'health')
{{__('all.health_risk')}}
@elseif($types == 'financial')
{{__('all.financial_risk')}}
@endif @endforeach
@foreach($selectedtypes as $types) @if($types == 'behavior')

{{__('all.behavior_consistency_risk')}}

@elseif($types == 'lifestyle')

{{__('all.lifestyle_risk')}}

@elseif($types == 'health')

{{__('all.health_risk')}}

@elseif($types == 'financial')

{{__('all.financial_risk')}}

@elseif($types == 'overall')

{{__('all.overall_risk')}}

@endif @endforeach

{{ __('all.user_risks')}}

{{ __('all.user_details') }}

@foreach($scores as $level) {{-- @foreach($selectedtypes as $types) @if($types == 'behavior') @switch($level->score->behavior_consistency_risk_level) @case('very low') @php $bgcolor = 'user-very-low'; @endphp @break @case('low') @php $bgcolor = 'user-low'; @endphp @break @case('medium') @php $bgcolor = 'user-medium'; @endphp @break @case('high') @php $bgcolor = 'user-high'; @endphp @break @case('very high') @php $bgcolor = 'user-very-high'; @endphp @break @default @php $bgcolor = 'user-very-low'; @endphp @endswitch @elseif($types == 'lifestyle') @switch($level->score->life_style_risk_level) @case('very low') @php $bgcolor = 'user-very-low'; @endphp @break @case('low') @php $bgcolor = 'user-low'; @endphp @break @case('medium') @php $bgcolor = 'user-medium'; @endphp @break @case('high') @php $bgcolor = 'user-high'; @endphp @break @case('very high') @php $bgcolor = 'user-very-high'; @endphp @break @default @php $bgcolor = 'user-very-low'; @endphp @endswitch @elseif($types == 'health') @switch($level->score->health_risk_level) @case('very low') @php $bgcolor = 'user-very-low'; @endphp @break @case('low') @php $bgcolor = 'user-low'; @endphp @break @case('medium') @php $bgcolor = 'user-medium'; @endphp @break @case('high') @php $bgcolor = 'user-high'; @endphp @break @case('very high') @php $bgcolor = 'user-very-high'; @endphp @break @default @php $bgcolor = 'user-very-low'; @endphp @endswitch @elseif($types == 'financial') @switch($level->score->financial_risk_level) @case('very low') @php $bgcolor = 'user-very-low'; @endphp @break @case('low') @php $bgcolor = 'user-low'; @endphp @break @case('medium') @php $bgcolor = 'user-medium'; @endphp @break @case('high') @php $bgcolor = 'user-high'; @endphp @break @case('very high') @php $bgcolor = 'user-very-high'; @endphp @break @default @php $bgcolor = 'user-very-low'; @endphp @endswitch @elseif($types == 'overall') @switch($level->score->final_risk_level) @case('very low') @php $bgcolor = 'user-very-low'; @endphp @break @case('low') @php $bgcolor = 'user-low'; @endphp @break @case('medium') @php $bgcolor = 'user-medium'; @endphp @break @case('high') @php $bgcolor = 'user-high'; @endphp @break @case('very high') @php $bgcolor = 'user-very-high'; @endphp @break @default @php $bgcolor = 'user-very-low'; @endphp @endswitch @endif @endforeach --}}
{{ __('all.phone_number') }} {{ $level->phone_number }}
{{__('all.behavior_consistency_risk')}}{{ ucwords($level->score->behavior_consistency_risk_level) }}
{{__('all.lifestyle_risk')}}{{ ucwords($level->score->life_style_risk_level) }}
{{__('all.health_risk')}}{{ ucwords($level->score->health_risk_level) }}
{{__('all.financial_risk')}}{{ ucwords($level->score->financial_risk_level) }}
{{__('all.overall_risk')}}{{ ucwords($level->score->final_risk_level) }}
{{ __('all.house_price') }} {{ $level->score->house_price }}
{{ __('all.persona') }} {{ $level->score->persona }}
{{ __('all.international_travel') }} {{ floatval($level->score->international_travel) }}
{{ __('all.domestic_biz') }} {{ floatval($level->score->domestic_biz_travel_flight) }}
{{ __('all.domestic_leisure') }} {{ floatval($level->score->domestic_leisure_travel_flight) }}
{{ __('all.golf_playing') }} {{ floatval($level->score->golf_playing) }}
{{ __('all.bank_app') }} {{ floatval($level->score->bank_app) }}
{{ __('all.securities_app') }} {{ floatval($level->score->securities_app) }}
{{ __('all.financial_management_app') }} {{ floatval($level->score->financial_management_app) }}
{{ __('all.fitness_app') }} {{ floatval($level->score->fitness_app) }}
@endforeach

{{ __('all.rating_distribution') }}

{{--
@foreach($selectedtypes as $types) @if($types == 'overall')
@elseif($types == 'behavior')
@elseif($types == 'lifestyle')
@elseif($types == 'health')
@elseif($types == 'financial')
@endif @endforeach
--}}

{{ __('all.risk_radar') }}

@foreach($selectedtypes as $types) @if($types == 'behavior')
@elseif($types == 'lifestyle')
@elseif($types == 'health')
@elseif($types == 'financial')
@elseif($types == 'overall')
@endif @endforeach
@php $labels = array(); @endphp @php $labelstwo = array(); @endphp @php $radardata = array(); @endphp @php $radarcolor = array(); @endphp @php $verylow = array(); @endphp @php $low = array(); @endphp @php $medium = array(); @endphp @php $high = array(); @endphp @php $veryhigh = array(); @endphp @php $doughnutdata = array(); @endphp @foreach($selectedtypes as $types) @if($types == 'behavior') @php $labels[] = __('all.behavior_consistency_risk'); @endphp @php $labelstwo[] = __('all.behavior_consistency'); @endphp @php $radardata[] = number_format($scores[0]->score->behavior_consistency_score, 6); @endphp @php $radarcolor[] = '#FF6384'; @endphp @php $verylow[] = 62; @endphp @php $low[] = 15; @endphp @php $medium[] = 19; @endphp @php $high[] = 1; @endphp @php $veryhigh[] = 3; @endphp @php $doughnutdata[] = array('data' => [62, 15, 19, 1, 3], 'backgroundColor' => ["#3faa59", "#b3df72", "#fffebe", "#fdbb6c", "#e54e35"], 'label' => 'Behavior Consistency Risk'); @endphp @elseif($types == 'lifestyle') @php $labels[] = __('all.lifestyle_risk'); @endphp @php $labelstwo[] = __('all.lifestyle'); @endphp @php $radardata[] = number_format($scores[0]->score->life_style_class_score, 6); @endphp @php $radarcolor[] = '#4BC0C0'; @endphp @php $verylow[] = 44; @endphp @php $low[] = 43; @endphp @php $medium[] = 9; @endphp @php $high[] = 4; @endphp @php $veryhigh[] = 0; @endphp @php $doughnutdata[] = array('data' => [44, 43, 9, 4, 0], 'backgroundColor' => ["#3faa59", "#b3df72", "#fffebe", "#fdbb6c", "#e54e35"], 'label' => 'Life Style Risk'); @endphp @elseif($types == 'health') @php $labels[] = __('all.health_risk'); @endphp @php $labelstwo[] = __('all.health'); @endphp @php $radardata[] = number_format($scores[0]->score->health_class_score, 6); @endphp @php $radarcolor[] = '#FFCE56'; @endphp @php $verylow[] = 53; @endphp @php $low[] = 19; @endphp @php $medium[] = 25; @endphp @php $high[] = 3; @endphp @php $veryhigh[] = 0; @endphp @php $doughnutdata[] = array('data' => [53, 19, 25, 3, 0], 'backgroundColor' => ["#3faa59", "#b3df72", "#fffebe", "#fdbb6c", "#e54e35"], 'label' => 'Health Risk'); @endphp @elseif($types == 'financial') @php $labels[] = __('all.financial_risk'); @endphp @php $labelstwo[] = __('all.financial'); @endphp @php $radardata[] = number_format($scores[0]->score->financial_class_score, 6); @endphp @php $radarcolor[] = '#36A2EB'; @endphp @php $verylow[] = 6; @endphp @php $low[] = 49; @endphp @php $medium[] = 37; @endphp @php $high[] = 4; @endphp @php $veryhigh[] = 4; @endphp @php $doughnutdata[] = array('data' => [6, 49, 37, 4, 4], 'backgroundColor' => ["#3faa59", "#b3df72", "#fffebe", "#fdbb6c", "#e54e35"], 'label' => 'Financial Risk'); @endphp @elseif($types == 'overall') @php $labels[] = __('all.overall_risk'); @endphp @php $verylow[] = 13; @endphp @php $low[] = 54; @endphp @php $medium[] = 26; @endphp @php $high[] = 5; @endphp @php $veryhigh[] = 2; @endphp @php $doughnutdata[] = array('data' => [13, 54, 26, 5, 2], 'backgroundColor' => ["#3faa59", "#b3df72", "#fffebe", "#fdbb6c", "#e54e35"], 'label' => 'OVERALL RISK'); @endphp @endif @endforeach