public function unregisteredTemplatesList()
{
$templates = array();
$templateLocations = $this->Config->get('view');
$regisHumanNames = $this->registeredTemplatesList();
foreach ($templateLocations['paths'] as $path) {
if (!$this->File->exists($path)) {
continue;
}
$files = $this->File->allFiles($path);
foreach ($files as $file) {
if (substr_count($file->getRelativePathname(), '.blade.php')) {
$value = str_replace('/', '.', str_replace('.blade.php', '', $file->getRelativePathname()));
$nameArr = explode('.', $value);
$templateName = last($nameArr);
if (substr($templateName, 0, 1) != '_') {
$templates[$value] = isset($regisHumanNames[$value]) ? $regisHumanNames[$value] : $value;
}
}
}
}
asort($templates);
return array_diff($templates, $regisHumanNames);
}