' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Unit Detail Main Section */ $rows = array(array('Name', $unit['Unit']['name']), array('Status', $unit['Unit']['status']), array('Comment', $unit['Unit']['comment'])); echo $this->element('table', array('class' => 'item unit detail', 'caption' => 'Unit Info', 'rows' => $rows, 'column_class' => array('field', 'value'))); /********************************************************************** * Unit 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"; /********************************************************************** * Lease History */ echo $this->element('leases', array('caption' => 'Lease History', 'leases' => $unit['Lease'])); /********************************************************************** * Current Tenant Lease Account History */ echo $this->element('ledger_entries', array('caption' => ('Current Lease Account (' . $unit['CurrentLease']['Customer']['name'] . ')'), 'lease_id' => $unit['CurrentLease']['id'], )); /* End "detail supporting" div */ echo '
' . "\n"; /* End page div */ echo '' . "\n";