' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Customer Detail Main Section */ $rows = array(array('Name', $customer['Customer']['name']), array('Comment', $customer['Customer']['comment'])); echo $this->element('table', array('class' => 'item customer detail', 'caption' => 'Customer Info', 'rows' => $rows, 'column_class' => array('field', 'value'))); /********************************************************************** * Customer Info Box */ echo '
' . "\n"; $rows = array(); $rows[] = array('Security Deposit:', FormatHelper::currency($outstandingDeposit)); $rows[] = array('Balance:', FormatHelper::currency($outstandingBalance)); echo $this->element('table', array('class' => 'summary', 'rows' => $rows, 'column_class' => array('field', 'value'), 'suppress_alternate_rows' => true, )); echo '
' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Supporting Elements Section */ echo '
' . "\n"; /********************************************************************** * Contacts */ echo $this->element('contacts', array('caption' => 'Customer Contacts', 'contacts' => $customer['Contact'])); /********************************************************************** * Lease History */ echo $this->element('leases', array ('config' => array ('caption' => 'Lease History', 'rows' => $customer['Lease'], 'limit' => 5, ))); /********************************************************************** * Customer Account History */ echo $this->element('ledger_entries', array('caption' => 'Account', 'customer_id' => $customer['Customer']['id'], 'ar_account' => true, )); /* End "detail supporting" div */ echo '
' . "\n"; /* End page div */ echo '' . "\n";