@if(isset($craft))
{!! Form::model($craft, ['method' => 'PATCH', 'action' => ['CraftTypeController@update', $craft->idCraft], 'class' => 'form-horizontal','files'=>true]) !!}
@else
{!! Form::open(['url' => 'crafts', 'class' => 'form-horizontal','files'=>true]) !!}
@endif
@if(isset($craft))
Physical Test Parameter
{!! Form::select('physicalparams[]',PhysicalTestGI(),$craft->physicalParam->pluck('idTestParam')->toArray(),['class' => 'form-control show-tick ms select2','multiple'=>'multiple']) !!}
{!! Form::select('physicalparams[]',PhysicalTestNONGI(),$craft->physicalParam->pluck('idTestParam')->toArray(),['class' => 'form-control show-tick ms select2','multiple'=>'multiple']) !!}
Lab Test Parameter
{!! Form::select('labparams[]',LabTestGI(),$craft->labTestParam->pluck('idTestParam')->toArray(),['class' => 'form-control show-tick ms select2','multiple'=>'multiple']) !!}
{!! Form::select('labparams[]',LabTestNONGI(),$craft->labTestParam->pluck('idTestParam')->toArray(),['class' => 'form-control show-tick ms select2','multiple'=>'multiple']) !!}
@else
Physical Test Parameter
{!! Form::select('physicalparams[]',PhysicalTestGI(),null,['class' => 'form-control show-tick ms select2','multiple'=>'multiple']) !!}
{!! Form::select('physicalparams[]',PhysicalTestNONGI(),null,['class' => 'form-control show-tick ms select2','multiple'=>'multiple']) !!}
Lab Test Parameter
{!! Form::select('labparams[]',LabTestGI(),null,['class' => 'form-control show-tick ms select2','multiple'=>'multiple']) !!}
{!! Form::select('labparams[]',LabTestNONGI(),null,['class' => 'form-control show-tick ms select2','multiple'=>'multiple']) !!}
@endif