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

{{ __('symptoms.symptoms') }}

@include('clinical_data::symptoms.menu') @include('flash::message')
@foreach($symptoms as $symptom) @endforeach
{{ __('symptoms.symptom') }} {{ __('symptoms.prompt') }} {{ __('symptoms.reference_text') }}
{{ $symptom->name }} {{ $symptom->prompts }} @php $reference_areas_array = explode(",", $symptom->reference_link); $reference_names_array = explode(",", $symptom->reference_text); @endphp
    @for ($x = 0; $x < count($reference_areas_array); $x++) @if($reference_areas_array[$x] != '')
  1. {{ isset($reference_names_array[$x]) ? $reference_names_array[$x] : '' }}
  2. @endif @endfor
{{ __('symptoms.edit') }} @if (!in_array($symptom->id, $symptom_data)) {{ Form::model($symptom->id ,['method' => 'DELETE', 'route' => ['symptoms.destroy', $symptom->id]]) }} {{ Form::close() }} @else Symptom recorded @endif
{{ $symptoms->links() }}
@endsection @push('scripts') @endpush