public function create($id) { $registration = Registration::find($id); return view('registration::files.create', compact('registration')); }
public function history($registration_id = 0) { $registration = Registration::find($registration_id); $histories = RegistrationHistory::with('notes', 'step', 'creator')->where('registration_id', $registration_id)->orderBy('id', 'desc')->get(); return view('registration::histories.index', compact('histories', 'registration')); }