' . "\n"; /********************************************************************** ********************************************************************** ********************************************************************** ********************************************************************** * Lease Detail Main Section */ $lease_type = $lease['LeaseType']; $customer = $lease['Customer']; $unit = $lease['Unit']; if (isset($lease['Lease'])) $lease = $lease['Lease']; $rows = array(); $rows[] = array('Number', $lease['number']); $rows[] = array('Lease Type', $lease_type['name']); $rows[] = array('Unit', $html->link($unit['name'], array('controller' => 'units', 'action' => 'view', $unit['id']))); $rows[] = array('Customer', $html->link($customer['name'], array('controller' => 'customers', 'action' => 'view', $customer['id']))); $rows[] = array('Lease_Date', FormatHelper::date($lease['lease_date'], true)); $rows[] = array('Move-in Planned', FormatHelper::date($lease['movein_planned_date'], true)); $rows[] = array('Move-in', FormatHelper::date($lease['movein_date'], true)); $rows[] = array('Move-out', FormatHelper::date($lease['moveout_date'], true)); $rows[] = array('Move-out Planned', FormatHelper::date($lease['moveout_planned_date'], true)); $rows[] = array('Notice Given', FormatHelper::date($lease['notice_given_date'], true)); $rows[] = array('Notice Received', FormatHelper::date($lease['notice_received_date'], true)); $rows[] = array('Closed', FormatHelper::date($lease['close_date'], true)); $rows[] = array('Deposit', FormatHelper::currency($lease['deposit'])); $rows[] = array('Rent', FormatHelper::currency($lease['rent'])); $rows[] = array('Comment', $lease['comment']); echo $this->element('table', array('class' => 'item lease detail', 'caption' => 'Lease Detail', 'rows' => $rows, 'column_class' => array('field', 'value'))); /********************************************************************** * Lease Info Box */ echo '