/** * Display a listing of the resource. * * @return Response */ public function reset($token) { $retval = array(); $retval['code'] = 1; # Get the cell number $vendor = new Vendor(); $cell = $vendor->getCellNumber($token); $vendor->resetNextAvailableCounter($cell, Settings::get($cell, Settings::INITIAL_EMPTY_POSITIONS) + 1); # Remove all appointments against the cell $apointment = new Appointments(); $apointment->reset($cell); return $retval; }