$db = new Devis_Pro_DB();
$status_counts = array();
foreach ( $settings['statuses'] as $key => $status ) {
$status_counts[ $key ] = $db->count_devis( array( 'status' => $key ) );
}
$next_status_id = max( array_keys( $settings['statuses'] ) ) + 1;
?>
(int) $next_status_id,
'i18n' => array(
'newStatus' => __( 'New status', 'torlann' ),
'statusColor' => __( 'Status color', 'torlann' ),
'del' => __( 'Delete', 'torlann' ),
'usedBy' => __( 'This status is used by', 'torlann' ),
'cannotDelete' => __( 'quote. You cannot delete it.', 'torlann' ),
'confirmDelete' => __( 'Are you sure you want to delete this status?', 'torlann' ),
),
)
);
?>