- foreach($gateGroups as $gateGroup)
  - $provider = new ServiceProvider($gateGroup->incompleteServices)

  - $viewParams = array('gateGroup' => $gateGroup)
  - if ($provider->isEmpty)
    - $this->renderPartial('service/_create', $viewParams)
  - else
    - if ($service = ($provider->service))
      - $this->renderPartial('service/_'.strtolower($service->status), array_merge($viewParams, array('service' => $service)))
    - else
      - $this->renderPartial('service/_error', array_merge($viewParams, array('errors' => $provider->errors)))
