@if($planData)

{{ trans('home.serial-number') }}

{{ $planData->serial_number }}
@endif

{{ trans('home.client-name') }}

{{$visitor->user->name }}

{{ trans('home.age') }}

{{ $planData->age }}

{{ trans('home.gender') }}

{{ $planData->gender == '1' ? trans('home.male') : trans('home.female') }}

@if($planData)

{{ trans('home.problem-detail') }}

@if($planData->problem == 1) {{trans('home.Marital-and-Family-Problems')}} @elseif($planData->problem == 2) {{trans('home.Marital-Rehabilitation')}} @elseif($planData->problem == 3) {{trans('home.Sexual-Therapy')}} @elseif($planData->problem == 4) {{trans('home.Post-Divorce-Rehabilitation')}} @elseif($planData->problem == 5) {{trans('home.Recovery-from-Divorce')}} @elseif($planData->problem == 6) {{trans('home.Children-Mental-Disorders')}} @elseif($planData->problem == 7) {{trans('home.Children-Problems')}} @elseif($planData->problem == 8) {{trans('home.Adolescent-Mental-Disorders')}} @elseif($planData->problem == 9) {{trans('home.Adolescent-Problems')}} @else {{trans('home.Other')}} @endif

{{ trans('home.problem-short-desc') }}

{{ $planData->problem_description }}

{{ trans('home.diagnose') }}

@foreach(\App\Diagnosis::whereIn('id',\App\TreatmentPlansDiagnosis::where('treatment_plan_id',$planData->id)->pluck('diagnosis_id')->toArray())->pluck('title_'.config('app.locale'))->toArray() as $diag) {{ $diag }}, @endforeach

{{ trans('home.therap_evaluation') }}

@if($planData->therap_evaluation == 1) {{trans('home.BASIC-ID')}} @elseif($planData->therap_evaluation == 2) {{trans('home.Holland-Test-for-Career-Tendencies')}} @elseif($planData->therap_evaluation == 3) {{trans('home.Beck-Depression-Inventory')}} @elseif($planData->therap_evaluation == 4) {{trans('home.EPQ')}} @elseif($planData->therap_evaluation == 5) {{trans('home.Yale–Brown-Y-BOCS')}} @elseif($planData->therap_evaluation == 6) {{trans('home.Family-Readiness-Scale')}} @elseif($planData->therap_evaluation == 7) {{trans('home.Taylor-manifest-anxiety-scale')}} @elseif($planData->therap_evaluation == 8) {{trans('home.Adolescent-Identity-Crisis-Scale')}} @elseif($planData->therap_evaluation == 9) {{trans('home.Domestic-Violence-Scale')}} @elseif($planData->therap_evaluation == 10) {{trans('home.Parenting-Style-Scale')}} @elseif($planData->therap_evaluation == 11) {{trans('home.Sexual-Orientation-Scale')}} @else {{trans('home.Other')}} @endif

@endif @if($sessionsAttend)

{{trans('home.previous-sessions')}}

@foreach($sessionsAttend as $session_attend) @endforeach
# {{trans('home.date-time')}} {{trans('home.period')}} {{trans('home.attend')}}
{{ $session_attend->id }} {{ $session_attend->start_time }} {{ $session_attend->type }} @if($session_attend->vistor_start_date != null) @else @endif

@endif @if($planData)

{{ trans('home.Long-term-goals') }}

{{ $planData->long_term }}

{{ trans('home.short-term-goals') }}

{{ $planData->short_term }}

{{ trans('home.Therapeutic-intervention') }}

@foreach(\App\Treatments::whereIn('id',\App\TreatmentPlansTreatments::where('treatment_plan_id',$planData->id)->pluck('treatments_id')->toArray())->pluck('title_'.config('app.locale'))->toArray() as $diag) {{ $diag }}, @endforeach

{{ trans('home.transfer') }}

@if($planData->transfer == 1) {{trans('home.no-transfer')}} @elseif($planData->transfer == 2) {{trans('home.clinical-psychologist')}} @else {{trans('home.psychiatrist')}} @endif

{{ trans('home.current_status') }}

{{ $planData->current_status == 1 ? trans('home.in-progress') : trans('home.closed') }}

{{ trans('home.last_visit') }}

{{ date('Y-m-d H:i A', strtotime($planData->last_visit)) }}

{{trans('home.assign-Work')}}

{{ $planData->homework }}
@if(!isset($isAjax)) @endif @endif