소스 검색

added invitation to the tree

Josh 4 년 전
부모
커밋
8cf745cb72

+ 30 - 0
app/Http/Controllers/invitations_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 invitations_Controller extends Controller
+{
+    public $selfName = 'invitations_Controller';
+    public $dashboardName = 'dashboard';
+
+	// GET /invitations
+	public function index(Request $request) {
+		$records = DB::table('invitation')->get();
+		return response()->view('admin/invitations/index', compact('records'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+
+	// GET /invitations/add_new
+	public function add_new(Request $request) {
+		$records = DB::table('invitation')->get();
+		return response()->view('admin/invitations/add_new', compact('records'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
+	}
+
+	// GET /invitations/view/{uid}
+	public function view(Request $request, $uid) {
+		return redirect("/invitations/view/$uid/SUB_dashboard");
+	}
+}

+ 73 - 0
app/Http/Controllers/invitations_SINGLE_Controller.php

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

+ 29 - 0
generatecv/tree.txt

@@ -1135,3 +1135,32 @@ ADMIN
                 add_new:note_template_section_template:create
                     noteTemplateUID:hidden=uid
                     sectionTemplateUID:record:section_template:uid,title
+    invitations|invitation|add|view|icon:user-md
+        !inc:@id,pro_id,first_name,last_name,dob,mcn,email,cell_number,memo,invitation_key,last_email_sent_at,last_sms_sent_at,has_invitation_been_viewed,guest_first_name,guest_last_name,guest_dob,guest_mcn,is_client_already_in_system,client_id,created_at,is_active
+    invitations/add_new:create
+        title
+        proUid:record:pro:uid,name_display
+		firstName
+		lastName
+		dob:date
+		mcn
+		email:email
+		cellNumber
+		memo
+    invitations/view/{uid}
+        ACTIONS
+            deactivate
+                deactivation_memo=deactivation_memo
+            reactivate
+                reactivation_memo=reactivation_memo
+            sendEmail 
+                email 
+            sendSms
+                cellNumber
+            putMedicareInfoAsGuest
+                firstName
+                lastName
+                dob
+                mcn
+        SUB
+            dashboard

+ 5 - 0
resources/views/admin/invitations/actions.blade.php

@@ -0,0 +1,5 @@
+<a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/invitations/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='/invitations/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='/invitations/view/<?= $record->uid ?>/ACTION_sendEmail?optimised=1' class='d-block btn btn-sm btn-default mb-3'>Send Email</a>
+<a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/invitations/view/<?= $record->uid ?>/ACTION_sendSms?optimised=1' class='d-block btn btn-sm btn-default mb-3'>Send Sms</a>
+<a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/invitations/view/<?= $record->uid ?>/ACTION_putMedicareInfoAsGuest?optimised=1' class='d-block btn btn-sm btn-default mb-3'>Put Medicare Info As Guest</a>

+ 78 - 0
resources/views/admin/invitations/add_new.blade.php

@@ -0,0 +1,78 @@
+@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>Invitations: Add New</div>
+        <div class="ml-auto">
+            <a class="text-secondary" href="{{route('invitations-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/invitation/create">
+        <input type="hidden" name="_success" value="{{route('invitations-index')}}">
+        <input type="hidden" name="_return" value="{{route('invitations-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') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Pro </label>
+<select class='form-control' name='proUid' value='{{ old('proUid') ? old('proUid') : '' }}' >
+<option value=''>-- Select --</option>
+<?php $dbOptions = \Illuminate\Support\Facades\DB::table('pro')->get(); ?>
+<?php foreach($dbOptions as $o): ?>
+<option <?= $o->uid === (old('proUid') ? old('proUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_display ?> (<?= $o->uid ?>)</option>
+<?php endforeach; ?>
+</select>
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>First Name </label>
+<input class='form-control' type='text' name='firstName' value='{{ old('firstName') ? old('firstName') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Last Name </label>
+<input class='form-control' type='text' name='lastName' value='{{ old('lastName') ? old('lastName') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Dob </label>
+<input class='form-control' type='date' name='dob' value='{{ old('dob') ? old('dob') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Mcn </label>
+<input class='form-control' type='text' name='mcn' value='{{ old('mcn') ? old('mcn') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Email </label>
+<input class='form-control' type='email' name='email' value='{{ old('email') ? old('email') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Cell Number </label>
+<input class='form-control' type='text' name='cellNumber' value='{{ old('cellNumber') ? old('cellNumber') : '' }}' >
+</div>
+<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('invitations-index')}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 68 - 0
resources/views/admin/invitations/index.blade.php

@@ -0,0 +1,68 @@
+@extends('layouts.pro-logged-in')
+@section('content')
+
+    <h3 class="d-flex my-3 px-3 stag-heading stag-heading-index">
+        <div>Invitations: 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='/invitations/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>Pro Id</th>
+<th>First Name</th>
+<th>Last Name</th>
+<th>Dob</th>
+<th>Mcn</th>
+<th>Email</th>
+<th>Cell Number</th>
+<th>Memo</th>
+<th>Invitation Key</th>
+<th>Last Email Sent At</th>
+<th>Last Sms Sent At</th>
+<th>Has Invitation Been Viewed</th>
+<th>Guest First Name</th>
+<th>Guest Last Name</th>
+<th>Guest Dob</th>
+<th>Guest Mcn</th>
+<th>Is Client Already In System</th>
+<th>Client Id</th>
+<th>Created At</th>
+<th>Is Active</th>
+            </tr>
+            </thead>
+            <tbody>
+            @foreach($records as $record)
+                <tr>
+<td><a href="/invitations/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
+<td><?= $record->pro_id ?></td>
+<td><?= $record->first_name ?></td>
+<td><?= $record->last_name ?></td>
+<td><?= $record->dob ?></td>
+<td><?= $record->mcn ?></td>
+<td><?= $record->email ?></td>
+<td><?= $record->cell_number ?></td>
+<td><?= $record->memo ?></td>
+<td><?= $record->invitation_key ?></td>
+<td><?= friendly_date_time($record->last_email_sent_at) ?></td>
+<td><?= friendly_date_time($record->last_sms_sent_at) ?></td>
+<td><?= $record->has_invitation_been_viewed ?></td>
+<td><?= $record->guest_first_name ?></td>
+<td><?= $record->guest_last_name ?></td>
+<td><?= $record->guest_dob ?></td>
+<td><?= $record->guest_mcn ?></td>
+<td><?= $record->is_client_already_in_system ?></td>
+<td><?= $record->client_id ?></td>
+<td><?= friendly_date_time($record->created_at) ?></td>
+<td><?= $record->is_active ?></td>
+                </tr>
+            @endforeach
+            </tbody>
+        </table>
+    </div>
+
+@endsection

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

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

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

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

@@ -0,0 +1,41 @@
+@extends('admin.invitations.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/invitation/deactivate">
+        <input type="hidden" name="_success" value="{{route('invitations-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('invitations_SINGLE-ACTION_deactivate', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Deactivation Memo </label>
+<input class='form-control' type='text' name='deactivation_memo' value='{{ old('deactivation_memo') ? old('deactivation_memo') : $record->deactivation_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('invitations-view', ['uid' => $record->uid])}}" class="btn btn-sm btn-default px-5" up-close>Cancel</a>
+        </div>
+    </form>
+
+    </div></div>
+
+@endsection

+ 53 - 0
resources/views/admin/invitations_SINGLE/ACTION_putMedicareInfoAsGuest.blade.php

@@ -0,0 +1,53 @@
+@extends('admin.invitations.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>Put Medicare Info As Guest</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/invitation/putMedicareInfoAsGuest">
+        <input type="hidden" name="_success" value="{{route('invitations-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('invitations_SINGLE-ACTION_putMedicareInfoAsGuest', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>First Name </label>
+<input class='form-control' type='text' name='firstName' value='{{ old('firstName') ? old('firstName') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Last Name </label>
+<input class='form-control' type='text' name='lastName' value='{{ old('lastName') ? old('lastName') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Dob </label>
+<input class='form-control' type='text' name='dob' value='{{ old('dob') ? old('dob') : '' }}' >
+</div>
+<div class='form-group mb-3'>
+<label class='control-label'>Mcn </label>
+<input class='form-control' type='text' name='mcn' value='{{ old('mcn') ? old('mcn') : '' }}' >
+</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('invitations-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/invitations_SINGLE/ACTION_reactivate.blade.php

@@ -0,0 +1,41 @@
+@extends('admin.invitations.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/invitation/reactivate">
+        <input type="hidden" name="_success" value="{{route('invitations-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('invitations_SINGLE-ACTION_reactivate', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Reactivation Memo </label>
+<input class='form-control' type='text' name='reactivation_memo' value='{{ old('reactivation_memo') ? old('reactivation_memo') : $record->reactivation_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('invitations-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/invitations_SINGLE/ACTION_sendEmail.blade.php

@@ -0,0 +1,41 @@
+@extends('admin.invitations.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>Send Email</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/invitation/sendEmail">
+        <input type="hidden" name="_success" value="{{route('invitations-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('invitations_SINGLE-ACTION_sendEmail', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Email </label>
+<input class='form-control' type='text' name='email' value='{{ old('email') ? old('email') : '' }}' >
+</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('invitations-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/invitations_SINGLE/ACTION_sendSms.blade.php

@@ -0,0 +1,41 @@
+@extends('admin.invitations.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>Send Sms</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/invitation/sendSms">
+        <input type="hidden" name="_success" value="{{route('invitations-view', ['uid' => $record->uid])}}">
+        <input type="hidden" name="_return" value="{{route('invitations_SINGLE-ACTION_sendSms', ['uid' => $record->uid])}}">
+        <div class='form-group mb-3'>
+<label class='control-label'>Cell Number </label>
+<input class='form-control' type='text' name='cellNumber' value='{{ old('cellNumber') ? old('cellNumber') : '' }}' >
+</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('invitations-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/invitations_SINGLE/SUB_dashboard.blade.php

@@ -0,0 +1,41 @@
+@extends('admin.invitations.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/invitations/actions')
+        </div>
+    </div>
+</div>
+
+
+@endsection

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

@@ -137,3 +137,10 @@
 		<p>Note Templates</p>
 	</a>
 </li>
+
+<li class='nav-item'>
+	<a href='/invitations' class='nav-link {{ (isset(request()->route()->getController()->selfName) && strpos(request()->route()->getController()->selfName, 'invitations') === 0 ? 'active' : '') }} '>
+		<i class='nav-icon fa fa-user-md'></i>
+		<p>Invitations</p>
+	</a>
+</li>

+ 22 - 5
routes/generated.php

@@ -426,6 +426,13 @@ Route::prefix('/section_templates')->group(function () {
 	Route::get('add_new', 'section_templates_Controller@add_new')->name('section_templates-add_new');
 });
 
+// --- admin: note_templates --- //
+Route::prefix('/note_templates')->group(function () {
+	Route::get('', 'note_templates_Controller@index')->name('note_templates-index');
+	Route::get('add_new', 'note_templates_Controller@add_new')->name('note_templates-add_new');
+	Route::get('view/{uid}', 'note_templates_Controller@view')->name('note_templates-view');
+});
+
 // --- admin: note_templates_SINGLE --- //
 Route::prefix('/note_templates/view/{uid}')->group(function () {
 	Route::get('ACTION_updateTitle', 'note_templates_SINGLE_Controller@ACTION_updateTitle')->name('note_templates_SINGLE-ACTION_updateTitle');
@@ -434,9 +441,19 @@ Route::prefix('/note_templates/view/{uid}')->group(function () {
 	Route::get('ACTION_add_new_note_template_section_template', 'note_templates_SINGLE_Controller@ACTION_add_new_note_template_section_template')->name('note_templates_SINGLE-ACTION_add_new_note_template_section_template');
 });
 
-// --- admin: note_templates --- //
-Route::prefix('/note_templates')->group(function () {
-	Route::get('', 'note_templates_Controller@index')->name('note_templates-index');
-	Route::get('add_new', 'note_templates_Controller@add_new')->name('note_templates-add_new');
-	Route::get('view/{uid}', 'note_templates_Controller@view')->name('note_templates-view');
+// --- admin: invitations_SINGLE --- //
+Route::prefix('/invitations/view/{uid}')->group(function () {
+	Route::get('ACTION_deactivate', 'invitations_SINGLE_Controller@ACTION_deactivate')->name('invitations_SINGLE-ACTION_deactivate');
+	Route::get('ACTION_reactivate', 'invitations_SINGLE_Controller@ACTION_reactivate')->name('invitations_SINGLE-ACTION_reactivate');
+	Route::get('ACTION_sendEmail', 'invitations_SINGLE_Controller@ACTION_sendEmail')->name('invitations_SINGLE-ACTION_sendEmail');
+	Route::get('ACTION_sendSms', 'invitations_SINGLE_Controller@ACTION_sendSms')->name('invitations_SINGLE-ACTION_sendSms');
+	Route::get('ACTION_putMedicareInfoAsGuest', 'invitations_SINGLE_Controller@ACTION_putMedicareInfoAsGuest')->name('invitations_SINGLE-ACTION_putMedicareInfoAsGuest');
+	Route::get('SUB_dashboard', 'invitations_SINGLE_Controller@SUB_dashboard')->name('invitations_SINGLE-SUB_dashboard');
+});
+
+// --- admin: invitations --- //
+Route::prefix('/invitations')->group(function () {
+	Route::get('', 'invitations_Controller@index')->name('invitations-index');
+	Route::get('add_new', 'invitations_Controller@add_new')->name('invitations-add_new');
+	Route::get('view/{uid}', 'invitations_Controller@view')->name('invitations-view');
 });