public function item(Model $item, $view)
    {
        $content = $this->getVariablesAdapter()->get($item->content[0]->content, (array) $item->variables);

        return view($view, [
            'id'         => $item->id,
            'author'     => $item->author,
            'title'      => $item->content[0]->title,
            'value'      => $content,
            'priority'   => priority_label($item->notification->severity->name),
            'created_at' => $item->created_at
        ])->render();
    }
public function item(Model $item, $view)
    {
        $content = $this->getVariablesAdapter()->get($item->content[0]->content, (array) $item->variables);

        return view($view, [
            'id'         => $item->id,
            'author'     => $item->author,
            'title'      => $item->content[0]->title,
            'value'      => $content,
            'priority'   => priority_label($item->notification->severity->name),
            'created_at' => $item->created_at
        ])->render();
    }
public function item ( Model $ item , $ view ) { $ content = $ this -> getVariablesAdapter ( ) -> get ( $ item -> content [ 0 ] -> content , ( array ) $ item -> variables ) ; return view ( $ view , [ 'id' => $ item -> id , 'author' => $ item -> author , 'title' => $ item -> content [ 0 ] -> title , 'value' => $ content , 'priority' => priority_label ( $ item -> notification -> severity -> name ) , 'created_at' => $ item -> created_at ] ) -> render ( ) ; }
Decorates single item

@param Model $item
@param String $view
@return String
Decorates single item