passing $sample to view

Added the line set('sample', $sample) in the method "edit" to pass the variable to the form view for editing an item.