Example #1
0
 /**
  * Izgūst bloka HTML
  * 
  * @return string Bloka HTML
  */
 public function getHTML()
 {
     if ($this->question_id > 0 && !Request::has('answers')) {
         return view('blocks.dailyquest', ['id' => 'dailyquest_' . $this->source_id, 'block_title' => $this->block_title, 'block_guid' => $this->block_guid, 'source_id' => $this->source_id, 'option_list' => $this->option_list, 'question_id' => $this->question_id, 'question_text' => $this->question_text, 'question_img' => $this->question_img, 'is_multi_answer' => $this->is_multi_answer ? 1 : 0, 'is_answered' => $this->is_answered ? 1 : 0, 'has_legend' => $this->has_legend ? 1 : 0, 'chart_colors' => get_portal_config('CHART_SECTIONS_COLORS')])->render();
     } else {
         return "";
     }
 }
Example #2
0
 /**
  * Izgūst bloka HTML
  * 
  * @return string Bloka HTML
  */
 public function getHTML()
 {
     return view('blocks.empl_birth', ['block_guid' => $this->block_guid, 'employees' => $this->employees, 'avatar' => get_portal_config('EMPLOYEE_AVATAR'), 'empl_cnt_day' => $this->empl_cnt_day, 'click2call_url' => get_portal_config('CLICK2CALL_URL'), 'fixed_phone_part' => get_portal_config('CLICK2CALL_INNER_PHONE'), 'criteria' => $this->criteria, 'department' => $this->department, 'source_id' => $this->source_id, 'sources' => DB::table('in_sources')->where('is_for_search', '=', 1)->get(), 'date_from' => $this->date_from, 'date_to' => $this->date_to])->render();
 }