protected function getAvailableTheme(string $type): Collection
    {
        $themes = $this->finder->detect();

        return $themes->filter(function (Manifest $manifest) use ($type) {
            $group = $manifest->get('type');

            if (! empty($group) && ! \in_array($type, $group)) {
                return;
            }

            return $manifest;
        });
    }
protected function getAvailableTheme(string $type): Collection
    {
        $themes = $this->finder->detect();

        return $themes->filter(function (Manifest $manifest) use ($type) {
            $group = $manifest->get('type');

            if (! empty($group) && ! \in_array($type, $group)) {
                return;
            }

            return $manifest;
        });
    }
protected function getAvailableTheme ( string $ type ) : Collection { $ themes = $ this -> finder -> detect ( ) ; return $ themes -> filter ( function ( Manifest $ manifest ) use ( $ type ) { $ group = $ manifest -> get ( 'type' ) ; if ( ! empty ( $ group ) && ! \ in_array ( $ type , $ group ) ) { return ; } return $ manifest ; } ) ; }
Get all available theme by type.

@param  string  $type

@return \Illuminate\Support\Collection
Get all available theme by type .