ソースを参照

fixed facilities and relationships crud

Josh Kamau 5 年 前
コミット
aed6098005

+ 13 - 0
app/Http/Controllers/my_clients_SINGLE_Controller.php

@@ -404,6 +404,13 @@ class my_clients_SINGLE_Controller extends Controller
 		return response()->view('pro/my_clients_SINGLE/SUB_notes', compact('record', 'subRecords'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
 	}
 
+	// GET /my_clients/view/{uid}/SUB_relationships
+	public function SUB_relationships(Request $request, $uid) {
+		$record = DB::table('client')->where('uid', $uid)->first();
+		$subRecords = DB::table('relationship')->where('client_id', $record->id)->get();
+		return response()->view('pro/my_clients_SINGLE/SUB_relationships', compact('record', 'subRecords'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+
 	// GET /my_clients/view/{uid}/SUB_care_months
 	public function SUB_care_months(Request $request, $uid) {
 		$record = DB::table('client')->where('uid', $uid)->first();
@@ -485,6 +492,12 @@ class my_clients_SINGLE_Controller extends Controller
 		return response()->view('pro/my_clients_SINGLE/ACTION_notesAddNew', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
 	}
 
+	// GET /my_clients/view/{uid}/ACTION_relationshipsAddNew
+	public function ACTION_relationshipsAddNew(Request $request, $uid) {
+		$record = DB::table('client')->where('uid', $uid)->first();
+		return response()->view('pro/my_clients_SINGLE/ACTION_relationshipsAddNew', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+
 	// GET /my_clients/view/{uid}/ACTION_care_monthsAddNew
 	public function ACTION_care_monthsAddNew(Request $request, $uid) {
 		$record = DB::table('client')->where('uid', $uid)->first();

+ 0 - 13
app/Http/Controllers/notes_SINGLE_Controller.php

@@ -29,19 +29,6 @@ class notes_SINGLE_Controller extends Controller
 		return response()->view('pro/notes_SINGLE/SUB_bills', compact('record', 'subRecords'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
 	}
 
-	// GET /notes/view/{uid}/SUB_sections
-	public function SUB_sections(Request $request, $uid) {
-		$record = DB::table('note')->where('uid', $uid)->first();
-		$subRecords = DB::table('section')->where('note_id', $record->id)->get();
-		return response()->view('pro/notes_SINGLE/SUB_sections', compact('record', 'subRecords'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
-	}
-
-	// GET /notes/view/{uid}/SUB_audit_log
-	public function SUB_audit_log(Request $request, $uid) {
-		$record = DB::table('note')->where('uid', $uid)->first();
-		return response()->view('pro/notes_SINGLE/SUB_audit_log', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
-	}
-
 	// GET /notes/view/{uid}/ACTION_billsAddNew
 	public function ACTION_billsAddNew(Request $request, $uid) {
 		$record = DB::table('note')->where('uid', $uid)->first();

+ 23 - 0
app/Http/Controllers/relationships_Controller.php

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

+ 24 - 0
app/Http/Controllers/relationships_SINGLE_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 relationships_SINGLE_Controller extends Controller
+{
+    public $selfName = 'relationships_SINGLE_Controller';
+
+	// GET /relationships/view/{uid}/ACTION_updateBasic
+	public function ACTION_updateBasic(Request $request, $uid) {
+		$record = DB::table('relationship')->where('uid', $uid)->first();
+		return response()->view('pro/relationships_SINGLE/ACTION_updateBasic', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+
+	// GET /relationships/view/{uid}/SUB_dashboard
+	public function SUB_dashboard(Request $request, $uid) {
+		$record = DB::table('relationship')->where('uid', $uid)->first();
+		return response()->view('pro/relationships_SINGLE/SUB_dashboard', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+}

+ 92 - 18
generatecv/tree.txt

@@ -338,6 +338,37 @@ PRO
                     category
                     contentText
                     contentDetail
+            relationships
+                id=relationship.client_id=>/relationships/view/UID
+                !inc:name_first,name_middle,name_last,email_address
+                add_new:relationship=>/relationships/view/UID
+                    clientUid:hidden=uid
+                    relationshipToClient
+	                relationshipMemo
+	                namePrefix
+	                nameFirst
+	                nameMiddle
+	                nameLast
+	                nameSuffix
+	                nameMaiden
+	                namePrevious
+	                organizationName
+	                phoneHome
+	                phoneMobile
+	                phoneWork
+	                phoneMemo
+	                homeAddress
+	                mailingAddress
+	                emailAddress
+	                isHispanic:select:YES,NO,UNKNOWN
+	                isBlackOrAA:select:YES,NO,UNKNOWN
+	                ethnicities
+	                race
+	                specificRaces
+	                preferredLanguage
+	                otherLanguages
+	                englishLevel
+	                contactClientUid:record:client:uid,name_first
             care_months
                 id=care_month.client_id=>/care_months/view/UID
                 add_new:care_month
@@ -407,10 +438,40 @@ PRO
                     serviceLocation
                     modifier
                     numberOfUnits:number
-            sections
-                id=section.note_id
-                !inc:content_data,summary_html
-            audit_log
+    relationships|relationship|view|icon:file-alt
+        !inc:id,name_first,name_last,name_maiden,name_middle,name_prefix,name_previous,name_suffix
+    relationships/view/{uid}
+        ACTIONS
+            updateBasic
+                relationshipToClient
+	            relationshipMemo
+	            namePrefix
+	            nameFirst
+	            nameMiddle
+	            nameLast
+	            nameSuffix
+	            nameMaiden
+	            namePrevious
+	            organizationName
+	            phoneHome
+	            phoneMobile
+	            phoneWork
+	            phoneMemo
+	            homeAddress
+	            mailingAddress
+	            emailAddress
+	            isHispanic:select:YES,NO,UNKNOWN
+	            isBlackOrAA:select:YES,NO,UNKNOWN
+	            ethnicities
+	            race
+	            specificRaces
+	            preferredLanguage
+	            otherLanguages
+	            englishLevel
+	            contactClientUid:record:client:uid,name_first
+        SUB
+            dashboard
+                !grp:Relationship details:id,created_at,is_active,reactivated_at,reactivation_memo,email_address,english_level,ethnicities,home_address,is_black_oraa,is_hispanic,mailing_address,name_first,name_last,name_maiden,name_middle,name_prefix,name_previous,name_suffix,organization_name,other_languages,phone_home,phone_memo,phone_mobile,phone_work,preferred_language,race,relationship_memo,relationship_to_client,specific_races,created_by_session_id,deactivated_by_session_id,reactivated_by_session_id,client_id,contact_client_id_id,contact_client_id
     erx|action_item:action_item_category='RX'|view|icon:file-signature
     erx/view/{uid}
         ACTIONS
@@ -601,24 +662,37 @@ PRO
 
 ADMIN
 #   admin_dashboard
-    facilities|facility|view|icon:temperature-low
+    facilities|facility|add|view|icon:temperature-low
     facilities/add_new:create
+        name
+        addressFull
+        addressLine1
+        addressLine2
+        addressCity
+        addressState
+        addressZip
+        addressCountry
+        addressGeoLat:number
+        addressGeoLong:number
+        phone
+        fax
+        hours:number
     facilities/view/{uid}
         ACTIONS
             updateBasic
-                name=name
-                addressFull=address_full
-                addressLine1=address_line1
-                addressLine2=address_line2
-                addressCity=address_city
-                addressState=address_state
-                addressZip=address_zip
-                addressCountry=address_country
-                addressGeoLat=address_geo_lat
-                addressGeoLong=address_geo_long
-                phone=phone
-                fax=fax
-                hours=hours
+                name
+                addressFull
+                addressLine1
+                addressLine2
+                addressCity
+                addressState
+                addressZip
+                addressCountry
+                addressGeoLat
+                addressGeoLong
+                phone
+                fax
+                hours
             deactivate
                 memo
             updateDeactivationMemo

+ 88 - 0
resources/views/admin/facilities/add_new.blade.php

@@ -0,0 +1,88 @@
+@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>Facilities: Add New</div>
+        <div class="ml-auto">
+            <a class="text-secondary" href="{{route('facilities-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="true"
+          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/facility/create">
+        <input type="hidden" name="_success" value="{{route('facilities-index')}}">
+        <input type="hidden" name="_return" value="{{route('facilities-add_new')}}">
+        <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') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Full </label>
+<input class='form-control' type='text' name='addressFull' value='{{ old('addressFull') ? old('addressFull') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Line 1 </label>
+<input class='form-control' type='text' name='addressLine1' value='{{ old('addressLine1') ? old('addressLine1') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Line 2 </label>
+<input class='form-control' type='text' name='addressLine2' value='{{ old('addressLine2') ? old('addressLine2') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address City </label>
+<input class='form-control' type='text' name='addressCity' value='{{ old('addressCity') ? old('addressCity') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address State </label>
+<input class='form-control' type='text' name='addressState' value='{{ old('addressState') ? old('addressState') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Zip </label>
+<input class='form-control' type='text' name='addressZip' value='{{ old('addressZip') ? old('addressZip') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Country </label>
+<input class='form-control' type='text' name='addressCountry' value='{{ old('addressCountry') ? old('addressCountry') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Geo Lat </label>
+<input class='form-control' type='number' name='addressGeoLat' value='{{ old('addressGeoLat') ? old('addressGeoLat') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Address Geo Long </label>
+<input class='form-control' type='number' name='addressGeoLong' value='{{ old('addressGeoLong') ? old('addressGeoLong') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Phone </label>
+<input class='form-control' type='text' name='phone' value='{{ old('phone') ? old('phone') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Fax </label>
+<input class='form-control' type='text' name='fax' value='{{ old('fax') ? old('fax') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Hours </label>
+<input class='form-control' type='number' name='hours' value='{{ old('hours') ? old('hours') : '' }}' >
+</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('facilities-index')}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 1 - 1
resources/views/admin/facilities/index.blade.php

@@ -4,7 +4,7 @@
     <h3 class="d-flex my-3 px-3 stag-heading stag-heading-index">
         <div>Facilities: List</div>
         <div class="ml-auto">
-            <!-- _ADD_NEW_LINK_ -->
+            <a class='btn btn-primary btn-sm ml-2' up-modal=".form-contents" up-width="800" up-history="false" href='/facilities/add_new'><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
         </div>
     </h3>
 

+ 13 - 13
resources/views/admin/facilities_SINGLE/ACTION_updateBasic.blade.php

@@ -28,55 +28,55 @@
         <input type="hidden" name="_return" value="{{route('facilities_SINGLE-ACTION_updateBasic', ['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->name }}' >
+<input class='form-control' type='text' name='name' value='{{ old('name') ? old('name') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Address Full </label>
-<input class='form-control' type='text' name='addressFull' value='{{ old('addressFull') ? old('addressFull') : $record->address_full }}' >
+<input class='form-control' type='text' name='addressFull' value='{{ old('addressFull') ? old('addressFull') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Address Line 1 </label>
-<input class='form-control' type='text' name='addressLine1' value='{{ old('addressLine1') ? old('addressLine1') : $record->address_line1 }}' >
+<input class='form-control' type='text' name='addressLine1' value='{{ old('addressLine1') ? old('addressLine1') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Address Line 2 </label>
-<input class='form-control' type='text' name='addressLine2' value='{{ old('addressLine2') ? old('addressLine2') : $record->address_line2 }}' >
+<input class='form-control' type='text' name='addressLine2' value='{{ old('addressLine2') ? old('addressLine2') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Address City </label>
-<input class='form-control' type='text' name='addressCity' value='{{ old('addressCity') ? old('addressCity') : $record->address_city }}' >
+<input class='form-control' type='text' name='addressCity' value='{{ old('addressCity') ? old('addressCity') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Address State </label>
-<input class='form-control' type='text' name='addressState' value='{{ old('addressState') ? old('addressState') : $record->address_state }}' >
+<input class='form-control' type='text' name='addressState' value='{{ old('addressState') ? old('addressState') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Address Zip </label>
-<input class='form-control' type='text' name='addressZip' value='{{ old('addressZip') ? old('addressZip') : $record->address_zip }}' >
+<input class='form-control' type='text' name='addressZip' value='{{ old('addressZip') ? old('addressZip') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Address Country </label>
-<input class='form-control' type='text' name='addressCountry' value='{{ old('addressCountry') ? old('addressCountry') : $record->address_country }}' >
+<input class='form-control' type='text' name='addressCountry' value='{{ old('addressCountry') ? old('addressCountry') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Address Geo Lat </label>
-<input class='form-control' type='text' name='addressGeoLat' value='{{ old('addressGeoLat') ? old('addressGeoLat') : $record->address_geo_lat }}' >
+<input class='form-control' type='text' name='addressGeoLat' value='{{ old('addressGeoLat') ? old('addressGeoLat') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Address Geo Long </label>
-<input class='form-control' type='text' name='addressGeoLong' value='{{ old('addressGeoLong') ? old('addressGeoLong') : $record->address_geo_long }}' >
+<input class='form-control' type='text' name='addressGeoLong' value='{{ old('addressGeoLong') ? old('addressGeoLong') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Phone </label>
-<input class='form-control' type='text' name='phone' value='{{ old('phone') ? old('phone') : $record->phone }}' >
+<input class='form-control' type='text' name='phone' value='{{ old('phone') ? old('phone') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Fax </label>
-<input class='form-control' type='text' name='fax' value='{{ old('fax') ? old('fax') : $record->fax }}' >
+<input class='form-control' type='text' name='fax' value='{{ old('fax') ? old('fax') : '' }}' >
 </div>
 <div class='form-group mb-3'>
 <label class='control-label'>Hours </label>
-<input class='form-control' type='text' name='hours' value='{{ old('hours') ? old('hours') : $record->hours }}' >
+<input class='form-control' type='text' name='hours' value='{{ old('hours') ? old('hours') : '' }}' >
 </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>

+ 1 - 0
resources/views/layouts/generated-links.blade.php

@@ -1,6 +1,7 @@
 <li class='nav-item'><a href='/my_payment_schedule' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'my_payment_schedule') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-dollar-sign'></i><p>My Payment Schedule</p></a></li>
 <li class='nav-item'><a href='/my_clients' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'my_clients') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-user-injured'></i><p>My Clients</p></a></li>
 <li class='nav-item'><a href='/notes' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'notes') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-file-alt'></i><p>Notes</p></a></li>
+<li class='nav-item'><a href='/relationships' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'relationships') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-file-alt'></i><p>Relationships</p></a></li>
 <li class='nav-item'><a href='/erx' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'erx') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-file-signature'></i><p>Erx</p></a></li>
 <li class='nav-item'><a href='/action_items' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'action_items') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-tasks'></i><p>Action Items</p></a></li>
 <li class='nav-item'><a href='/care_months' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'care_months') === 0 ? 'active' : '') }} '><i class='nav-icon fa fa-calendar-plus'></i><p>Care Months</p></a></li>

+ 1 - 0
resources/views/pro/my_clients/subs.blade.php

@@ -3,6 +3,7 @@
 <a href='/my_clients/view/<?= $record->uid ?>/SUB_med_profile_log' class='d-block px-3 py-2 border-bottom stag-sublink {{ request()->route()->getActionMethod() === 'SUB_med_profile_log' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Med Profile Log</a>
 <a href='/my_clients/view/<?= $record->uid ?>/SUB_pro_access' class='d-block px-3 py-2 border-bottom stag-sublink {{ request()->route()->getActionMethod() === 'SUB_pro_access' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Pro Access</a>
 <a href='/my_clients/view/<?= $record->uid ?>/SUB_notes' class='d-block px-3 py-2 border-bottom stag-sublink {{ request()->route()->getActionMethod() === 'SUB_notes' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Notes</a>
+<a href='/my_clients/view/<?= $record->uid ?>/SUB_relationships' class='d-block px-3 py-2 border-bottom stag-sublink {{ request()->route()->getActionMethod() === 'SUB_relationships' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Relationships</a>
 <a href='/my_clients/view/<?= $record->uid ?>/SUB_care_months' class='d-block px-3 py-2 border-bottom stag-sublink {{ request()->route()->getActionMethod() === 'SUB_care_months' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Care Months</a>
 <a href='/my_clients/view/<?= $record->uid ?>/SUB_care_month_entries' class='d-block px-3 py-2 border-bottom stag-sublink {{ request()->route()->getActionMethod() === 'SUB_care_month_entries' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Care Month Entries</a>
 <a href='/my_clients/view/<?= $record->uid ?>/SUB_bills' class='d-block px-3 py-2 border-bottom stag-sublink {{ request()->route()->getActionMethod() === 'SUB_bills' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Bills</a>

+ 158 - 0
resources/views/pro/my_clients_SINGLE/ACTION_relationshipsAddNew.blade.php

@@ -0,0 +1,158 @@
+@extends('pro.my_clients.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>Relationships Add New</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="true"
+          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/relationship/create">
+        <input type="hidden" name="_success" value="{{route('my_clients_SINGLE-SUB_relationships', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('my_clients_SINGLE-ACTION_relationshipsAddNew', ['uid' => $record->uid])}}">
+        <input class='form-control' type='hidden' name='clientUid' value='{{ old('clientUid') ? old('clientUid') : $record->uid }}' >
+<div class='form-group mb-3'>
+<label class='control-label'>Relationship To Client </label>
+<input class='form-control' type='text' name='relationshipToClient' value='{{ old('relationshipToClient') ? old('relationshipToClient') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Relationship Memo </label>
+<input class='form-control' type='text' name='relationshipMemo' value='{{ old('relationshipMemo') ? old('relationshipMemo') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name Prefix </label>
+<input class='form-control' type='text' name='namePrefix' value='{{ old('namePrefix') ? old('namePrefix') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name First </label>
+<input class='form-control' type='text' name='nameFirst' value='{{ old('nameFirst') ? old('nameFirst') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name Middle </label>
+<input class='form-control' type='text' name='nameMiddle' value='{{ old('nameMiddle') ? old('nameMiddle') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name Last </label>
+<input class='form-control' type='text' name='nameLast' value='{{ old('nameLast') ? old('nameLast') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name Suffix </label>
+<input class='form-control' type='text' name='nameSuffix' value='{{ old('nameSuffix') ? old('nameSuffix') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name Maiden </label>
+<input class='form-control' type='text' name='nameMaiden' value='{{ old('nameMaiden') ? old('nameMaiden') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name Previous </label>
+<input class='form-control' type='text' name='namePrevious' value='{{ old('namePrevious') ? old('namePrevious') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Organization Name </label>
+<input class='form-control' type='text' name='organizationName' value='{{ old('organizationName') ? old('organizationName') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Phone Home </label>
+<input class='form-control' type='text' name='phoneHome' value='{{ old('phoneHome') ? old('phoneHome') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Phone Mobile </label>
+<input class='form-control' type='text' name='phoneMobile' value='{{ old('phoneMobile') ? old('phoneMobile') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Phone Work </label>
+<input class='form-control' type='text' name='phoneWork' value='{{ old('phoneWork') ? old('phoneWork') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Phone Memo </label>
+<input class='form-control' type='text' name='phoneMemo' value='{{ old('phoneMemo') ? old('phoneMemo') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Home Address </label>
+<input class='form-control' type='text' name='homeAddress' value='{{ old('homeAddress') ? old('homeAddress') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Mailing Address </label>
+<input class='form-control' type='text' name='mailingAddress' value='{{ old('mailingAddress') ? old('mailingAddress') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Email Address </label>
+<input class='form-control' type='text' name='emailAddress' value='{{ old('emailAddress') ? old('emailAddress') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Is Hispanic </label>
+<select class='form-control' name='isHispanic' value='{{ old('isHispanic') ? old('isHispanic') : '' }}' >
+<option value=''>-- Select --</option>
+<option <?= 'YES' === (old('isHispanic') ? old('isHispanic') : '') ? 'selected' : '' ?> value='YES'>YES</option>
+<option <?= 'NO' === (old('isHispanic') ? old('isHispanic') : '') ? 'selected' : '' ?> value='NO'>NO</option>
+<option <?= 'UNKNOWN' === (old('isHispanic') ? old('isHispanic') : '') ? 'selected' : '' ?> value='UNKNOWN'>UNKNOWN</option>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Is Black Or AA </label>
+<select class='form-control' name='isBlackOrAA' value='{{ old('isBlackOrAA') ? old('isBlackOrAA') : '' }}' >
+<option value=''>-- Select --</option>
+<option <?= 'YES' === (old('isBlackOrAA') ? old('isBlackOrAA') : '') ? 'selected' : '' ?> value='YES'>YES</option>
+<option <?= 'NO' === (old('isBlackOrAA') ? old('isBlackOrAA') : '') ? 'selected' : '' ?> value='NO'>NO</option>
+<option <?= 'UNKNOWN' === (old('isBlackOrAA') ? old('isBlackOrAA') : '') ? 'selected' : '' ?> value='UNKNOWN'>UNKNOWN</option>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Ethnicities </label>
+<input class='form-control' type='text' name='ethnicities' value='{{ old('ethnicities') ? old('ethnicities') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Race </label>
+<input class='form-control' type='text' name='race' value='{{ old('race') ? old('race') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Specific Races </label>
+<input class='form-control' type='text' name='specificRaces' value='{{ old('specificRaces') ? old('specificRaces') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Preferred Language </label>
+<input class='form-control' type='text' name='preferredLanguage' value='{{ old('preferredLanguage') ? old('preferredLanguage') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Other Languages </label>
+<input class='form-control' type='text' name='otherLanguages' value='{{ old('otherLanguages') ? old('otherLanguages') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>English Level </label>
+<input class='form-control' type='text' name='englishLevel' value='{{ old('englishLevel') ? old('englishLevel') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Contact Client </label>
+<select class='form-control' name='contactClientUid' value='{{ old('contactClientUid') ? old('contactClientUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('client')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('contactClientUid') ? old('contactClientUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_first ?> (<?= $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('my_clients_SINGLE-SUB_relationships', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 40 - 0
resources/views/pro/my_clients_SINGLE/SUB_relationships.blade.php

@@ -0,0 +1,40 @@
+@extends('pro.my_clients.view')
+@section('content-inner')
+
+    <div class="pb-3">
+
+        <h5 class='my-3 d-flex stag-heading stag-heading-sub'>
+            <div>Relationships</div>
+            <div class="ml-auto">
+                <a class="btn btn-primary btn-sm" up-modal=".form-contents" up-width="800" up-history="false" href="{{route('my_clients_SINGLE-ACTION_relationshipsAddNew', ['uid' => $record->uid])}}"><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>Name First</th>
+<th>Name Middle</th>
+<th>Name Last</th>
+<th>Email Address</th>
+                </tr>
+                </thead>
+                <tbody>
+                @foreach($subRecords as $subRecord)
+                    <tr>
+                        <td><a href="/relationships/view/{{ $subRecord->uid }}"><i class="fas fa-share-square"></i></a></td>
+<td><?= $subRecord->name_first ?></td>
+<td><?= $subRecord->name_middle ?></td>
+<td><?= $subRecord->name_last ?></td>
+<td><?= $subRecord->email_address ?></td>
+                    </tr>
+                @endforeach
+                </tbody>
+            </table>
+        </div>
+
+    </div>
+
+@endsection

+ 1 - 3
resources/views/pro/notes/subs.blade.php

@@ -1,4 +1,2 @@
 <a href='/notes/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>
-<a href='/notes/view/<?= $record->uid ?>/SUB_bills' class='d-block px-3 py-2 border-bottom stag-sublink {{ request()->route()->getActionMethod() === 'SUB_bills' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Bills</a>
-<a href='/notes/view/<?= $record->uid ?>/SUB_sections' class='d-block px-3 py-2 border-bottom stag-sublink {{ request()->route()->getActionMethod() === 'SUB_sections' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Sections</a>
-<a href='/notes/view/<?= $record->uid ?>/SUB_audit_log' class='d-block px-3 py-2 border-bottom stag-sublink {{ request()->route()->getActionMethod() === 'SUB_audit_log' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Audit Log</a>
+<a href='/notes/view/<?= $record->uid ?>/SUB_bills' class='d-block px-3 py-2 border-bottom stag-sublink {{ request()->route()->getActionMethod() === 'SUB_bills' ? 'bg-secondary text-white font-weight-bold' : '' }}'>Bills</a>

+ 1 - 0
resources/views/pro/relationships/actions.blade.php

@@ -0,0 +1 @@
+<a up-modal=".form-contents" up-width="800" up-history="false" href='/relationships/view/<?= $record->uid ?>/ACTION_updateBasic' class='d-block btn btn-sm btn-default mb-3'>Update Basic</a>

+ 42 - 0
resources/views/pro/relationships/index.blade.php

@@ -0,0 +1,42 @@
+@extends('layouts.pro-logged-in')
+@section('content')
+
+    <h3 class="d-flex my-3 px-3 stag-heading stag-heading-index">
+        <div>Relationships: 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>Name First</th>
+<th>Name Last</th>
+<th>Name Maiden</th>
+<th>Name Middle</th>
+<th>Name Prefix</th>
+<th>Name Previous</th>
+<th>Name Suffix</th>
+            </tr>
+            </thead>
+            <tbody>
+            @foreach($records as $record)
+                <tr>
+<td><a href="/relationships/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
+<td><?= $record->name_first ?></td>
+<td><?= $record->name_last ?></td>
+<td><?= $record->name_maiden ?></td>
+<td><?= $record->name_middle ?></td>
+<td><?= $record->name_prefix ?></td>
+<td><?= $record->name_previous ?></td>
+<td><?= $record->name_suffix ?></td>
+                </tr>
+            @endforeach
+            </tbody>
+        </table>
+    </div>
+
+@endsection

+ 3 - 0
resources/views/pro/relationships/info.blade.php

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

+ 1 - 0
resources/views/pro/relationships/subs.blade.php

@@ -0,0 +1 @@
+<a href='/relationships/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/pro/relationships/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('pro/relationships/info')</div>
+        <div class="d-flex align-items-stretch">
+            <div class="inner-side-nav">
+                <div class="border-right h-100">
+                    @include('pro/relationships/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

+ 157 - 0
resources/views/pro/relationships_SINGLE/ACTION_updateBasic.blade.php

@@ -0,0 +1,157 @@
+@extends('pro.relationships.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 Basic</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="true"
+          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/relationship/updateBasic">
+        <input type="hidden" name="_success" value="{{route('relationships-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('relationships_SINGLE-ACTION_updateBasic', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Relationship To Client </label>
+<input class='form-control' type='text' name='relationshipToClient' value='{{ old('relationshipToClient') ? old('relationshipToClient') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Relationship Memo </label>
+<input class='form-control' type='text' name='relationshipMemo' value='{{ old('relationshipMemo') ? old('relationshipMemo') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name Prefix </label>
+<input class='form-control' type='text' name='namePrefix' value='{{ old('namePrefix') ? old('namePrefix') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name First </label>
+<input class='form-control' type='text' name='nameFirst' value='{{ old('nameFirst') ? old('nameFirst') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name Middle </label>
+<input class='form-control' type='text' name='nameMiddle' value='{{ old('nameMiddle') ? old('nameMiddle') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name Last </label>
+<input class='form-control' type='text' name='nameLast' value='{{ old('nameLast') ? old('nameLast') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name Suffix </label>
+<input class='form-control' type='text' name='nameSuffix' value='{{ old('nameSuffix') ? old('nameSuffix') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name Maiden </label>
+<input class='form-control' type='text' name='nameMaiden' value='{{ old('nameMaiden') ? old('nameMaiden') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Name Previous </label>
+<input class='form-control' type='text' name='namePrevious' value='{{ old('namePrevious') ? old('namePrevious') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Organization Name </label>
+<input class='form-control' type='text' name='organizationName' value='{{ old('organizationName') ? old('organizationName') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Phone Home </label>
+<input class='form-control' type='text' name='phoneHome' value='{{ old('phoneHome') ? old('phoneHome') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Phone Mobile </label>
+<input class='form-control' type='text' name='phoneMobile' value='{{ old('phoneMobile') ? old('phoneMobile') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Phone Work </label>
+<input class='form-control' type='text' name='phoneWork' value='{{ old('phoneWork') ? old('phoneWork') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Phone Memo </label>
+<input class='form-control' type='text' name='phoneMemo' value='{{ old('phoneMemo') ? old('phoneMemo') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Home Address </label>
+<input class='form-control' type='text' name='homeAddress' value='{{ old('homeAddress') ? old('homeAddress') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Mailing Address </label>
+<input class='form-control' type='text' name='mailingAddress' value='{{ old('mailingAddress') ? old('mailingAddress') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Email Address </label>
+<input class='form-control' type='text' name='emailAddress' value='{{ old('emailAddress') ? old('emailAddress') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Is Hispanic </label>
+<select class='form-control' name='isHispanic' value='{{ old('isHispanic') ? old('isHispanic') : '' }}' >
+<option value=''>-- Select --</option>
+<option <?= 'YES' === (old('isHispanic') ? old('isHispanic') : '') ? 'selected' : '' ?> value='YES'>YES</option>
+<option <?= 'NO' === (old('isHispanic') ? old('isHispanic') : '') ? 'selected' : '' ?> value='NO'>NO</option>
+<option <?= 'UNKNOWN' === (old('isHispanic') ? old('isHispanic') : '') ? 'selected' : '' ?> value='UNKNOWN'>UNKNOWN</option>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Is Black Or AA </label>
+<select class='form-control' name='isBlackOrAA' value='{{ old('isBlackOrAA') ? old('isBlackOrAA') : '' }}' >
+<option value=''>-- Select --</option>
+<option <?= 'YES' === (old('isBlackOrAA') ? old('isBlackOrAA') : '') ? 'selected' : '' ?> value='YES'>YES</option>
+<option <?= 'NO' === (old('isBlackOrAA') ? old('isBlackOrAA') : '') ? 'selected' : '' ?> value='NO'>NO</option>
+<option <?= 'UNKNOWN' === (old('isBlackOrAA') ? old('isBlackOrAA') : '') ? 'selected' : '' ?> value='UNKNOWN'>UNKNOWN</option>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Ethnicities </label>
+<input class='form-control' type='text' name='ethnicities' value='{{ old('ethnicities') ? old('ethnicities') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Race </label>
+<input class='form-control' type='text' name='race' value='{{ old('race') ? old('race') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Specific Races </label>
+<input class='form-control' type='text' name='specificRaces' value='{{ old('specificRaces') ? old('specificRaces') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Preferred Language </label>
+<input class='form-control' type='text' name='preferredLanguage' value='{{ old('preferredLanguage') ? old('preferredLanguage') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Other Languages </label>
+<input class='form-control' type='text' name='otherLanguages' value='{{ old('otherLanguages') ? old('otherLanguages') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>English Level </label>
+<input class='form-control' type='text' name='englishLevel' value='{{ old('englishLevel') ? old('englishLevel') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Contact Client </label>
+<select class='form-control' name='contactClientUid' value='{{ old('contactClientUid') ? old('contactClientUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('client')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('contactClientUid') ? old('contactClientUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_first ?> (<?= $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('relationships-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 66 - 0
resources/views/pro/relationships_SINGLE/SUB_dashboard.blade.php

@@ -0,0 +1,66 @@
+@extends('pro.relationships.view')
+@section('content-inner')
+
+    <div class="row mt-3">
+    <div class="col-8">
+
+        <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">Relationship details
+                <span class="ml-auto"><!-- __GROUP_ACTION__ --></span>
+            </th>
+        </tr>
+        </thead>
+        <tbody>
+            <tr><td class="w-25 px-2 text-secondary border-right">Created At</td><td class="w-75 px-2 font-weight-bold"><?= friendly_date_time($record->created_at) ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Is Active</td><td class="w-75 px-2 font-weight-bold"><?= $record->is_active ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Reactivated At</td><td class="w-75 px-2 font-weight-bold"><?= friendly_date_time($record->reactivated_at) ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Reactivation Memo</td><td class="w-75 px-2 font-weight-bold"><?= $record->reactivation_memo ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Email Address</td><td class="w-75 px-2 font-weight-bold"><?= $record->email_address ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">English Level</td><td class="w-75 px-2 font-weight-bold"><?= $record->english_level ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Ethnicities</td><td class="w-75 px-2 font-weight-bold"><?= $record->ethnicities ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Home Address</td><td class="w-75 px-2 font-weight-bold"><?= $record->home_address ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Is Black Oraa</td><td class="w-75 px-2 font-weight-bold"><?= $record->is_black_oraa ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Is Hispanic</td><td class="w-75 px-2 font-weight-bold"><?= $record->is_hispanic ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Mailing Address</td><td class="w-75 px-2 font-weight-bold"><?= $record->mailing_address ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Name First</td><td class="w-75 px-2 font-weight-bold"><?= $record->name_first ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Name Last</td><td class="w-75 px-2 font-weight-bold"><?= $record->name_last ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Name Maiden</td><td class="w-75 px-2 font-weight-bold"><?= $record->name_maiden ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Name Middle</td><td class="w-75 px-2 font-weight-bold"><?= $record->name_middle ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Name Prefix</td><td class="w-75 px-2 font-weight-bold"><?= $record->name_prefix ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Name Previous</td><td class="w-75 px-2 font-weight-bold"><?= $record->name_previous ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Name Suffix</td><td class="w-75 px-2 font-weight-bold"><?= $record->name_suffix ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Organization Name</td><td class="w-75 px-2 font-weight-bold"><?= $record->organization_name ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Other Languages</td><td class="w-75 px-2 font-weight-bold"><?= $record->other_languages ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Phone Home</td><td class="w-75 px-2 font-weight-bold"><?= $record->phone_home ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Phone Memo</td><td class="w-75 px-2 font-weight-bold"><?= $record->phone_memo ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Phone Mobile</td><td class="w-75 px-2 font-weight-bold"><?= $record->phone_mobile ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Phone Work</td><td class="w-75 px-2 font-weight-bold"><?= $record->phone_work ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Preferred Language</td><td class="w-75 px-2 font-weight-bold"><?= $record->preferred_language ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Race</td><td class="w-75 px-2 font-weight-bold"><?= $record->race ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Relationship Memo</td><td class="w-75 px-2 font-weight-bold"><?= $record->relationship_memo ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Relationship To Client</td><td class="w-75 px-2 font-weight-bold"><?= $record->relationship_to_client ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Specific Races</td><td class="w-75 px-2 font-weight-bold"><?= $record->specific_races ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Created By Session Id</td><td class="w-75 px-2 font-weight-bold"><?= $record->created_by_session_id ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Deactivated By Session Id</td><td class="w-75 px-2 font-weight-bold"><?= $record->deactivated_by_session_id ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Reactivated By Session Id</td><td class="w-75 px-2 font-weight-bold"><?= $record->reactivated_by_session_id ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Client Id</td><td class="w-75 px-2 font-weight-bold"><?= $record->client_id ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Contact Client Id Id</td><td class="w-75 px-2 font-weight-bold"><?= $record->contact_client_id_id ?></td></tr>
+<tr><td class="w-25 px-2 text-secondary border-right">Contact Client Id</td><td class="w-75 px-2 font-weight-bold"><?= $record->contact_client_id ?></td></tr>
+        </tbody>
+    </table>
+</div>
+
+
+    </div>
+    <div class="col-4">
+        <div class="border-left h-100 pl-3">
+            @include('pro/relationships/actions')
+        </div>
+    </div>
+</div>
+
+
+@endsection

+ 10 - 2
routes/generated.php

@@ -76,6 +76,7 @@ Route::get('/my_clients/view/{uid}/SUB_med_profile', 'my_clients_SINGLE_Controll
 Route::get('/my_clients/view/{uid}/SUB_med_profile_log', 'my_clients_SINGLE_Controller@SUB_med_profile_log')->name('my_clients_SINGLE-SUB_med_profile_log');
 Route::get('/my_clients/view/{uid}/SUB_pro_access', 'my_clients_SINGLE_Controller@SUB_pro_access')->name('my_clients_SINGLE-SUB_pro_access');
 Route::get('/my_clients/view/{uid}/SUB_notes', 'my_clients_SINGLE_Controller@SUB_notes')->name('my_clients_SINGLE-SUB_notes');
+Route::get('/my_clients/view/{uid}/SUB_relationships', 'my_clients_SINGLE_Controller@SUB_relationships')->name('my_clients_SINGLE-SUB_relationships');
 Route::get('/my_clients/view/{uid}/SUB_care_months', 'my_clients_SINGLE_Controller@SUB_care_months')->name('my_clients_SINGLE-SUB_care_months');
 Route::get('/my_clients/view/{uid}/SUB_care_month_entries', 'my_clients_SINGLE_Controller@SUB_care_month_entries')->name('my_clients_SINGLE-SUB_care_month_entries');
 Route::get('/my_clients/view/{uid}/SUB_bills', 'my_clients_SINGLE_Controller@SUB_bills')->name('my_clients_SINGLE-SUB_bills');
@@ -88,6 +89,7 @@ Route::get('/my_clients/view/{uid}/SUB_audit_log', 'my_clients_SINGLE_Controller
 Route::get('/my_clients/view/{uid}/ACTION_med_profileAddNew', 'my_clients_SINGLE_Controller@ACTION_med_profileAddNew')->name('my_clients_SINGLE-ACTION_med_profileAddNew');
 Route::get('/my_clients/view/{uid}/ACTION_pro_accessAddNew', 'my_clients_SINGLE_Controller@ACTION_pro_accessAddNew')->name('my_clients_SINGLE-ACTION_pro_accessAddNew');
 Route::get('/my_clients/view/{uid}/ACTION_notesAddNew', 'my_clients_SINGLE_Controller@ACTION_notesAddNew')->name('my_clients_SINGLE-ACTION_notesAddNew');
+Route::get('/my_clients/view/{uid}/ACTION_relationshipsAddNew', 'my_clients_SINGLE_Controller@ACTION_relationshipsAddNew')->name('my_clients_SINGLE-ACTION_relationshipsAddNew');
 Route::get('/my_clients/view/{uid}/ACTION_care_monthsAddNew', 'my_clients_SINGLE_Controller@ACTION_care_monthsAddNew')->name('my_clients_SINGLE-ACTION_care_monthsAddNew');
 Route::get('/my_clients/view/{uid}/ACTION_action_itemsAddNew', 'my_clients_SINGLE_Controller@ACTION_action_itemsAddNew')->name('my_clients_SINGLE-ACTION_action_itemsAddNew');
 Route::get('/my_clients/view/{uid}/ACTION_erxAddNew', 'my_clients_SINGLE_Controller@ACTION_erxAddNew')->name('my_clients_SINGLE-ACTION_erxAddNew');
@@ -100,10 +102,16 @@ Route::get('/notes/view/{uid}', 'notes_Controller@view')->name('notes-view');
 Route::get('/notes/view/{uid}/ACTION_signAsHcp', 'notes_SINGLE_Controller@ACTION_signAsHcp')->name('notes_SINGLE-ACTION_signAsHcp');
 Route::get('/notes/view/{uid}/SUB_dashboard', 'notes_SINGLE_Controller@SUB_dashboard')->name('notes_SINGLE-SUB_dashboard');
 Route::get('/notes/view/{uid}/SUB_bills', 'notes_SINGLE_Controller@SUB_bills')->name('notes_SINGLE-SUB_bills');
-Route::get('/notes/view/{uid}/SUB_sections', 'notes_SINGLE_Controller@SUB_sections')->name('notes_SINGLE-SUB_sections');
-Route::get('/notes/view/{uid}/SUB_audit_log', 'notes_SINGLE_Controller@SUB_audit_log')->name('notes_SINGLE-SUB_audit_log');
 Route::get('/notes/view/{uid}/ACTION_billsAddNew', 'notes_SINGLE_Controller@ACTION_billsAddNew')->name('notes_SINGLE-ACTION_billsAddNew');
 
+// --- pro: relationships --- //
+Route::get('/relationships', 'relationships_Controller@index')->name('relationships-index');
+Route::get('/relationships/view/{uid}', 'relationships_Controller@view')->name('relationships-view');
+
+// --- pro: relationships_SINGLE --- //
+Route::get('/relationships/view/{uid}/ACTION_updateBasic', 'relationships_SINGLE_Controller@ACTION_updateBasic')->name('relationships_SINGLE-ACTION_updateBasic');
+Route::get('/relationships/view/{uid}/SUB_dashboard', 'relationships_SINGLE_Controller@SUB_dashboard')->name('relationships_SINGLE-SUB_dashboard');
+
 // --- pro: erx --- //
 Route::get('/erx', 'erx_Controller@index')->name('erx-index');
 Route::get('/erx/view/{uid}', 'erx_Controller@view')->name('erx-view');