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

{{ __('investigations.add_investigation') }}

@include('investigations::investigations.menu')
@include('flash::message') @if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@if (session()->has('streamline_setup'))

Stre@mline {{ __('investigations.setup') }} ({{ __('investigations.step') }} 7 {{ __('investigations.of') }} 12)

{{ Form::open(['route' => 'investigations.store', 'data-toggle' => 'validator']) }}
{{ Form::label('name', __('investigations.investigation_name')) }} {{ Form::text('name', '', ['class' => 'form-control']) }}
{{ Form::label('category', __('investigations.category')) }} {{ Form::select('category',$investigation_categories,'',['class' => 'form-control']) }}
{{ Form::label('units', __('investigations.unit')) }} {{ Form::select('units',$unit_of_measure,'',['class' => 'form-control']) }}
{{ Form::label('minimum', __('investigations.minimum')) }} {{ Form::text('minimum', '', ['class' => 'form-control']) }}
{{ Form::label('sample_container', __('investigations.sample_container')) }} {{ Form::text('sample_container', '', ['class' => 'form-control']) }}
{{ Form::label('comments', __('investigations.comments')) }} {{ Form::textArea('comments', '', ['class'=>'form-control', 'rows' => 9]) }}
{{ Form::label('non_insured_price', __('investigations.non_insured_price')) }} {{ Form::number('non_insured_price', '', ['class' => 'form-control', 'id' => 'non_insured_price']) }}
@php $price_list_categories = \Streamline\Models\PriceListCategories::select('patient_category_id', 'id')->get(); @endphp @foreach($price_list_categories as $record)
{{ Form::label('non_insured_price', get_name($record->patient_category_id, 'id', 'name', 'patient_categories').' Price') }} {{ Form::hidden('price_list_category_id[]', $record->id) }} {{ Form::number('price_list_price[]', '', ['class'=>'form-control price_list_price']) }}
@endforeach
{{ Form::label('normal_ranges', __('investigations.normal_ranges')) }} {{ Form::text('normal_ranges', '', ['class' => 'form-control']) }}
{{ Form::label('lab_time', __('investigations.lab_time')) }} {{ Form::text('lab_time', '', ['class' => 'form-control']) }}
{{ Form::label('available',__('investigations.is_investigation_available'), ["class"=>'col-md-12']) }}  {{ __('investigations.yes') }} {{ Form::radio('available', 1, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}  {{ __('investigations.no') }} {{ Form::radio('available', 0, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
{{ Form::label('echo',__('investigations.echo_investigation_template'), ["class"=>'col-md-12']) }}  {{ __('investigations.yes') }} {{ Form::radio('echo', 1, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}  {{ __('investigations.no') }} {{ Form::radio('echo', 0, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
{{ Form::label('account_id',__('investigations.chart_of_account_name')) }} {{ Form::select('account_id',$chart_of_accounts,'',['class' => 'form-control']) }}

{{ __('investigations.select_from_list') }}

@foreach ($investigations as $investigation)
{{ Form::checkbox('selected_investigations[]', $investigation['name'], false) }} {{ $investigation['name'] }}    {{ Form::hidden('selected_category[]', $investigation['category']) }}
@endforeach
{{ Form::button(__('investigations.next'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10 next']) }} {{ Form::button(__('investigations.skip'),['type'=>'submit','name' => 'skip', 'value' => 'skip','class'=>'btn btn-default waves-effect waves-light m-r-10']) }} @else {{-- {{ Form::open(['route' => 'investigations.store', 'data-toggle' => 'validator']) }} --}} {{ Form::open(['route' => 'investigations.store']) }}
{{ Form::label('name', __('investigations.investigation_name')) }} {{ Form::text('name', '', ['class' => 'form-control compulsory','required']) }}
{{ Form::label('category', __('investigations.category')) }} {{ Form::select('category',$investigation_categories,'',['class' => 'form-control compulsory','required']) }}
{{ Form::label('units', __('investigations.unit')) }} {{ Form::select('units',$unit_of_measure,'',['class' => 'form-control compulsory','required']) }}
{{ Form::label('minimum', __('investigations.minimum')) }} {{ Form::text('minimum', '', ['class' => 'form-control']) }}
{{ Form::label('sample_container', __('investigations.sample_container')) }} {{ Form::text('sample_container', '', ['class' => 'form-control']) }}
{{ Form::label('range_type', 'Is the Reference Range ?') }} {{ Form::select('range_type', ['' => '--select--',1 => 'Dynamic', 2 => 'Constant'], '', ['class' => 'form-control']) }}
{{ Form::label('lab_time', __('investigations.lab_time')) }} {{ Form::text('lab_time', '', ['class' => 'form-control']) }}
{{ Form::label('available',__('investigations.is_investigation_available'), ["class"=>'col-md-12','required']) }}  {{ __('investigations.yes') }} {{ Form::radio('available', 1, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green','required' => 'required']) }}  {{ __('investigations.no') }} {{ Form::radio('available', 0, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green','required' => 'required']) }}
{{ Form::label('echo',__('investigations.echo_investigation_template'), ["class"=>'col-md-12']) }}  {{ __('investigations.yes') }} {{ Form::radio('echo', 1, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}  {{ __('investigations.no') }} {{ Form::radio('echo', 0, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
{{ Form::label('is_chronic',__('investigations.is_investigation_chronic'), ["class"=>'col-md-12']) }}  {{ __('investigations.yes') }} {{ Form::radio('is_chronic', 1, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green','required' => 'required']) }}  {{ __('investigations.no') }} {{ Form::radio('is_chronic', 0, false, ['class' => 'check form-control', 'data-radio'=>'iradio_flat-green','required' => 'required']) }}
{{ Form::label('code', 'Item Code') }} {{ Form::text('code', '', ['class' => 'form-control']) }}
{{ Form::label('reference_areas', __('diagnoses.reference_areas')) }} {{ Form::text('reference_text', '', ['class' => 'form-control', 'placeholder' => 'Reference text']) }}
{{ Form::text('reference_link', '', ['class' => 'form-control', 'placeholder' => 'Reference link e.g. http://google.com']) }}
{{ Form::label('non_insured_price', __('investigations.non_insured_price')) }} {{ Form::number('non_insured_price', '', ['class' => 'form-control compulsory','required', 'id' => 'non_insured_price']) }}
@php $price_list_categories = \Streamline\Models\PriceListCategories::select('patient_category_id', 'id')->get(); @endphp @foreach($price_list_categories as $record)
{{ Form::label('non_insured_price', get_name($record->patient_category_id, 'id', 'name', 'patient_categories').' Price') }} {{ Form::hidden('price_list_category_id[]', $record->id) }} {{ Form::number('price_list_price[]', '', ['class'=>'form-control price_list_price']) }}
@endforeach
{{ Form::label('comments', __('investigations.comments')) }} {{ Form::textArea('comments', '', ['class'=>'form-control', 'rows' => 9]) }}
{{ Form::label('account_id',__('investigations.chart_of_account_name')) }} {{ Form::select('account_id',$chart_of_accounts,'',['class' => 'form-control compulsory','required']) }}
{{ Form::label('hmis_no_outpatient', 'HMIS-out-patient No.') }} {{ Form::text('hmis_no_outpatient[]', '', ['class'=>'form-control']) }}
{{ Form::label('hmis_category', __('investigations.hmis_category_out_patient')) }} {{ Form::select('hmis_category[]', $hmis_categories, '', ['class' => 'form-control']) }}
{{ __('investigations.add_more') }}

{{ Form::label('hmis_category_inpatient', __('investigations.hmis_category_in_patient')) }}
{{ Form::label('hmis_no_inpatient', __('investigations.hmis_category_in_patient_number')) }}
{{ Form::label('hmis_002_slug', __('investigations.hmis_002_category')) }} {{ Form::select('hmis_002_slug', ['' => '--select--',1 => 'TB', 2 => 'RDT', 3=>'B/S', 4=>'RBS'], '', ['class' => 'form-control', 'id'=>'hmis_002_slug']) }}
{{ Form::button(__('investigations.submit'),['type'=>'submit','class'=>'btn btn-success waves-effect waves-light m-r-10 submit-btn']) }} {{ Form::button(__('investigations.cancel'),['type'=>'reset','class'=>'btn btn-default waves-effect waves-light']) }} @endif {{ Form::close() }}
@endsection @push('scripts') @endpush