{{ Form::model('$file',array('url'=>'medical/create','id'=>'file_form','method'=>'POST')) }}


{{Form::label('USUARIO:','',array('class'=>'form-label'))}}
{{Form::label($user->id,'',array('class'=>'form-label'))}}
{{Form::label($user->first.' '.$user->last,'',array('class'=>'form-label'))}}

@if(!$isGuardian)
{{Form::label('FECHA:','',array('class'=>'form-label'))}} {{Form::text('userdate',$user->date,array('class'=>'form-control','readonly'=>'true'))}}
{{Form::label('TELÉFONO:','',array('class'=>'form-label'))}} {{Form::text('userphone',$user->phone,array('class'=>'form-control', 'readonly'=>'true'))}}
@endif
{{Form::label('TIPO DE SANGRE:','',array('class'=>'form-label'))}}

{{ Form::hidden('serial_mdr', $file->serial_mdr ,array('class'=>'form-control'))}} {{ Form::hidden('serial_usr', $serial_usr,array('class'=>'form-control'))}}
{{Form::label('1. ANTECEDENTES','')}}
{{Form::label('1.1 PRENATAL CONTROLADO','')}}
{{ Form::checkbox('cont_pregnancy','YES', $file->cont_pregnancy ? true : null)}} {{ Form::label('EMBARAZO CONTROLADO','') }}
{{ Form::checkbox('preclamsia','YES', $file->preclamsia ? true : null )}} {{ Form::label('PREECLAMSIA','') }}
{{ Form::checkbox('threat_abortion', 'YES',$file->threat_abortion ? true : null )}} {{ Form::label('AMENAZA DE ABORTO O PARTO PREMATURO','') }}
{{ Form::checkbox('ivu','YES',$file->ivu ? true : null )}} {{ Form::label('INFECCIÓN DE VÍAS URINARIAS','') }}

{{Form::label('1.2 NACIMIENTO','')}}
{{ Form::checkbox('end', 'YES', $file->end ? true : null)}} {{ Form::label('TERMINO','') }}
{{ Form::checkbox('premature', 'YES',$file->premature ? true : null)}} {{ Form::label('PREMATURA','') }}
{{ Form::checkbox('cesarea', 'YES',$file->cesarea ? true : null)}} {{ Form::label('CESÁREA','') }}
{{ Form::checkbox('low_weight', 'YES', $file->low_weight ? true : null)}} {{ Form::label('PESO BAJO','') }}
{{ Form::checkbox('high_weight', 'YES', $file->high_weight ? true : null)}} {{ Form::label('PESO ELEVADO','') }}
{{ Form::checkbox('malformations', 'YES', $file->malformations ? true : null)}} {{ Form::label('MAL FORMACIONES','') }}
{{ Form::checkbox('asphyxia', 'YES',$file->asphyxia ? true : null)}} {{ Form::label('ASFIXIA','') }}
{{ Form::checkbox('jaundice', 'YES', $file->jaundice ? true : null)}} {{ Form::label('ICTERICIA','') }}
{{ Form::checkbox('seizures', 'YES', $file->seizures ? true : null)}} {{ Form::label('CONVULSIONES','') }}
{{Form::label('1.3 POSNATAL','')}}
{{ Form::checkbox('language_delay', 'YES',$file->language_delay ? true: null)}} {{ Form::label('RETRASO LENGUAJE','') }}
{{ Form::checkbox('psychomotor_delay', 'YES', $file->psychomotor_delay ? true : null)}} {{ Form::label('RETRASO PSICOMOTOR','') }}
{{ Form::checkbox('normal_dev', 'YES', $file->normal_dev ? true : null)}} {{ Form::label('DESARROLLO NORMAL','') }}

{{Form::label('2. ANTECEDENTES PATOLÓGICOS FAMILIARES','')}} {{ Form::text('medical_history', $file->medical_history,array('class'=>'form-control'))}}

{{Form::label('3. ENFERMEDADES QUE HA PRESENTADO EL ESTUDIANTE','')}}
{{ Form::label('clinical','CLÍNICOS',array('class'=>'control-label')) }}
{{ Form::textArea('clinical', $file->clinical,array('class'=>'form-control','rows'=>'3'))}}
{{ Form::label('allergic','ALERGIAS',array('class'=>'control-label')) }}
{{ Form::text('allergic', $file->allergic,array('class'=>'form-control'))}}

{{ Form::label('quirugicos','CIRUGÍAS',array('class'=>'control-label')) }}
{{ Form::text('quirugicos', $file->quirugicos,array('class'=>'form-control'))}}
{{ Form::label('traumatic','TRAUMATISMOS',array('class'=>'control-label')) }}
{{ Form::text('traumatic', $file->traumatic,array('class'=>'form-control'))}}
{{ Form::label('visual','VISUAL',array('class'=>'control-label')) }}
{{ Form::text('visual', $file->visual,array('class'=>'form-control'))}}
{{ Form::label('auditive','AUDITIVO',array('class'=>'control-label')) }}
{{ Form::text('auditive', $file->auditive,array('class'=>'form-control'))}}


{{ Form::submit('ACEPTAR', array('id'=>'save','class' => 'btn btn-primary')) }}
{{ Form::close()}}
{{ HTML::script('js/medical/loads/file_medical.js') }}