瀏覽代碼

added pro initiative

Josh 4 年之前
父節點
當前提交
19e765f932
共有 45 個文件被更改,包括 920 次插入176 次删除
  1. 24 0
      app/Http/Controllers/pro_program_Controller.php
  2. 33 0
      app/Http/Controllers/pro_program_SINGLE_Controller.php
  3. 30 0
      app/Http/Controllers/programs_Controller.php
  4. 53 0
      app/Http/Controllers/programs_SINGLE_Controller.php
  5. 9 0
      app/Http/Controllers/pros_SINGLE_Controller.php
  6. 3 0
      generatecv/tree.txt
  7. 14 14
      resources/views/admin/bdt_devices/index.blade.php
  8. 28 28
      resources/views/admin/bdt_measurements/index.blade.php
  9. 18 18
      resources/views/admin/client_bdt_devices/index.blade.php
  10. 20 20
      resources/views/admin/handouts/index.blade.php
  11. 1 0
      resources/views/admin/pro_program/actions.blade.php
  12. 46 0
      resources/views/admin/pro_program/index.blade.php
  13. 3 0
      resources/views/admin/pro_program/info.blade.php
  14. 1 0
      resources/views/admin/pro_program/subs.blade.php
  15. 20 0
      resources/views/admin/pro_program/view.blade.php
  16. 41 0
      resources/views/admin/pro_program_SINGLE/ACTION_remove.blade.php
  17. 41 0
      resources/views/admin/pro_program_SINGLE/SUB_dashboard.blade.php
  18. 3 0
      resources/views/admin/programs/actions.blade.php
  19. 44 0
      resources/views/admin/programs/add_new.blade.php
  20. 52 0
      resources/views/admin/programs/index.blade.php
  21. 3 0
      resources/views/admin/programs/info.blade.php
  22. 1 0
      resources/views/admin/programs/subs.blade.php
  23. 20 0
      resources/views/admin/programs/view.blade.php
  24. 41 0
      resources/views/admin/programs_SINGLE/ACTION_deactivate.blade.php
  25. 41 0
      resources/views/admin/programs_SINGLE/ACTION_reactivate.blade.php
  26. 45 0
      resources/views/admin/programs_SINGLE/ACTION_update.blade.php
  27. 41 0
      resources/views/admin/programs_SINGLE/SUB_dashboard.blade.php
  28. 1 0
      resources/views/admin/pros/actions.blade.php
  29. 48 0
      resources/views/admin/pros_SINGLE/ACTION_add_new_pro_program.blade.php
  30. 41 0
      resources/views/admin/pros_SINGLE/ACTION_setInitiative.blade.php
  31. 15 0
      resources/views/admin/pros_SINGLE/SUB_dashboard.blade.php
  32. 34 0
      resources/views/admin/pros_SINGLE/SUB_pro_program.blade.php
  33. 14 14
      resources/views/admin/stag_app_pro_access/index.blade.php
  34. 16 16
      resources/views/admin/stag_apps/index.blade.php
  35. 4 4
      resources/views/pro/action_items/index.blade.php
  36. 2 0
      resources/views/pro/bills_SINGLE/SUB_transactions.blade.php
  37. 4 4
      resources/views/pro/clients_SINGLE/SUB_action_items.blade.php
  38. 18 18
      resources/views/pro/clients_SINGLE/SUB_bdt_devices.blade.php
  39. 10 8
      resources/views/pro/clients_SINGLE/SUB_device_measurements.blade.php
  40. 4 4
      resources/views/pro/clients_SINGLE/SUB_erx.blade.php
  41. 2 0
      resources/views/pro/clients_SINGLE/SUB_related_transactions.blade.php
  42. 4 4
      resources/views/pro/erx/index.blade.php
  43. 24 24
      resources/views/pro/leads/index.blade.php
  44. 2 0
      resources/views/pro/transactions/index.blade.php
  45. 1 0
      routes/generated.php

+ 24 - 0
app/Http/Controllers/pro_program_Controller.php

