src/Decorator/SidebarItemDecorator.php
public function decorate(Collection $items, $type = 'notification')
    {
        $view = config('antares/notifications::templates.' . $type);
        if (is_null($view)) {
            throw new RuntimeException('Unable to resolve notification partial view.');
        }
        $return = [];
        foreach ($items as $item) {
            $return[] = $this->item($item, $view);
        }
        return $return;
    }
public function decorate(Collection $items, $type = 'notification')
    {
        $view = config('antares/notifications::templates.' . $type);
        if (is_null($view)) {
            throw new RuntimeException('Unable to resolve notification partial view.');
        }
        $return = [];
        foreach ($items as $item) {
            $return[] = $this->item($item, $view);
        }
        return $return;
    }
public function decorate ( Collection $ items , $ type = 'notification' ) { $ view = config ( 'antares/notifications::templates.' . $ type ) ; if ( is_null ( $ view ) ) { throw new RuntimeException ( 'Unable to resolve notification partial view.' ) ; } $ return = [ ] ; foreach ( $ items as $ item ) { $ return [ ] = $ this -> item ( $ item , $ view ) ; } return $ return ; }
Decorates notifications of alerts

@param Collection $items
@param String $type
@return array
@throws RuntimeException
Decorates notifications of alerts