if ( is_array( $this -> task['users'] ) ): foreach ( $this -> task['users'] as $user_tmp_id ):?>
$user_tmp = \factory\Users::user_details( $user_tmp_id );?>
endforeach; endif;?>
if ( $this -> task['text'] ):?>
= $user_tmp['name'][0] . $user_tmp['surname'][0];?>
= $user_tmp['name'] . $user_tmp['surname'];?>
Opis
= htmlspecialchars_decode( $this -> task['text'] );?>Status
Termin
if ( $this -> task['date_start'] ):?>= $this -> task['date_start'];?>
endif;?>
if ( $this -> task['date_end'] ):?>
= $this -> task['date_end'];?>
endif;?>
Klient
if ( $this -> task['client_id'] ):?> = \factory\Crm::get_client_name( $this -> task['client_id'] );?> endif;?>Przepracowany czas
= sprintf( "%02d%s%02d%s%02d", floor( $this -> task['total_time'] / 3600 ), ':', ( $this -> task['total_time'] / 60) % 60, ':', $this -> task['total_time'] % 60 );?>
Komentarze
foreach ( $this -> task['comments'] as $comment ):?>-
= \factory\Users::user_details( $comment['user_id'] )['name'] . ' ' . \factory\Users::user_details( $comment['user_id'] )['surname'];?>
= date( 'Y/m/d H:i', strtotime( $comment['date_add'] ) );?>
= nl2br( $comment['text'] );?>
endforeach;?>