|
@@ -442,6 +442,18 @@ class pros_SINGLE_Controller extends Controller
|
|
return response()->view('admin/pros_SINGLE/SUB_pro_rates', compact('record', 'subRecords'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
return response()->view('admin/pros_SINGLE/SUB_pro_rates', compact('record', 'subRecords'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // GET /pros/view/{uid}/SUB_note_templates
|
|
|
|
+ public function SUB_note_templates(Request $request, $uid) {
|
|
|
|
+ $record = DB::table('pro')->where('uid', $uid)->first();
|
|
|
|
+ if(!$record) {
|
|
|
|
+ $record = DB::table('pro')->where('id', $uid)->first();
|
|
|
|
+ if($record) return redirect('/pros/view/' . $record->uid . '/SUB_note_templates');
|
|
|
|
+ }
|
|
|
|
+ $subRecords = DB::table('note_template_pro')->where('pro_id', $record->id)->get();
|
|
|
|
+ $result_note_templates = DB::select("select id, title from note_template");
|
|
|
|
+ return response()->view('admin/pros_SINGLE/SUB_note_templates', compact('record', 'subRecords', 'result_note_templates'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
|
|
+ }
|
|
|
|
+
|
|
// GET /pros/view/{uid}/SUB_clients
|
|
// GET /pros/view/{uid}/SUB_clients
|
|
public function SUB_clients(Request $request, $uid) {
|
|
public function SUB_clients(Request $request, $uid) {
|
|
$record = DB::table('pro')->where('uid', $uid)->first();
|
|
$record = DB::table('pro')->where('uid', $uid)->first();
|
|
@@ -576,6 +588,16 @@ class pros_SINGLE_Controller extends Controller
|
|
return response()->view('admin/pros_SINGLE/ACTION_add_new_pro_rate', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
return response()->view('admin/pros_SINGLE/ACTION_add_new_pro_rate', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ // GET /pros/view/{uid}/ACTION_add_new_note_template_pro
|
|
|
|
+ public function ACTION_add_new_note_template_pro(Request $request, $uid) {
|
|
|
|
+ $record = DB::table('pro')->where('uid', $uid)->first();
|
|
|
|
+ if(!$record) {
|
|
|
|
+ $record = DB::table('pro')->where('id', $uid)->first();
|
|
|
|
+ if($record) return redirect('/pros/view/' . $record->uid . '/ACTION_add_new_note_template_pro');
|
|
|
|
+ }
|
|
|
|
+ return response()->view('admin/pros_SINGLE/ACTION_add_new_note_template_pro', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
|
|
|
|
+ }
|
|
|
|
+
|
|
// GET /pros/view/{uid}/ACTION_add_new_client_pro_access
|
|
// GET /pros/view/{uid}/ACTION_add_new_client_pro_access
|
|
public function ACTION_add_new_client_pro_access(Request $request, $uid) {
|
|
public function ACTION_add_new_client_pro_access(Request $request, $uid) {
|
|
$record = DB::table('pro')->where('uid', $uid)->first();
|
|
$record = DB::table('pro')->where('uid', $uid)->first();
|