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

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

@include('clinical_data::symptoms.menu')
@include('flash::message')
{{ Form::model($symptom, ['method' => 'PUT', 'route' => ['symptoms.update',$symptom] , 'data-toggle' => 'validator']) }}
{{ Form::label('name', __('symptoms.symptom')) }} {{ Form::text('name', $symptom->name, ['class' => 'form-control compulsory', 'required']) }}
{{ Form::label('prompts', __('symptoms.prompt')) }} {{ Form::textArea('prompts', $symptom->prompts, ['class' => 'form-control', 'rows' => 5]) }}
{{ Form::label('reference_text', __('symptoms.reference_text')) }} {{ Form::textArea('reference_text', $symptom->reference_text, ['class'=>'form-control', 'rows' => 5]) }}
{{ Form::label('reference_link', __('symptoms.reference_link')) }} {{ Form::url('reference_link', $symptom->reference_link, ['class'=>'form-control', 'rows' => 5, 'placeholder' => 'eg http://www.google.com']) }}
{{ Form::label('', __('symptoms.is_symptom_available'), ["class"=>'col-md-12']) }}  {{ __('symptoms.yes') }} {{ Form::radio('available', 1, $symptom->available == 1, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}  {{ __('symptoms.no') }} {{ Form::radio('available', 0, $symptom->available == 0, ["required", 'class' => 'check form-control', 'data-radio'=>'iradio_flat-green']) }}
{{ Form::button(__('symptoms.submit'),['type'=>'submit','class'=>'btn btn-success btn-rounded waves-effect waves-light m-r-10']) }} {{ Form::button(__('symptoms.cancel'),['type'=>'reset','class'=>'btn btn-default btn-rounded waves-effect waves-light']) }} {{ Form::close() }}
@endsection @push('scripts') @endpush