$profil['DreamjobJobApplication']['id']);
if(!$profil['DreamjobJobApplication']['closed']){
$status = __('dreamjob.application.close.actived');
$statusApp= count($profil['DreamjobJobMsg']);
$newcount=0;
foreach($profil['DreamjobJobMsg'] as $msg)
if(!$msg['saw'])
$newcount++;
if($newcount>0)
$statusApp = $newcount."/".$statusApp;
$statusApp =__('dreamjob.applicated.to').' '.$statusApp.'';
$archiv['filter'] = 'archiv';
}else{
$statusApp = __('dreamjob.application');
}
echo $this->Html->link($status,array('controller'=>'job', 'action'=>'applicationByOpening', 'id'=> $profil['DreamjobJobApplication']['opening_id'],'?'=>$archiv),array("class" => "btn btn-default",'escape' => false));
echo $this->Html->link($statusApp,array('controller'=>'job', 'action'=>'applicationGet', 'id'=> $profil['DreamjobJobApplication']['id']),array("class" => "btn btn-default",'escape' => false));
}else{
echo $this->Html->link(__('dreamjob.details'),array('controller'=>'user', 'action'=>'profil', 'id'=> $profil[$AppUser]['id']),array("class" => "btn btn-default"));
}
?>