/**
  * 		generates HTML for the View Registration Details Admin page
  *		@access protected
  *		@return void
  */
 protected function _registration_details()
 {
     $this->_template_args = array();
     $this->_set_registration_object();
     if (is_object($this->_registration)) {
         $transaction = $this->_registration->transaction() ? $this->_registration->transaction() : EE_Transaction::new_instance();
         $this->_session = $transaction->session_data();
         $event_id = $this->_registration->event_ID();
         $this->_template_args['reg_nmbr']['value'] = $this->_registration->ID();
         $this->_template_args['reg_nmbr']['label'] = __('Registration Number', 'event_espresso');
         $this->_template_args['reg_datetime']['value'] = $this->_registration->pretty_date('l F j, Y', 'g:i:s a');
         $this->_template_args['reg_datetime']['label'] = __('Date', 'event_espresso');
         $this->_template_args['grand_total'] = $transaction->total();
         $this->_template_args['currency_sign'] = EE_Registry::instance()->CFG->currency->sign;
         // link back to overview
         $this->_template_args['reg_overview_url'] = REG_ADMIN_URL;
         $this->_template_args['registration'] = $this->_registration;
         $this->_template_args['filtered_registrations_link'] = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'default', 'event_id' => $event_id), REG_ADMIN_URL);
         $this->_template_args['filtered_transactions_link'] = EE_Admin_Page::add_query_args_and_nonce(array('action' => 'default', 'EVT_ID' => $event_id, 'page' => 'espresso_transactions'), admin_url('admin.php'));
         $this->_template_args['event_link'] = EE_Admin_Page::add_query_args_and_nonce(array('page' => 'espresso_events', 'action' => 'edit', 'post' => $event_id), admin_url('admin.php'));
         //next and previous links
         $next_reg = $this->_registration->next(null, array(), 'REG_ID');
         $this->_template_args['next_registration'] = $next_reg ? $this->_next_link(EE_Admin_Page::add_query_args_and_nonce(array('action' => 'view_registration', '_REG_ID' => $next_reg['REG_ID']), REG_ADMIN_URL), 'dashicons dashicons-arrow-right ee-icon-size-22') : '';
         $previous_reg = $this->_registration->previous(null, array(), 'REG_ID');
         $this->_template_args['previous_registration'] = $previous_reg ? $this->_previous_link(EE_Admin_Page::add_query_args_and_nonce(array('action' => 'view_registration', '_REG_ID' => $previous_reg['REG_ID']), REG_ADMIN_URL), 'dashicons dashicons-arrow-left ee-icon-size-22') : '';
         // grab header
         $template_path = REG_TEMPLATE_PATH . 'reg_admin_details_header.template.php';
         $this->_template_args['admin_page_header'] = EEH_Template::display_template($template_path, $this->_template_args, TRUE);
     } else {
         $this->_template_args['admin_page_header'] = $this->display_espresso_notices();
     }
     // the details template wrapper
     $this->display_admin_page_with_sidebar();
 }