public function getCompletedAtLabel()
    {
        if ($this->isComplete()) {
            $class = 'label label-success';
            $icon = 'fa fa-check';
            $message = $this->completed_at;
        } else {
            $class = 'label label-danger';
            $icon = 'fa fa-times';
            $message = 'No report has been created.';
        }

        $icon = HTML::create('i', '', ['class' => $icon]);

        return HTML::raw("<span class='$class'>$icon $message</span>");
    }
public function getCompletedAtLabel()
    {
        if ($this->isComplete()) {
            $class = 'label label-success';
            $icon = 'fa fa-check';
            $message = $this->completed_at;
        } else {
            $class = 'label label-danger';
            $icon = 'fa fa-times';
            $message = 'No report has been created.';
        }

        $icon = HTML::create('i', '', ['class' => $icon]);

        return HTML::raw("<span class='$class'>$icon $message</span>");
    }
public function getCompletedAtLabel ( ) { if ( $ this -> isComplete ( ) ) { $ class = 'label label-success' ; $ icon = 'fa fa-check' ; $ message = $ this -> completed_at ; } else { $ class = 'label label-danger' ; $ icon = 'fa fa-times' ; $ message = 'No report has been created.' ; } $ icon = HTML :: create ( 'i' , '' , [ 'class' => $ icon ] ) ; return HTML :: raw ( "<span class='$class'>$icon $message</span>" ) ; }
Returns an HTML label for the work orders completed at date.

@return string
Returns an HTML label for the work orders completed at date .