@if(session('success'))
Mensaje : {{session('success')}}
@Endif
@if(session('errors'))
Cuidado:!{{session('errors')}}
@Endif
Nueva Receta
{{Form::model($prescription, ['route' => ['prescriptions.update', $prescription->id] , 'method' => 'put', 'enctype'=>'multipart/form-data','id' => 'form-data'])}}
@csrf
{!! Form::close() !!}
{!! Form::select('patientId', \App\Models\Patient::select(\DB::raw('name AS name'), "id")->pluck('name', 'id'), null , ['class' => "form-control select-search", 'id' => 'patientId', 'placeholder' => '::Seleccione::' , 'disabled' => true]) !!}
{!! Form::select('clientId',\App\Models\Client::whereTrash(false)->whereEnabled(true)->select(\DB::raw('CONCAT(firstname, " ", lastName) as clientId'), 'id')->pluck('clientId', 'id'),null,['disabled' => true,'onchange'=> 'getClient(this.value)','class' => 'form-control multiselect-filtering', 'id' => 'clientId', 'placeholder' => '[ Seleccione ]'],) !!}
{{ Form::select('prescriptionType', array('General' => 'Consulta General', 'Ophthalmology' => 'Consulta oftalmologica' ), null , array('class' => "form-control select", 'id' => 'prescriptionType', 'placeholder' => '[ Seleccione ]')) }}
{!! Form::text('medicenes', null, ['id' => "medicenes", 'class' => 'form-control ckeditor']) !!}
{!! Form::text('observations', null, ['id' => "observations", 'class' => 'form-control ckeditor']) !!}
{!! Form::select('employeeId',\App\Models\Employee::whereTrash(false)->whereEnabled(true)->select(\DB::raw('CONCAT(firstname, " ", lastName) as employeeId'), 'id')->pluck('employeeId', 'id'),null,['class' => 'form-control multiselect-filtering', 'id' => 'employeeId', 'placeholder' => '[ Seleccione ]'],) !!}