@@ -0,0 +1,24 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
+
+class pro_program_Controller extends Controller
+{
+    public $selfName = 'pro_program_Controller';
+    public $dashboardName = 'dashboard';
+
+	// GET /pro_program
+	public function index(Request $request) {
+		$records = DB::table('pro_program')->get();
+		return response()->view('admin/pro_program/index', compact('records'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+
+	// GET /pro_program/view/{uid}
+	public function view(Request $request, $uid) {
+		return redirect("/pro_program/view/$uid/SUB_dashboard");
+	}
+}

+ 33 - 0
app/Http/Controllers/pro_program_SINGLE_Controller.php

@@ -0,0 +1,33 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
+
+class pro_program_SINGLE_Controller extends Controller
+{
+    public $selfName = 'pro_program_SINGLE_Controller';
+    public $dashboardName = 'dashboard';
+
+	// GET /pro_program/view/{uid}/ACTION_remove
+	public function ACTION_remove(Request $request, $uid) {
+		$record = DB::table('pro_program')->where('uid', $uid)->first();
+		if(!$record) {
+			$record = DB::table('pro_program')->where('id', $uid)->first();
+			if($record) return redirect('/pro_program/view/' . $record->uid . '/ACTION_remove');
+		}
+		return response()->view('admin/pro_program_SINGLE/ACTION_remove', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+
+	// GET /pro_program/view/{uid}/SUB_dashboard
+	public function SUB_dashboard(Request $request, $uid) {
+		$record = DB::table('pro_program')->where('uid', $uid)->first();
+		if(!$record) {
+			$record = DB::table('pro_program')->where('id', $uid)->first();
+			if($record) return redirect('/pro_program/view/' . $record->uid . '/SUB_dashboard');
+		}
+		return response()->view('admin/pro_program_SINGLE/SUB_dashboard', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+}

+ 30 - 0
app/Http/Controllers/programs_Controller.php

@@ -0,0 +1,30 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
+
+class programs_Controller extends Controller
+{
+    public $selfName = 'programs_Controller';
+    public $dashboardName = 'dashboard';
+
+	// GET /programs
+	public function index(Request $request) {
+		$records = DB::table('program')->get();
+		return response()->view('admin/programs/index', compact('records'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+
+	// GET /programs/add_new
+	public function add_new(Request $request) {
+		$records = DB::table('program')->get();
+		return response()->view('admin/programs/add_new', compact('records'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+
+	// GET /programs/view/{uid}
+	public function view(Request $request, $uid) {
+		return redirect("/programs/view/$uid/SUB_dashboard");
+	}
+}

+ 53 - 0
app/Http/Controllers/programs_SINGLE_Controller.php

@@ -0,0 +1,53 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+use Illuminate\Support\Facades\DB;
+use Illuminate\Support\Facades\Auth;
+
+class programs_SINGLE_Controller extends Controller
+{
+    public $selfName = 'programs_SINGLE_Controller';
+    public $dashboardName = 'dashboard';
+
+	// GET /programs/view/{uid}/ACTION_deactivate
+	public function ACTION_deactivate(Request $request, $uid) {
+		$record = DB::table('program')->where('uid', $uid)->first();
+		if(!$record) {
+			$record = DB::table('program')->where('id', $uid)->first();
+			if($record) return redirect('/programs/view/' . $record->uid . '/ACTION_deactivate');
+		}
+		return response()->view('admin/programs_SINGLE/ACTION_deactivate', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+
+	// GET /programs/view/{uid}/ACTION_reactivate
+	public function ACTION_reactivate(Request $request, $uid) {
+		$record = DB::table('program')->where('uid', $uid)->first();
+		if(!$record) {
+			$record = DB::table('program')->where('id', $uid)->first();
+			if($record) return redirect('/programs/view/' . $record->uid . '/ACTION_reactivate');
+		}
+		return response()->view('admin/programs_SINGLE/ACTION_reactivate', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+
+	// GET /programs/view/{uid}/ACTION_update
+	public function ACTION_update(Request $request, $uid) {
+		$record = DB::table('program')->where('uid', $uid)->first();
+		if(!$record) {
+			$record = DB::table('program')->where('id', $uid)->first();
+			if($record) return redirect('/programs/view/' . $record->uid . '/ACTION_update');
+		}
+		return response()->view('admin/programs_SINGLE/ACTION_update', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+
+	// GET /programs/view/{uid}/SUB_dashboard
+	public function SUB_dashboard(Request $request, $uid) {
+		$record = DB::table('program')->where('uid', $uid)->first();
+		if(!$record) {
+			$record = DB::table('program')->where('id', $uid)->first();
+			if($record) return redirect('/programs/view/' . $record->uid . '/SUB_dashboard');
+		}
+		return response()->view('admin/programs_SINGLE/SUB_dashboard', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+}

+ 9 - 0
app/Http/Controllers/pros_SINGLE_Controller.php

@@ -422,6 +422,15 @@ class pros_SINGLE_Controller extends Controller
 		return response()->view('admin/pros_SINGLE/ACTION_setProType', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
 	}
 
+	public function ACTION_setInitiative(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_setInitiative');
+		}
+		return response()->view('admin/pros_SINGLE/ACTION_setInitiative', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+
 	public function ACTION_putProMemo(Request $request, $uid) {
 		$record = DB::table('pro')->where('uid', $uid)->first();
 		if(!$record) {

+ 3 - 0
generatecv/tree.txt

@@ -1034,11 +1034,14 @@ ADMIN
             setIsSsnCompleteToFalse
             setProType
                 proType:select:ADMIN,INDIVIDUAL,GROUP
+            setInitiative
+                initiative
             putProMemo
                 proMemo:textarea
         SUB
             dashboard
                 !grp:Pro Type:pro_type:Change:circle=>/pros/view/$uid/ACTION_setProType
+                !grp:Initiative:initiative:Change:circle=>/pros/view/$uid/ACTION_setInitiative
                 !grp:Cell Number:cell_number,is_cell_number_confirmation_pending,cell_number_confirmation_token,is_cell_number_confirmed,cell_number_confirmed_at:Put Cell Number:circle=>/pros/view/$uid/ACTION_putNewCellNumber
                 !grp:Email Address:email_address,is_email_address_confirmation_pending,email_address_confirmation_token,is_email_address_confirmed,email_address_confirmed_at:Update Email Address:circle=>/pros/view/$uid/ACTION_putNewEmailAddress
                 !grp:Name:name_display,name_prefix,name_first,name_middle,name_last,name_suffix,name_credential:Update Name:circle=>/pros/view/$uid/ACTION_updateName

+ 14 - 14
resources/views/admin/bdt_devices/index.blade.php

@@ -13,38 +13,38 @@
             <thead>
             <tr>
 <th>&nbsp;</th>
-<th>Category</th>
-<th>Imei</th>
-<th>Memo</th>
 <th>Created At</th>
-<th>Created By Session Id</th>
 <th>Type</th>
-<th>Is Active</th>
 <th>Deactivated At</th>
-<th>Deactivated By Session Id</th>
 <th>Deactivation Memo</th>
+<th>Is Active</th>
 <th>Reactivated At</th>
-<th>Reactivated By Session Id</th>
 <th>Reactivation Memo</th>
+<th>Category</th>
+<th>Imei</th>
+<th>Memo</th>
+<th>Created By Session Id</th>
+<th>Deactivated By Session Id</th>
+<th>Reactivated By Session Id</th>
             </tr>
             </thead>
             <tbody>
             @foreach($records as $record)
                 <tr>
 <td><a href="/bdt_devices/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
-<td><?= $record->category ?></td>
-<td><?= $record->imei ?></td>
-<td><?= $record->memo ?></td>
 <td><?= friendly_date_time($record->created_at) ?></td>
-<td><?= $record->created_by_session_id ?></td>
 <td><?= $record->type ?></td>
-<td><?= $record->is_active ?></td>
 <td><?= friendly_date_time($record->deactivated_at) ?></td>
-<td><?= $record->deactivated_by_session_id ?></td>
 <td><?= $record->deactivation_memo ?></td>
+<td><?= $record->is_active ?></td>
 <td><?= friendly_date_time($record->reactivated_at) ?></td>
-<td><?= $record->reactivated_by_session_id ?></td>
 <td><?= $record->reactivation_memo ?></td>
+<td><?= $record->category ?></td>
+<td><?= $record->imei ?></td>
+<td><?= $record->memo ?></td>
+<td><?= $record->created_by_session_id ?></td>
+<td><?= $record->deactivated_by_session_id ?></td>
+<td><?= $record->reactivated_by_session_id ?></td>
                 </tr>
             @endforeach
             </tbody>

+ 28 - 28
resources/views/admin/bdt_measurements/index.blade.php

@@ -13,52 +13,52 @@
             <thead>
             <tr>
 <th>&nbsp;</th>
-<th>Imei</th>
-<th>Ts</th>
+<th>Created At</th>
+<th>Type</th>
 <th>Battery Voltage</th>
+<th>Device Category</th>
+<th>Device Id</th>
+<th>Diastolic Bp In Mm Hg</th>
+<th>Imei</th>
+<th>Rssi</th>
 <th>Signal Strength</th>
-<th>Value Tare</th>
-<th>Value Weight</th>
-<th>Weight In Pounds</th>
-<th>Value Systolic</th>
+<th>Systolic Bp In Mm Hg</th>
+<th>Ts</th>
 <th>Value Diastolic</th>
+<th>Value Irregular</th>
 <th>Value Pulse</th>
+<th>Value Systolic</th>
+<th>Value Tare</th>
 <th>Value Unit</th>
-<th>Value Irregular</th>
-<th>Rssi</th>
-<th>Device Id</th>
-<th>Device Category</th>
-<th>Created At</th>
+<th>Value Weight</th>
+<th>Weight In Pounds</th>
 <th>Created By Session Id</th>
-<th>Type</th>
-<th>Diastolic Bp In Mm Hg</th>
-<th>Systolic Bp In Mm Hg</th>
             </tr>
             </thead>
             <tbody>
             @foreach($records as $record)
                 <tr>
 <td><a href="/bdt_measurements/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
-<td><?= $record->imei ?></td>
-<td><?= $record->ts ?></td>
+<td><?= friendly_date_time($record->created_at) ?></td>
+<td><?= $record->type ?></td>
 <td><?= $record->battery_voltage ?></td>
+<td><?= $record->device_category ?></td>
+<td><?= $record->device_id ?></td>
+<td><?= $record->diastolic_bp_in_mm_hg ?></td>
+<td><?= $record->imei ?></td>
+<td><?= $record->rssi ?></td>
 <td><?= $record->signal_strength ?></td>
-<td><?= $record->value_tare ?></td>
-<td><?= $record->value_weight ?></td>
-<td><?= $record->weight_in_pounds ?></td>
-<td><?= $record->value_systolic ?></td>
+<td><?= $record->systolic_bp_in_mm_hg ?></td>
+<td><?= $record->ts ?></td>
 <td><?= $record->value_diastolic ?></td>
+<td><?= $record->value_irregular ?></td>
 <td><?= $record->value_pulse ?></td>
+<td><?= $record->value_systolic ?></td>
+<td><?= $record->value_tare ?></td>
 <td><?= $record->value_unit ?></td>
-<td><?= $record->value_irregular ?></td>
-<td><?= $record->rssi ?></td>
-<td><?= $record->device_id ?></td>
-<td><?= $record->device_category ?></td>
-<td><?= friendly_date_time($record->created_at) ?></td>
+<td><?= $record->value_weight ?></td>
+<td><?= $record->weight_in_pounds ?></td>
 <td><?= $record->created_by_session_id ?></td>
-<td><?= $record->type ?></td>
-<td><?= $record->diastolic_bp_in_mm_hg ?></td>
-<td><?= $record->systolic_bp_in_mm_hg ?></td>
                 </tr>
             @endforeach
             </tbody>

+ 18 - 18
resources/views/admin/client_bdt_devices/index.blade.php

@@ -13,44 +13,44 @@
             <thead>
             <tr>
 <th>&nbsp;</th>
-<th>Client Id</th>
-<th>Device Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Deactivated At</th>
+<th>Deactivation Memo</th>
+<th>Is Active</th>
+<th>Reactivated At</th>
+<th>Reactivation Memo</th>
 <th>Instructions</th>
 <th>Internal Memo</th>
 <th>Status</th>
 <th>Status Memo</th>
-<th>Created At</th>
 <th>Created By Session Id</th>
-<th>Type</th>
-<th>Is Active</th>
-<th>Deactivated At</th>
 <th>Deactivated By Session Id</th>
-<th>Deactivation Memo</th>
-<th>Reactivated At</th>
 <th>Reactivated By Session Id</th>
-<th>Reactivation Memo</th>
+<th>Client Id</th>
+<th>Device Id</th>
             </tr>
             </thead>
             <tbody>
             @foreach($records as $record)
                 <tr>
 <td><a href="/client_bdt_devices/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
-<td><?= $record->client_id ?></td>
-<td><?= $record->device_id ?></td>
+<td><?= friendly_date_time($record->created_at) ?></td>
+<td><?= $record->type ?></td>
+<td><?= friendly_date_time($record->deactivated_at) ?></td>
+<td><?= $record->deactivation_memo ?></td>
+<td><?= $record->is_active ?></td>
+<td><?= friendly_date_time($record->reactivated_at) ?></td>
+<td><?= $record->reactivation_memo ?></td>
 <td><?= $record->instructions ?></td>
 <td><?= $record->internal_memo ?></td>
 <td><?= $record->status ?></td>
 <td><?= $record->status_memo ?></td>
-<td><?= friendly_date_time($record->created_at) ?></td>
 <td><?= $record->created_by_session_id ?></td>
-<td><?= $record->type ?></td>
-<td><?= $record->is_active ?></td>
-<td><?= friendly_date_time($record->deactivated_at) ?></td>
 <td><?= $record->deactivated_by_session_id ?></td>
-<td><?= $record->deactivation_memo ?></td>
-<td><?= friendly_date_time($record->reactivated_at) ?></td>
 <td><?= $record->reactivated_by_session_id ?></td>
-<td><?= $record->reactivation_memo ?></td>
+<td><?= $record->client_id ?></td>
+<td><?= $record->device_id ?></td>
                 </tr>
             @endforeach
             </tbody>

+ 20 - 20
resources/views/admin/handouts/index.blade.php

@@ -13,44 +13,44 @@
             <thead>
             <tr>
 <th>&nbsp;</th>
-<th>Internal Name</th>
-<th>Display Name</th>
-<th>Tags</th>
-<th>Pdf File Path</th>
-<th>Pdf File Size In Bytes</th>
-<th>Content Text</th>
 <th>Created At</th>
-<th>Created By Session Id</th>
 <th>Type</th>
-<th>Is Active</th>
 <th>Deactivated At</th>
-<th>Deactivated By Session Id</th>
 <th>Deactivation Memo</th>
+<th>Is Active</th>
 <th>Reactivated At</th>
-<th>Reactivated By Session Id</th>
 <th>Reactivation Memo</th>
+<th>Content Text</th>
+<th>Display Name</th>
+<th>Internal Name</th>
+<th>Pdf File Path</th>
+<th>Pdf File Size In Bytes</th>
+<th>Tags</th>
+<th>Created By Session Id</th>
+<th>Deactivated By Session Id</th>
+<th>Reactivated By Session Id</th>
             </tr>
             </thead>
             <tbody>
             @foreach($records as $record)
                 <tr>
 <td><a href="/handouts/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
-<td><?= $record->internal_name ?></td>
-<td><?= $record->display_name ?></td>
-<td><?= $record->tags ?></td>
-<td><?= $record->pdf_file_path ?></td>
-<td><?= $record->pdf_file_size_in_bytes ?></td>
-<td><?= $record->content_text ?></td>
 <td><?= friendly_date_time($record->created_at) ?></td>
-<td><?= $record->created_by_session_id ?></td>
 <td><?= $record->type ?></td>
-<td><?= $record->is_active ?></td>
 <td><?= friendly_date_time($record->deactivated_at) ?></td>
-<td><?= $record->deactivated_by_session_id ?></td>
 <td><?= $record->deactivation_memo ?></td>
+<td><?= $record->is_active ?></td>
 <td><?= friendly_date_time($record->reactivated_at) ?></td>
-<td><?= $record->reactivated_by_session_id ?></td>
 <td><?= $record->reactivation_memo ?></td>
+<td><?= $record->content_text ?></td>
+<td><?= $record->display_name ?></td>
+<td><?= $record->internal_name ?></td>
+<td><?= $record->pdf_file_path ?></td>
+<td><?= $record->pdf_file_size_in_bytes ?></td>
+<td><?= $record->tags ?></td>
+<td><?= $record->created_by_session_id ?></td>
+<td><?= $record->deactivated_by_session_id ?></td>
+<td><?= $record->reactivated_by_session_id ?></td>
                 </tr>
             @endforeach
             </tbody>

+ 1 - 0
resources/views/admin/pro_program/actions.blade.php

@@ -0,0 +1 @@
+<a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/pro_program/view/<?= $record->uid ?>/ACTION_remove?optimised=1' class='d-block btn btn-sm btn-default mb-3'>Remove</a>

+ 46 - 0
resources/views/admin/pro_program/index.blade.php

@@ -0,0 +1,46 @@
+@extends('layouts.pro-logged-in')
+@section('content')
+
+    <h3 class="d-flex my-3 px-3 stag-heading stag-heading-index">
+        <div>Pro Program: List</div>
+        <div class="ml-auto">
+            <!-- _ADD_NEW_LINK_ -->
+        </div>
+    </h3>
+
+    <div class="table-responsive p-0 bg-white border stag-table stag-table-index">
+        <table class="table table-hover text-nowrap table-striped">
+            <thead>
+            <tr>
+<th>&nbsp;</th>
+<th>Pro Id</th>
+<th>Program Id</th>
+<th>Created By Session Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Is Removed</th>
+<th>Removed At</th>
+<th>Removed By Session Id</th>
+<th>Removal Memo</th>
+            </tr>
+            </thead>
+            <tbody>
+            @foreach($records as $record)
+                <tr>
+<td><a href="/pro_program/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
+<td><?= $record->pro_id ?></td>
+<td><?= $record->program_id ?></td>
+<td><?= $record->created_by_session_id ?></td>
+<td><?= friendly_date_time($record->created_at) ?></td>
+<td><?= $record->type ?></td>
+<td><?= $record->is_removed ?></td>
+<td><?= friendly_date_time($record->removed_at) ?></td>
+<td><?= $record->removed_by_session_id ?></td>
+<td><?= $record->removal_memo ?></td>
+                </tr>
+            @endforeach
+            </tbody>
+        </table>
+    </div>
+
+@endsection

+ 3 - 0
resources/views/admin/pro_program/info.blade.php

@@ -0,0 +1,3 @@
+<h4 class="d-flex my-3 px-3 stag-heading stag-heading-info">
+    <div>Pro Program: Single [<?= $record->uid ?>]</div>
+</h4>

+ 1 - 0
resources/views/admin/pro_program/subs.blade.php

@@ -0,0 +1 @@
+<a href='/pro_program/view/<?= $record->uid ?>/SUB_dashboard' class='d-block px-3 py-2 border-bottom stag-sublink {{ request()->route()->getActionMethod() === 'SUB_dashboard' ? 'bg-secondary text-white font-weight-bold' : '' }}{{ strpos(request()->route()->getActionMethod(), 'ACTION_') === 0 ? 'bg-secondary text-white font-weight-bold' : '' }}'>Dashboard</a>

+ 20 - 0
resources/views/admin/pro_program/view.blade.php

@@ -0,0 +1,20 @@
+@extends('layouts.pro-logged-in')
+@section('content')
+
+    <div class="card rounded-0">
+        <div class="border-bottom bg-light">@include('admin/pro_program/info')</div>
+        <div class="d-flex align-items-stretch">
+            <div class="inner-side-nav">
+                <div class="border-right h-100">
+                    @include('admin/pro_program/subs')
+                </div>
+            </div>
+            <div class="flex-grow-1 px-3 pb-3 mb-3 inner-content">
+                <div>
+                    @yield('content-inner')
+                </div>
+            </div>
+        </div>
+    </div>
+
+@endsection

+ 41 - 0
resources/views/admin/pro_program_SINGLE/ACTION_remove.blade.php

@@ -0,0 +1,41 @@
+@extends('admin.pro_program.view')
+@section('content-inner')
+
+    <div class="form-contents"><div class="failed-form-contents">
+
+    <h4 class="d-flex m-0 p-3 stag-heading stag-heading-modal">
+        <div>Remove</div>
+        <div class="ml-auto">
+            <a class="text-secondary" href="#" up-close>
+                <i class="fa fa-times"></i>
+            </a>
+        </div>
+    </h4>
+
+    <form action="/post-to-api"
+          up-target="#main-content" up-history="false" up-fail-target=".failed-form-contents" up-reveal="false"
+          method="post" enctype="multipart/form-data"
+          class="border-top px-3 pt-3 pb-1 custom-submit">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/proProgram/remove">
+        <input type="hidden" name="_success" value="{{route('pro_program-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('pro_program_SINGLE-ACTION_remove', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Memo </label>
+<input class='form-control' type='text' name='memo' value='{{ old('memo') ? old('memo') : '' }}' >
+</div>
+        <div class="form-group mb-3 d-flex justify-content-center">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('pro_program-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 41 - 0
resources/views/admin/pro_program_SINGLE/SUB_dashboard.blade.php

@@ -0,0 +1,41 @@
+@extends('admin.pro_program.view')
+@section('content-inner')
+
+    <div class="row mt-3">
+    <div class="col-8">
+
+        <div class="table-responsive p-0 bg-white table-sm stag-table border-top">
+            <table class="table table-hover text-nowrap table-striped border-left border-right border-bottom">
+                <thead>
+                <tr>
+                    <th colspan="2" class="px-2">Record Details</th>
+                </tr>
+                </thead>
+                <tbody>
+                <?php foreach($record as $k => $v): ?>
+                    <?php
+                    if($k === 'id' || $k === 'uid') continue;
+                    $displayValue = $record->$k;
+                    if(substr($k, -3) === '_at') {
+                        $displayValue = friendly_date_time($record->$k);
+                    }
+                    ?>
+                    <tr>
+                        <td class="px-2 text-secondary border-right w-50">{{ ucwords(str_replace("_", " ", $k)) }}</td>
+                        <td class="px-2 font-weight-bold w-50">{{ $displayValue }}</td>
+                    </tr>
+                <?php endforeach; ?>
+                </tbody>
+            </table>
+        </div>
+
+    </div>
+    <div class="col-4">
+        <div class="border-left h-100 pl-3">
+            @include('admin/pro_program/actions')
+        </div>
+    </div>
+</div>
+
+
+@endsection

+ 3 - 0
resources/views/admin/programs/actions.blade.php

@@ -0,0 +1,3 @@
+<a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/programs/view/<?= $record->uid ?>/ACTION_deactivate?optimised=1' class='d-block btn btn-sm btn-default mb-3'>Deactivate</a>
+<a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/programs/view/<?= $record->uid ?>/ACTION_reactivate?optimised=1' class='d-block btn btn-sm btn-default mb-3'>Reactivate</a>
+<a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/programs/view/<?= $record->uid ?>/ACTION_update?optimised=1' class='d-block btn btn-sm btn-default mb-3'>Update</a>

+ 44 - 0
resources/views/admin/programs/add_new.blade.php

@@ -0,0 +1,44 @@
+@extends('layouts.pro-logged-in')
+@section('content')
+
+    <div class="form-contents"><div class="failed-form-contents">
+
+    <h4 class="d-flex m-0 p-3 stag-heading stag-heading-modal">
+        <div>Programs: Add New</div>
+        <div class="ml-auto">
+            <a class="text-secondary" href="{{route('programs-index')}}" up-close>
+                <i class="fa fa-times"></i>
+            </a>
+        </div>
+    </h4>
+
+    <form action="/post-to-api"
+          up-target="#main-content" up-history="false" up-fail-target=".failed-form-contents" up-reveal="false"
+          method="post" enctype="multipart/form-data"
+          class="border-top px-3 pt-3 pb-1 custom-submit">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_api" value="/api/program/create">
+        <input type="hidden" name="_success" value="{{route('programs-index')}}">
+        <input type="hidden" name="_return" value="{{route('programs-add_new')}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Title *</label>
+<input class='form-control' type='text' name='title' value='{{ old('title') ? old('title') : '' }}' required>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Measurements *</label>
+<input class='form-control' type='text' name='measurements' value='{{ old('measurements') ? old('measurements') : '' }}' required>
+</div>
+        <div class="form-group mb-3 d-flex justify-content-center">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('programs-index')}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 52 - 0
resources/views/admin/programs/index.blade.php

@@ -0,0 +1,52 @@
+@extends('layouts.pro-logged-in')
+@section('content')
+
+    <h3 class="d-flex my-3 px-3 stag-heading stag-heading-index">
+        <div>Programs: List</div>
+        <div class="ml-auto">
+            <a class='btn btn-primary btn-sm ml-2' up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/programs/add_new?optimised=1'><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
+        </div>
+    </h3>
+
+    <div class="table-responsive p-0 bg-white border stag-table stag-table-index">
+        <table class="table table-hover text-nowrap table-striped">
+            <thead>
+            <tr>
+<th>&nbsp;</th>
+<th>Title</th>
+<th>Measurements</th>
+<th>Created At</th>
+<th>Created By Session Id</th>
+<th>Type</th>
+<th>Is Active</th>
+<th>Deactivated At</th>
+<th>Deactivated By Session Id</th>
+<th>Deactivation Memo</th>
+<th>Reactivated At</th>
+<th>Reactivated By Session Id</th>
+<th>Reactivation Memo</th>
+            </tr>
+            </thead>
+            <tbody>
+            @foreach($records as $record)
+                <tr>
+<td><a href="/programs/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
+<td><?= $record->title ?></td>
+<td><?= $record->measurements ?></td>
+<td><?= friendly_date_time($record->created_at) ?></td>
+<td><?= $record->created_by_session_id ?></td>
+<td><?= $record->type ?></td>
+<td><?= $record->is_active ?></td>
+<td><?= friendly_date_time($record->deactivated_at) ?></td>
+<td><?= $record->deactivated_by_session_id ?></td>
+<td><?= $record->deactivation_memo ?></td>
+<td><?= friendly_date_time($record->reactivated_at) ?></td>
+<td><?= $record->reactivated_by_session_id ?></td>
+<td><?= $record->reactivation_memo ?></td>
+                </tr>
+            @endforeach
+            </tbody>
+        </table>
+    </div>
+
+@endsection

+ 3 - 0
resources/views/admin/programs/info.blade.php

@@ -0,0 +1,3 @@
+<h4 class="d-flex my-3 px-3 stag-heading stag-heading-info">
+    <div>Programs: Single [<?= $record->uid ?>]</div>
+</h4>

+ 1 - 0
resources/views/admin/programs/subs.blade.php

@@ -0,0 +1 @@
+<a href='/programs/view/<?= $record->uid ?>/SUB_dashboard' class='d-block px-3 py-2 border-bottom stag-sublink {{ request()->route()->getActionMethod() === 'SUB_dashboard' ? 'bg-secondary text-white font-weight-bold' : '' }}{{ strpos(request()->route()->getActionMethod(), 'ACTION_') === 0 ? 'bg-secondary text-white font-weight-bold' : '' }}'>Dashboard</a>

+ 20 - 0
resources/views/admin/programs/view.blade.php

@@ -0,0 +1,20 @@
+@extends('layouts.pro-logged-in')
+@section('content')
+
+    <div class="card rounded-0">
+        <div class="border-bottom bg-light">@include('admin/programs/info')</div>
+        <div class="d-flex align-items-stretch">
+            <div class="inner-side-nav">
+                <div class="border-right h-100">
+                    @include('admin/programs/subs')
+                </div>
+            </div>
+            <div class="flex-grow-1 px-3 pb-3 mb-3 inner-content">
+                <div>
+                    @yield('content-inner')
+                </div>
+            </div>
+        </div>
+    </div>
+
+@endsection

+ 41 - 0
resources/views/admin/programs_SINGLE/ACTION_deactivate.blade.php

@@ -0,0 +1,41 @@
+@extends('admin.programs.view')
+@section('content-inner')
+
+    <div class="form-contents"><div class="failed-form-contents">
+
+    <h4 class="d-flex m-0 p-3 stag-heading stag-heading-modal">
+        <div>Deactivate</div>
+        <div class="ml-auto">
+            <a class="text-secondary" href="#" up-close>
+                <i class="fa fa-times"></i>
+            </a>
+        </div>
+    </h4>
+
+    <form action="/post-to-api"
+          up-target="#main-content" up-history="false" up-fail-target=".failed-form-contents" up-reveal="false"
+          method="post" enctype="multipart/form-data"
+          class="border-top px-3 pt-3 pb-1 custom-submit">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/program/deactivate">
+        <input type="hidden" name="_success" value="{{route('programs-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('programs_SINGLE-ACTION_deactivate', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Memo </label>
+<input class='form-control' type='text' name='memo' value='{{ old('memo') ? old('memo') : '' }}' >
+</div>
+        <div class="form-group mb-3 d-flex justify-content-center">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('programs-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 41 - 0
resources/views/admin/programs_SINGLE/ACTION_reactivate.blade.php

@@ -0,0 +1,41 @@
+@extends('admin.programs.view')
+@section('content-inner')
+
+    <div class="form-contents"><div class="failed-form-contents">
+
+    <h4 class="d-flex m-0 p-3 stag-heading stag-heading-modal">
+        <div>Reactivate</div>
+        <div class="ml-auto">
+            <a class="text-secondary" href="#" up-close>
+                <i class="fa fa-times"></i>
+            </a>
+        </div>
+    </h4>
+
+    <form action="/post-to-api"
+          up-target="#main-content" up-history="false" up-fail-target=".failed-form-contents" up-reveal="false"
+          method="post" enctype="multipart/form-data"
+          class="border-top px-3 pt-3 pb-1 custom-submit">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/program/reactivate">
+        <input type="hidden" name="_success" value="{{route('programs-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('programs_SINGLE-ACTION_reactivate', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Memo </label>
+<input class='form-control' type='text' name='memo' value='{{ old('memo') ? old('memo') : '' }}' >
+</div>
+        <div class="form-group mb-3 d-flex justify-content-center">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('programs-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 45 - 0
resources/views/admin/programs_SINGLE/ACTION_update.blade.php

@@ -0,0 +1,45 @@
+@extends('admin.programs.view')
+@section('content-inner')
+
+    <div class="form-contents"><div class="failed-form-contents">
+
+    <h4 class="d-flex m-0 p-3 stag-heading stag-heading-modal">
+        <div>Update</div>
+        <div class="ml-auto">
+            <a class="text-secondary" href="#" up-close>
+                <i class="fa fa-times"></i>
+            </a>
+        </div>
+    </h4>
+
+    <form action="/post-to-api"
+          up-target="#main-content" up-history="false" up-fail-target=".failed-form-contents" up-reveal="false"
+          method="post" enctype="multipart/form-data"
+          class="border-top px-3 pt-3 pb-1 custom-submit">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/program/update">
+        <input type="hidden" name="_success" value="{{route('programs-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('programs_SINGLE-ACTION_update', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Name </label>
+<input class='form-control' type='text' name='name' value='{{ old('name') ? old('name') : $record->title }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Measurements </label>
+<input class='form-control' type='text' name='measurements' value='{{ old('measurements') ? old('measurements') : $record->measurements }}' >
+</div>
+        <div class="form-group mb-3 d-flex justify-content-center">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('programs-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 41 - 0
resources/views/admin/programs_SINGLE/SUB_dashboard.blade.php

@@ -0,0 +1,41 @@
+@extends('admin.programs.view')
+@section('content-inner')
+
+    <div class="row mt-3">
+    <div class="col-8">
+
+        <div class="table-responsive p-0 bg-white table-sm stag-table border-top">
+            <table class="table table-hover text-nowrap table-striped border-left border-right border-bottom">
+                <thead>
+                <tr>
+                    <th colspan="2" class="px-2">Record Details</th>
+                </tr>
+                </thead>
+                <tbody>
+                <?php foreach($record as $k => $v): ?>
+                    <?php
+                    if($k === 'id' || $k === 'uid') continue;
+                    $displayValue = $record->$k;
+                    if(substr($k, -3) === '_at') {
+                        $displayValue = friendly_date_time($record->$k);
+                    }
+                    ?>
+                    <tr>
+                        <td class="px-2 text-secondary border-right w-50">{{ ucwords(str_replace("_", " ", $k)) }}</td>
+                        <td class="px-2 font-weight-bold w-50">{{ $displayValue }}</td>
+                    </tr>
+                <?php endforeach; ?>
+                </tbody>
+            </table>
+        </div>
+
+    </div>
+    <div class="col-4">
+        <div class="border-left h-100 pl-3">
+            @include('admin/programs/actions')
+        </div>
+    </div>
+</div>
+
+
+@endsection

+ 1 - 0
resources/views/admin/pros/actions.blade.php

@@ -39,4 +39,5 @@
 <a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/pros/view/<?= $record->uid ?>/ACTION_setIsSsnCompleteToTrue?optimised=1' class='d-block btn btn-sm btn-default mb-3'>Set Is Ssn Complete To True</a>
 <a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/pros/view/<?= $record->uid ?>/ACTION_setIsSsnCompleteToFalse?optimised=1' class='d-block btn btn-sm btn-default mb-3'>Set Is Ssn Complete To False</a>
 <a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/pros/view/<?= $record->uid ?>/ACTION_setProType?optimised=1' class='d-block btn btn-sm btn-default mb-3'>Set Pro Type</a>
+<a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/pros/view/<?= $record->uid ?>/ACTION_setInitiative?optimised=1' class='d-block btn btn-sm btn-default mb-3'>Set Initiative</a>
 <a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/pros/view/<?= $record->uid ?>/ACTION_putProMemo?optimised=1' class='d-block btn btn-sm btn-default mb-3'>Put Pro Memo</a>

+ 48 - 0
resources/views/admin/pros_SINGLE/ACTION_add_new_pro_program.blade.php

@@ -0,0 +1,48 @@
+@extends('admin.pros.view')
+@section('content-inner')
+
+    <div class="form-contents"><div class="failed-form-contents">
+
+    <h4 class="d-flex m-0 p-3 stag-heading stag-heading-modal">
+        <div>Add New Pro Program</div>
+        <div class="ml-auto">
+            <a class="text-secondary" href="#" up-close>
+                <i class="fa fa-times"></i>
+            </a>
+        </div>
+    </h4>
+
+    <form action="/post-to-api"
+          up-target="#main-content" up-history="false" up-fail-target=".failed-form-contents" up-reveal="false"
+          method="post" enctype="multipart/form-data"
+          class="border-top px-3 pt-3 pb-1 custom-submit">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/proProgram/create">
+        <input type="hidden" name="_success" value="{{route('pros_SINGLE-SUB_pro_program', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('pros_SINGLE-ACTION_add_new_pro_program', ['uid' => $record->uid])}}">
+        <input class='form-control' type='hidden' name='proUid' value='{{ old('proUid') ? old('proUid') : $record->uid }}' >
+<div class='form-group mb-3'>
+<label class='control-label'>Program </label>
+<select class='form-control' name='programUid' value='{{ old('programUid') ? old('programUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('program')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('programUid') ? old('programUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->title ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+        <div class="form-group mb-3 d-flex justify-content-center">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('pros_SINGLE-SUB_pro_program', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 41 - 0
resources/views/admin/pros_SINGLE/ACTION_setInitiative.blade.php

@@ -0,0 +1,41 @@
+@extends('admin.pros.view')
+@section('content-inner')
+
+    <div class="form-contents"><div class="failed-form-contents">
+
+    <h4 class="d-flex m-0 p-3 stag-heading stag-heading-modal">
+        <div>Set Initiative</div>
+        <div class="ml-auto">
+            <a class="text-secondary" href="#" up-close>
+                <i class="fa fa-times"></i>
+            </a>
+        </div>
+    </h4>
+
+    <form action="/post-to-api"
+          up-target="#main-content" up-history="false" up-fail-target=".failed-form-contents" up-reveal="false"
+          method="post" enctype="multipart/form-data"
+          class="border-top px-3 pt-3 pb-1 custom-submit">
+        @csrf
+
+        @if (session('message'))
+            <div class="alert alert-danger">{{ session('message') }}</div>
+        @endif
+
+        <input type="hidden" name="_uid" value="{{ $record->uid }}">
+        <input type="hidden" name="_api" value="/api/pro/setInitiative">
+        <input type="hidden" name="_success" value="{{route('pros-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('pros_SINGLE-ACTION_setInitiative', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Initiative </label>
+<input class='form-control' type='text' name='initiative' value='{{ old('initiative') ? old('initiative') : '' }}' >
+</div>
+        <div class="form-group mb-3 d-flex justify-content-center">
+            <button class="btn btn-sm btn-primary mr-3 px-5">Submit</button>
+            <a href="{{route('pros-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 15 - 0
resources/views/admin/pros_SINGLE/SUB_dashboard.blade.php

@@ -19,6 +19,21 @@
     </table>
 </div>
 
+<div class="table-responsive p-0 bg-white table-sm mb-3">
+    <table class="table table-hover text-nowrap table-striped border-left border-right border-bottom">
+        <thead>
+        <tr>
+            <th colspan="2" class="px-2">Initiative
+                <span class="ml-auto"><a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/pros/view/<?= $record->uid ?>/ACTION_setInitiative' title='Change?optimised=1'class='mx-2 font-weight-normal text-primary text-xs'><i class='fa fa-circle'></i>&nbsp;<span>Change</span></a></span>
+            </th>
+        </tr>
+        </thead>
+        <tbody>
+            <tr><td class="w-25 px-2 text-secondary border-right">Initiative</td><td class="w-75 px-2 font-weight-bold"><?= $record->initiative ?></td></tr>
+        </tbody>
+    </table>
+</div>
+
 <div class="table-responsive p-0 bg-white table-sm mb-3">
     <table class="table table-hover text-nowrap table-striped border-left border-right border-bottom">
         <thead>

+ 34 - 0
resources/views/admin/pros_SINGLE/SUB_pro_program.blade.php

@@ -0,0 +1,34 @@
+@extends('admin.pros.view')
+@section('content-inner')
+
+    <div class="pb-3">
+
+        <h5 class='my-3 d-flex stag-heading stag-heading-sub'>
+            <div>Pro Program</div>
+            <div class="ml-auto">
+                <a class="btn btn-primary btn-sm ml-2" up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href="{{route('pros_SINGLE-ACTION_add_new_pro_program', ['uid' => $record->uid])}}?optimised=1"><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
+            </div>
+        </h5>
+
+        <div class="table-responsive p-0 bg-white border stag-table stag-table-sub">
+            <table class="table table-hover text-nowrap">
+                <thead>
+                <tr>
+                    <th>&nbsp;</th>
+<th>Program</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($subRecords as $subRecord)
+                    <tr>
+                        <td><a href="/pro_program/view/{{ $subRecord->uid }}/SUB_dashboard"><i class="fas fa-share-square"></i></a></td>
+<td><?= value_from_rs($result_programs, 'title', [['id', '=', $subRecord->program_id], ], 'all'); ?></td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+    </div>
+
+@endsection

+ 14 - 14
resources/views/admin/stag_app_pro_access/index.blade.php

@@ -13,38 +13,38 @@
             <thead>
             <tr>
 <th>&nbsp;</th>
-<th>Pro Id</th>
-<th>Stag App Id</th>
-<th>Memo</th>
 <th>Created At</th>
-<th>Created By Session Id</th>
 <th>Type</th>
-<th>Is Active</th>
 <th>Deactivated At</th>
-<th>Deactivated By Session Id</th>
 <th>Deactivation Memo</th>
+<th>Is Active</th>
 <th>Reactivated At</th>
-<th>Reactivated By Session Id</th>
 <th>Reactivation Memo</th>
+<th>Memo</th>
+<th>Created By Session Id</th>
+<th>Deactivated By Session Id</th>
+<th>Reactivated By Session Id</th>
+<th>Pro Id</th>
+<th>Stag App Id</th>
             </tr>
             </thead>
             <tbody>
             @foreach($records as $record)
                 <tr>
 <td><a href="/stag_app_pro_access/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
-<td><?= $record->pro_id ?></td>
-<td><?= $record->stag_app_id ?></td>
-<td><?= $record->memo ?></td>
 <td><?= friendly_date_time($record->created_at) ?></td>
-<td><?= $record->created_by_session_id ?></td>
 <td><?= $record->type ?></td>
-<td><?= $record->is_active ?></td>
 <td><?= friendly_date_time($record->deactivated_at) ?></td>
-<td><?= $record->deactivated_by_session_id ?></td>
 <td><?= $record->deactivation_memo ?></td>
+<td><?= $record->is_active ?></td>
 <td><?= friendly_date_time($record->reactivated_at) ?></td>
-<td><?= $record->reactivated_by_session_id ?></td>
 <td><?= $record->reactivation_memo ?></td>
+<td><?= $record->memo ?></td>
+<td><?= $record->created_by_session_id ?></td>
+<td><?= $record->deactivated_by_session_id ?></td>
+<td><?= $record->reactivated_by_session_id ?></td>
+<td><?= $record->pro_id ?></td>
+<td><?= $record->stag_app_id ?></td>
                 </tr>
             @endforeach
             </tbody>

+ 16 - 16
resources/views/admin/stag_apps/index.blade.php

@@ -13,42 +13,42 @@
             <thead>
             <tr>
 <th>&nbsp;</th>
-<th>Name</th>
-<th>Url</th>
-<th>Description</th>
-<th>Position Index</th>
 <th>Created At</th>
-<th>Created By Session Id</th>
 <th>Type</th>
-<th>Is Active</th>
 <th>Deactivated At</th>
-<th>Deactivated By Session Id</th>
 <th>Deactivation Memo</th>
+<th>Is Active</th>
 <th>Reactivated At</th>
-<th>Reactivated By Session Id</th>
 <th>Reactivation Memo</th>
+<th>Description</th>
+<th>Name</th>
+<th>Position Index</th>
 <th>Requires Admin</th>
+<th>Url</th>
+<th>Created By Session Id</th>
+<th>Deactivated By Session Id</th>
+<th>Reactivated By Session Id</th>
             </tr>
             </thead>
             <tbody>
             @foreach($records as $record)
                 <tr>
 <td><a href="/stag_apps/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
-<td><?= $record->name ?></td>
-<td><?= $record->url ?></td>
-<td><?= $record->description ?></td>
-<td><?= $record->position_index ?></td>
 <td><?= friendly_date_time($record->created_at) ?></td>
-<td><?= $record->created_by_session_id ?></td>
 <td><?= $record->type ?></td>
-<td><?= $record->is_active ?></td>
 <td><?= friendly_date_time($record->deactivated_at) ?></td>
-<td><?= $record->deactivated_by_session_id ?></td>
 <td><?= $record->deactivation_memo ?></td>
+<td><?= $record->is_active ?></td>
 <td><?= friendly_date_time($record->reactivated_at) ?></td>
-<td><?= $record->reactivated_by_session_id ?></td>
 <td><?= $record->reactivation_memo ?></td>
+<td><?= $record->description ?></td>
+<td><?= $record->name ?></td>
+<td><?= $record->position_index ?></td>
 <td><?= $record->requires_admin ?></td>
+<td><?= $record->url ?></td>
+<td><?= $record->created_by_session_id ?></td>
+<td><?= $record->deactivated_by_session_id ?></td>
+<td><?= $record->reactivated_by_session_id ?></td>
                 </tr>
             @endforeach
             </tbody>

+ 4 - 4
resources/views/pro/action_items/index.blade.php

@@ -18,6 +18,8 @@
 <th>Action Item Category</th>
 <th>Content Detail</th>
 <th>Content Text</th>
+<th>Dose</th>
+<th>Facility Memo</th>
 <th>Is Signed By Ally</th>
 <th>Is Signed By Prescriber</th>
 <th>Signed By Ally At</th>
@@ -33,8 +35,6 @@
 <th>Signed By Ally Session Id</th>
 <th>Signed By Prescriber Session Id</th>
 <th>To Facility Id</th>
-<th>Facility Memo</th>
-<th>Dose</th>
             </tr>
             </thead>
             <tbody>
@@ -46,6 +46,8 @@
 <td><?= $record->action_item_category ?></td>
 <td><?= $record->content_detail ?></td>
 <td><?= $record->content_text ?></td>
+<td><?= $record->dose ?></td>
+<td><?= $record->facility_memo ?></td>
 <td><?= $record->is_signed_by_ally ?></td>
 <td><?= $record->is_signed_by_prescriber ?></td>
 <td><?= friendly_date_time($record->signed_by_ally_at) ?></td>
@@ -61,8 +63,6 @@
 <td><?= $record->signed_by_ally_session_id ?></td>
 <td><?= $record->signed_by_prescriber_session_id ?></td>
 <td><?= $record->to_facility_id ?></td>
-<td><?= $record->facility_memo ?></td>
-<td><?= $record->dose ?></td>
                 </tr>
             @endforeach
             </tbody>

+ 2 - 0
resources/views/pro/bills_SINGLE/SUB_transactions.blade.php

@@ -26,6 +26,7 @@
 <th>Created By Session Id</th>
 <th>Bill Id</th>
 <th>Client Id</th>
+<th>Client Program Month Entry Id</th>
 <th>Pro Id</th>
                 </tr>
                 </thead>
@@ -44,6 +45,7 @@
 <td><?= $subRecord->created_by_session_id ?></td>
 <td><?= $subRecord->bill_id ?></td>
 <td><?= $subRecord->client_id ?></td>
+<td><?= $subRecord->client_program_month_entry_id ?></td>
 <td><?= $subRecord->pro_id ?></td>
                     </tr>
                 @endforeach

+ 4 - 4
resources/views/pro/clients_SINGLE/SUB_action_items.blade.php

@@ -20,6 +20,8 @@
 <th>Action Item Category</th>
 <th>Content Detail</th>
 <th>Content Text</th>
+<th>Dose</th>
+<th>Facility Memo</th>
 <th>Is Signed By Ally</th>
 <th>Is Signed By Prescriber</th>
 <th>Signed By Ally At</th>
@@ -35,8 +37,6 @@
 <th>Signed By Ally Session Id</th>
 <th>Signed By Prescriber Session Id</th>
 <th>To Facility Id</th>
-<th>Facility Memo</th>
-<th>Dose</th>
                 </tr>
                 </thead>
                 <tbody>
@@ -48,6 +48,8 @@
 <td><?= $subRecord->action_item_category ?></td>
 <td><?= $subRecord->content_detail ?></td>
 <td><?= $subRecord->content_text ?></td>
+<td><?= $subRecord->dose ?></td>
+<td><?= $subRecord->facility_memo ?></td>
 <td><?= $subRecord->is_signed_by_ally ?></td>
 <td><?= $subRecord->is_signed_by_prescriber ?></td>
 <td><?= friendly_date_time($subRecord->signed_by_ally_at) ?></td>
@@ -63,8 +65,6 @@
 <td><?= $subRecord->signed_by_ally_session_id ?></td>
 <td><?= $subRecord->signed_by_prescriber_session_id ?></td>
 <td><?= $subRecord->to_facility_id ?></td>
-<td><?= $subRecord->facility_memo ?></td>
-<td><?= $subRecord->dose ?></td>
                     </tr>
                 @endforeach
                 </tbody>

+ 18 - 18
resources/views/pro/clients_SINGLE/SUB_bdt_devices.blade.php

@@ -15,44 +15,44 @@
                 <thead>
                 <tr>
                     <th>&nbsp;</th>
-<th>Client Id</th>
-<th>Device Id</th>
+<th>Created At</th>
+<th>Type</th>
+<th>Deactivated At</th>
+<th>Deactivation Memo</th>
+<th>Is Active</th>
+<th>Reactivated At</th>
+<th>Reactivation Memo</th>
 <th>Instructions</th>
 <th>Internal Memo</th>
 <th>Status</th>
 <th>Status Memo</th>
-<th>Created At</th>
 <th>Created By Session Id</th>
-<th>Type</th>
-<th>Is Active</th>
-<th>Deactivated At</th>
 <th>Deactivated By Session Id</th>
-<th>Deactivation Memo</th>
-<th>Reactivated At</th>
 <th>Reactivated By Session Id</th>
-<th>Reactivation Memo</th>
+<th>Client Id</th>
+<th>Device Id</th>
                 </tr>
                 </thead>
                 <tbody>
                 @foreach($subRecords as $subRecord)
                     <tr>
                         <td><a href="/client_bdt_devices/view/{{ $subRecord->uid }}"><i class="fas fa-share-square"></i></a></td>
-<td><?= $subRecord->client_id ?></td>
-<td><?= $subRecord->device_id ?></td>
+<td><?= friendly_date_time($subRecord->created_at) ?></td>
+<td><?= $subRecord->type ?></td>
+<td><?= friendly_date_time($subRecord->deactivated_at) ?></td>
+<td><?= $subRecord->deactivation_memo ?></td>
+<td><?= $subRecord->is_active ?></td>
+<td><?= friendly_date_time($subRecord->reactivated_at) ?></td>
+<td><?= $subRecord->reactivation_memo ?></td>
 <td><?= $subRecord->instructions ?></td>
 <td><?= $subRecord->internal_memo ?></td>
 <td><?= $subRecord->status ?></td>
 <td><?= $subRecord->status_memo ?></td>
-<td><?= friendly_date_time($subRecord->created_at) ?></td>
 <td><?= $subRecord->created_by_session_id ?></td>
-<td><?= $subRecord->type ?></td>
-<td><?= $subRecord->is_active ?></td>
-<td><?= friendly_date_time($subRecord->deactivated_at) ?></td>
 <td><?= $subRecord->deactivated_by_session_id ?></td>
-<td><?= $subRecord->deactivation_memo ?></td>
-<td><?= friendly_date_time($subRecord->reactivated_at) ?></td>
 <td><?= $subRecord->reactivated_by_session_id ?></td>
-<td><?= $subRecord->reactivation_memo ?></td>
+<td><?= $subRecord->client_id ?></td>
+<td><?= $subRecord->device_id ?></td>
                     </tr>
                 @endforeach
                 </tbody>

+ 10 - 8
resources/views/pro/clients_SINGLE/SUB_device_measurements.blade.php

@@ -15,26 +15,28 @@
                 <thead>
                 <tr>
                     <th>&nbsp;</th>
-<th>Client Id</th>
-<th>Bdt Measurement Id</th>
+<th>Created At</th>
+<th>Type</th>
 <th>Status</th>
 <th>Status Memo</th>
-<th>Created At</th>
 <th>Created By Session Id</th>
-<th>Type</th>
+<th>Bdt Measurement Id</th>
+<th>Client Id</th>
+<th>Measurement Id</th>
                 </tr>
                 </thead>
                 <tbody>
                 @foreach($subRecords as $subRecord)
                     <tr>
                         <td><a href=""><i class="fas fa-share-square"></i></a></td>
-<td><?= $subRecord->client_id ?></td>
-<td><?= $subRecord->bdt_measurement_id ?></td>
+<td><?= friendly_date_time($subRecord->created_at) ?></td>
+<td><?= $subRecord->type ?></td>
 <td><?= $subRecord->status ?></td>
 <td><?= $subRecord->status_memo ?></td>
-<td><?= friendly_date_time($subRecord->created_at) ?></td>
 <td><?= $subRecord->created_by_session_id ?></td>
-<td><?= $subRecord->type ?></td>
+<td><?= $subRecord->bdt_measurement_id ?></td>
+<td><?= $subRecord->client_id ?></td>
+<td><?= $subRecord->measurement_id ?></td>
                     </tr>
                 @endforeach
                 </tbody>

+ 4 - 4
resources/views/pro/clients_SINGLE/SUB_erx.blade.php

@@ -20,6 +20,8 @@
 <th>Action Item Category</th>
 <th>Content Detail</th>
 <th>Content Text</th>
+<th>Dose</th>
+<th>Facility Memo</th>
 <th>Is Signed By Ally</th>
 <th>Is Signed By Prescriber</th>
 <th>Signed By Ally At</th>
@@ -35,8 +37,6 @@
 <th>Signed By Ally Session Id</th>
 <th>Signed By Prescriber Session Id</th>
 <th>To Facility Id</th>
-<th>Facility Memo</th>
-<th>Dose</th>
                 </tr>
                 </thead>
                 <tbody>
@@ -48,6 +48,8 @@
 <td><?= $subRecord->action_item_category ?></td>
 <td><?= $subRecord->content_detail ?></td>
 <td><?= $subRecord->content_text ?></td>
+<td><?= $subRecord->dose ?></td>
+<td><?= $subRecord->facility_memo ?></td>
 <td><?= $subRecord->is_signed_by_ally ?></td>
 <td><?= $subRecord->is_signed_by_prescriber ?></td>
 <td><?= friendly_date_time($subRecord->signed_by_ally_at) ?></td>
@@ -63,8 +65,6 @@
 <td><?= $subRecord->signed_by_ally_session_id ?></td>
 <td><?= $subRecord->signed_by_prescriber_session_id ?></td>
 <td><?= $subRecord->to_facility_id ?></td>
-<td><?= $subRecord->facility_memo ?></td>
-<td><?= $subRecord->dose ?></td>
                     </tr>
                 @endforeach
                 </tbody>

+ 2 - 0
resources/views/pro/clients_SINGLE/SUB_related_transactions.blade.php

@@ -26,6 +26,7 @@
 <th>Created By Session Id</th>
 <th>Bill Id</th>
 <th>Client Id</th>
+<th>Client Program Month Entry Id</th>
 <th>Pro Id</th>
                 </tr>
                 </thead>
@@ -44,6 +45,7 @@
 <td><?= $subRecord->created_by_session_id ?></td>
 <td><?= $subRecord->bill_id ?></td>
 <td><?= $subRecord->client_id ?></td>
+<td><?= $subRecord->client_program_month_entry_id ?></td>
 <td><?= $subRecord->pro_id ?></td>
                     </tr>
                 @endforeach

+ 4 - 4
resources/views/pro/erx/index.blade.php

@@ -18,6 +18,8 @@
 <th>Action Item Category</th>
 <th>Content Detail</th>
 <th>Content Text</th>
+<th>Dose</th>
+<th>Facility Memo</th>
 <th>Is Signed By Ally</th>
 <th>Is Signed By Prescriber</th>
 <th>Signed By Ally At</th>
@@ -33,8 +35,6 @@
 <th>Signed By Ally Session Id</th>
 <th>Signed By Prescriber Session Id</th>
 <th>To Facility Id</th>
-<th>Facility Memo</th>
-<th>Dose</th>
             </tr>
             </thead>
             <tbody>
@@ -46,6 +46,8 @@
 <td><?= $record->action_item_category ?></td>
 <td><?= $record->content_detail ?></td>
 <td><?= $record->content_text ?></td>
+<td><?= $record->dose ?></td>
+<td><?= $record->facility_memo ?></td>
 <td><?= $record->is_signed_by_ally ?></td>
 <td><?= $record->is_signed_by_prescriber ?></td>
 <td><?= friendly_date_time($record->signed_by_ally_at) ?></td>
@@ -61,8 +63,6 @@
 <td><?= $record->signed_by_ally_session_id ?></td>
 <td><?= $record->signed_by_prescriber_session_id ?></td>
 <td><?= $record->to_facility_id ?></td>
-<td><?= $record->facility_memo ?></td>
-<td><?= $record->dose ?></td>
                 </tr>
             @endforeach
             </tbody>

+ 24 - 24
resources/views/pro/leads/index.blade.php

@@ -13,44 +13,44 @@
             <thead>
             <tr>
 <th>&nbsp;</th>
-<th>Program</th>
-<th>Name First</th>
-<th>Name Last</th>
-<th>Dob</th>
-<th>Mcn</th>
-<th>Is Mcn Valid</th>
-<th>Client Id</th>
-<th>Full Lead Form Data</th>
-<th>Full Eligible Api Response</th>
 <th>Created At</th>
-<th>Created By Session Id</th>
 <th>Type</th>
+<th>Address</th>
+<th>Dob</th>
+<th>Email</th>
+<th>Full Eligible Api Response</th>
+<th>Full Lead Form Data</th>
+<th>Is Mcn Valid</th>
 <th>Lead Data</th>
+<th>Mcn</th>
+<th>Name First</th>
+<th>Name Last</th>
 <th>Phone</th>
-<th>Email</th>
-<th>Address</th>
+<th>Program</th>
+<th>Created By Session Id</th>
+<th>Client Id</th>
             </tr>
             </thead>
             <tbody>
             @foreach($records as $record)
                 <tr>
 <td><a href="/leads/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
-<td><?= $record->program ?></td>
-<td><?= $record->name_first ?></td>
-<td><?= $record->name_last ?></td>
-<td><?= $record->dob ?></td>
-<td><?= $record->mcn ?></td>
-<td><?= $record->is_mcn_valid ?></td>
-<td><?= $record->client_id ?></td>
-<td><?= $record->full_lead_form_data ?></td>
-<td><?= $record->full_eligible_api_response ?></td>
 <td><?= friendly_date_time($record->created_at) ?></td>
-<td><?= $record->created_by_session_id ?></td>
 <td><?= $record->type ?></td>
+<td><?= $record->address ?></td>
+<td><?= $record->dob ?></td>
+<td><?= $record->email ?></td>
+<td><?= $record->full_eligible_api_response ?></td>
+<td><?= $record->full_lead_form_data ?></td>
+<td><?= $record->is_mcn_valid ?></td>
 <td><?= $record->lead_data ?></td>
+<td><?= $record->mcn ?></td>
+<td><?= $record->name_first ?></td>
+<td><?= $record->name_last ?></td>
 <td><?= $record->phone ?></td>
-<td><?= $record->email ?></td>
-<td><?= $record->address ?></td>
+<td><?= $record->program ?></td>
+<td><?= $record->created_by_session_id ?></td>
+<td><?= $record->client_id ?></td>
                 </tr>
             @endforeach
             </tbody>

+ 2 - 0
resources/views/pro/transactions/index.blade.php

@@ -24,6 +24,7 @@
 <th>Created By Session Id</th>
 <th>Bill Id</th>
 <th>Client Id</th>
+<th>Client Program Month Entry Id</th>
 <th>Pro Id</th>
             </tr>
             </thead>
@@ -42,6 +43,7 @@
 <td><?= $record->created_by_session_id ?></td>
 <td><?= $record->bill_id ?></td>
 <td><?= $record->client_id ?></td>
+<td><?= $record->client_program_month_entry_id ?></td>
 <td><?= $record->pro_id ?></td>
                 </tr>
             @endforeach

+ 1 - 0
routes/generated.php

@@ -381,6 +381,7 @@ Route::prefix('/pros/view/{uid}')->group(function () {
 	Route::get('ACTION_setIsSsnCompleteToTrue', 'pros_SINGLE_Controller@ACTION_setIsSsnCompleteToTrue')->name('pros_SINGLE-ACTION_setIsSsnCompleteToTrue');
 	Route::get('ACTION_setIsSsnCompleteToFalse', 'pros_SINGLE_Controller@ACTION_setIsSsnCompleteToFalse')->name('pros_SINGLE-ACTION_setIsSsnCompleteToFalse');
 	Route::get('ACTION_setProType', 'pros_SINGLE_Controller@ACTION_setProType')->name('pros_SINGLE-ACTION_setProType');
+	Route::get('ACTION_setInitiative', 'pros_SINGLE_Controller@ACTION_setInitiative')->name('pros_SINGLE-ACTION_setInitiative');
 	Route::get('ACTION_putProMemo', 'pros_SINGLE_Controller@ACTION_putProMemo')->name('pros_SINGLE-ACTION_putProMemo');
 	Route::get('SUB_dashboard', 'pros_SINGLE_Controller@SUB_dashboard')->name('pros_SINGLE-SUB_dashboard');
 	Route::get('SUB_pro_rates', 'pros_SINGLE_Controller@SUB_pro_rates')->name('pros_SINGLE-SUB_pro_rates');