@extends('layouts.main') @push('styles') @endpush @section('content')

{{ __('art_clinic.art_clinic') }}

@include('patients::allergies.header')
{{ __('art_clinic.triage_details') }}
@if($triage) {{ get_name($triage->symptoms,'id','name','symptoms') }} @else {{ __('art_clinic.no_symptoms_records') }} @endif
@if($triage) @switch($triage->severe_grade) @case (1) {{ __('art_clinic.green') }} @break @case (2) {{ __('art_clinic.yellow') }} @break @case (3) {{ __('art_clinic.red') }} @break @default {{ __('art_clinic.triage_grade_not_determined') }} @endswitch @endif
{{ __('art_clinic.patient_documents') }}
@foreach($documents as $document) @endforeach
{{ $document->title }} {{ Carbon\Carbon::parse($document->date_taken)->format('jS M Y') }}
@include('flash::message')
{{ __('art_clinic.art_clinic') }}

{{ __('art_clinic.clinician') }} : {{ isset($triage) ? get_name($triage->created_by,'id','last_name','users') : ""}}

{{ Form::open(['route' => 'antiretral_viral_therapy.store','data-toggle'=>'validator']) }}
{{ Form::label('age','Age') }} @php $age_array = days_months_years($patient->date_of_birth, Carbon\Carbon::now()); $age_days = $age_array[0]; $age_months = $age_array[1]; $age_years = $age_array[2]; @endphp
{{ $age_years }} Years {{ $age_months }} Months
{{ Form::select('marital_status',$marital_statuses,'',['class'=>'form-control compulsory']) }}
{{ Form::label('art_clinic_number','ART CLINIC NUMBER') }} {{ Form::text('art_clinic_number','',['class'=>'form-control compulsory']) }}
{{ Form::text('date_hiv_confirmed','',['class'=>'form-control compulsory','id'=>'datepicker-autoclose1','required']) }}

{{ Form::radio('test_type', 'AB', false, ['required']) }} Yes    {{ Form::radio('test_type', 'PCR', false, ['required']) }} No
{{ Form::text('where','',['class'=>'form-control']) }}

{{ Form::select('care_entry_point',$care_entry_points,'',['class' => 'form-control compulsory']) }}
{{ Form::text('other_care_entry_point','',['class'=>'form-control']) }}

{{ Form::text('treatment_supporter_name','',['class'=>'form-control compulsory']) }}
{{ Form::text('treatment_supporter_phone','',['class'=>'form-control compulsory']) }}
{{ Form::select('district',$districts,'',['class'=>'form-control compulsory district','id'=>'district_id']) }} {{ __('art_clinic.add_new_district') }}

{{ Form::label('','') }} {{ Form::text('home_based_care_provided_by','',['class'=>'form-control compulsory']) }}
{{ Form::button('Complete registration',['type'=>'submit','class'=>'btn btn-success btn-lg col-sm-12','id'=>'submit_art_registration','value'=>'complete']) }}
{{ Form::close() }} @endsection @push('scripts') @endpush