' . esc_html__( 'See Nodebook with a business like yours', 'nodebook' ) . '
' . esc_html__( 'Fill it with two dozen sample people, deals, tasks and visits for your kind of business. Nothing is emailed, and one click removes it all again.', 'nodebook' ) . '
' . esc_html__( 'Nobody is waiting for an answer and no tasks are due. New inquiries, tasks and people showing interest appear here.', 'nodebook' ) . '
';
}
if ( $asked ) {
self::section_start( 'asked', __( 'Waiting for an answer', 'nodebook' ), count( $asked ), __( 'They asked something. Reply, then log it or press Done.', 'nodebook' ) );
foreach ( $asked as $c ) {
Nodebook_Admin_Contact::followup_row(
$c,
true,
array(
'last' => $last[ (int) $c['id'] ] ?? null,
'next' => $next[ (int) $c['id'] ] ?? null,
)
);
}
echo '';
}
if ( $now ) {
self::section_start( 'tasks', __( 'Tasks for today', 'nodebook' ), count( $now ), __( 'Overdue first. Add how it went when you tick one off.', 'nodebook' ) );
foreach ( $now as $t ) {
self::task_row( $t, $last[ (int) $t['contact_id'] ] ?? null );
}
echo '';
}
if ( $others ) {
self::section_start( 'follow', __( 'Follow up', 'nodebook' ), count( $others ), __( 'Buying signals, people coming back, snoozes that ended and good contacts gone quiet.', 'nodebook' ) );
foreach ( $others as $c ) {
Nodebook_Admin_Contact::followup_row(
$c,
true,
array(
'last' => $last[ (int) $c['id'] ] ?? null,
'next' => $next[ (int) $c['id'] ] ?? null,
)
);
}
echo '';
}
$reorder = Nodebook_Insights::reorder_due( $owner, 10 );
if ( $reorder ) {
self::section_start( 'reorder', __( 'Due to reorder', 'nodebook' ), count( $reorder ), __( 'Customers who buy at a steady rhythm and are past their usual moment. A short hello often brings the next order.', 'nodebook' ) );
foreach ( $reorder as $cid => $r ) {
$c = $r['contact'];
$name = Nodebook_Contacts::display_name( $c );
echo '
';
}
echo '';
}
if ( $deals ) {
self::section_start( 'deals', __( 'Deals to close', 'nodebook' ), count( $deals ), __( 'Past or near their expected close date, or the contact already ordered. Push them forward, move the date, or close them as won or lost.', 'nodebook' ) );
foreach ( $deals as $d ) {
$late = Nodebook_Deals::is_late( $d );
echo '