getFilename()); if($tName !== 'default' && strpos($tName, '-narration') === FALSE) { $cmTemplates[] = $tName; } } $files = File::allFiles(resource_path('views/app/entry-templates/rm')); $rmTemplates = []; foreach ($files as $file) { $tName = str_replace(".blade.php", "", $file->getFilename()); if($tName !== 'default' && strpos($tName, '-narration') === FALSE) { $rmTemplates[] = $tName; } } $pros = $this->pros; return view('app.patient.care-month.dashboard', compact('patient', 'careMonth', 'pros', 'cmTemplates', 'rmTemplates')); } public function measurementsPrint(Request $request, Client $patient, CareMonth $careMonth ) { return view('app.patient.care-month.measurements-print', compact('patient', 'careMonth')); } public function detailedPrint(Request $request, Client $patient, CareMonth $careMonth ) { return view('app.patient.care-month.detailed-print', compact('patient', 'careMonth')); } }