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 print(Request $request, Client $patient, CareMonth $careMonth, $type = 'detailed' ) { dd($type); return view('app.patient.care-month.print', compact('patient', 'careMonth', 'type')); } }