@extends('layouts.main') @push('styles') @endpush @section('content')
| Id | {{ __('investigations.investigation_name') }} | {{ __('investigations.hmis_category_out_patient_number') }} | {{ __('investigations.hmis_category_out_patient') }} | {{ __('investigations.hmis_category_in_patient_number') }} | {{ __('investigations.hmis_category_in_patient') }} |
|---|---|---|---|---|---|
| {{ Form::text('id[]', $investigation->id, ['class' => 'form-control']) }} | {{ Form::text('name[]', $investigation->name, ['class' => 'form-control compulsory', 'required']) }} | @php $hmis_no_outpatient_array = explode(",", $investigation->hmis_no_outpatient); $hmis_outpatient_category_array = explode(",", $investigation->hmis_category); @endphp{{ Form::text('hmis_no_outpatient[]', $investigation->hmis_no_outpatient, ['class' => 'form-control','placeholder' => '']) }} | @if(count($hmis_no_outpatient_array) > 0) @for($i=0; $i < 1; $i++) {{ Form::select('hmis_category[]', $hmis_categories, isset($hmis_outpatient_category_array[$i]) ? $hmis_outpatient_category_array[$i] : "", ['class' => 'form-control']) }} @endfor @endif | @php $inpatient_option =$investigation->hmis_category_inpatient; $inpatient_other = array_filter($inpatient_hmis_categories, function ($item) use ($inpatient_option) { return $item['id'] !== $inpatient_option; }); $inpatient_selected = array_filter($inpatient_hmis_categories, function ($item) use ($inpatient_option) { return $item['id'] == $inpatient_option; }); $categories_option = $investigation->hmis_no_inpatient; $selected_hmis_categories_option=array_filter($inpatient_hmis_category_options, function ($item) use ($categories_option) { return $item['id'] == $categories_option; }); $other_hmis_categories_options= array_filter($inpatient_hmis_category_options, function ($item) use ($categories_option) { return $item['id'] != $categories_option; }); @endphp {{-- {{ Form::text('hmis_no_inpatient[]', $investigation->hmis_no_inpatient, ['class' => 'form-control']) }} --}} | {{-- {{ Form::select('hmis_category_inpatient[]', $hmis_categories_ip, $investigation->hmis_category_inpatient, ['class' => 'form-control']) }} --}} |