Przeglądaj źródła

removed lobby stuff

Josh Kamau 5 lat temu
rodzic
commit
339fa0a0d7

+ 0 - 29
app/Http/Controllers/lobbies_Controller.php

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

+ 0 - 74
app/Http/Controllers/lobbies_SINGLE_Controller.php

@@ -1,74 +0,0 @@
-<?php
-
-namespace App\Http\Controllers;
-
-use Illuminate\Http\Request;
-use Illuminate\Support\Facades\DB;
-use Illuminate\Support\Facades\Auth;
-
-class lobbies_SINGLE_Controller extends Controller
-{
-    public $selfName = 'lobbies_SINGLE_Controller';
-
-	// GET /lobbies/view/{uid}/ACTION_putName
-	public function ACTION_putName(Request $request, $uid) {
-		$record = DB::table('lobby')->where('uid', $uid)->first();
-		return response()->view('admin/lobbies_SINGLE/ACTION_putName', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
-	}
-
-	// GET /lobbies/view/{uid}/ACTION_putUrlSlug
-	public function ACTION_putUrlSlug(Request $request, $uid) {
-		$record = DB::table('lobby')->where('uid', $uid)->first();
-		return response()->view('admin/lobbies_SINGLE/ACTION_putUrlSlug', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
-	}
-
-	// GET /lobbies/view/{uid}/ACTION_setIsStrangerAccessibleToTrue
-	public function ACTION_setIsStrangerAccessibleToTrue(Request $request, $uid) {
-		$record = DB::table('lobby')->where('uid', $uid)->first();
-		return response()->view('admin/lobbies_SINGLE/ACTION_setIsStrangerAccessibleToTrue', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
-	}
-
-	// GET /lobbies/view/{uid}/ACTION_setIsStrangerAccessibleToFalse
-	public function ACTION_setIsStrangerAccessibleToFalse(Request $request, $uid) {
-		$record = DB::table('lobby')->where('uid', $uid)->first();
-		return response()->view('admin/lobbies_SINGLE/ACTION_setIsStrangerAccessibleToFalse', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
-	}
-
-	// GET /lobbies/view/{uid}/ACTION_setIsClientAccessibleToTrue
-	public function ACTION_setIsClientAccessibleToTrue(Request $request, $uid) {
-		$record = DB::table('lobby')->where('uid', $uid)->first();
-		return response()->view('admin/lobbies_SINGLE/ACTION_setIsClientAccessibleToTrue', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
-	}
-
-	// GET /lobbies/view/{uid}/ACTION_setIsClientAccessibleToFalse
-	public function ACTION_setIsClientAccessibleToFalse(Request $request, $uid) {
-		$record = DB::table('lobby')->where('uid', $uid)->first();
-		return response()->view('admin/lobbies_SINGLE/ACTION_setIsClientAccessibleToFalse', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
-	}
-
-	// GET /lobbies/view/{uid}/SUB_dashboard
-	public function SUB_dashboard(Request $request, $uid) {
-		$record = DB::table('lobby')->where('uid', $uid)->first();
-		return response()->view('admin/lobbies_SINGLE/SUB_dashboard', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
-	}
-
-	// GET /lobbies/view/{uid}/SUB_lobby_pros
-	public function SUB_lobby_pros(Request $request, $uid) {
-		$record = DB::table('lobby')->where('uid', $uid)->first();
-		$subRecords = DB::table('lobby_pro')->where('lobby_id', $record->id)->get();
-		return response()->view('admin/lobbies_SINGLE/SUB_lobby_pros', compact('record', 'subRecords'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
-	}
-
-	// GET /lobbies/view/{uid}/SUB_meetings
-	public function SUB_meetings(Request $request, $uid) {
-		$record = DB::table('lobby')->where('uid', $uid)->first();
-		$subRecords = DB::table('meeting')->where('lobby_id', $record->id)->get();
-		return response()->view('admin/lobbies_SINGLE/SUB_meetings', compact('record', 'subRecords'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
-	}
-
-	// GET /lobbies/view/{uid}/ACTION_lobby_prosAddNew
-	public function ACTION_lobby_prosAddNew(Request $request, $uid) {
-		$record = DB::table('lobby')->where('uid', $uid)->first();
-		return response()->view('admin/lobbies_SINGLE/ACTION_lobby_prosAddNew', compact('record'), session('message') ? 500 : 200)->header('Content-Type', 'text/html');
-	}
-}

+ 1 - 3
app/HttpModels/ProModel.php

@@ -19,8 +19,6 @@ class ProModel {
         $this->type = $pro->pro_type;
         $this->avatarFile = $pro->profile_picture_base64;
         $this->is_active_and_visible = $pro->is_currently_clocked_in;
-        foreach ($pro->lobbies()->where('lobby.is_active',true)->get() as $lobby) {
-            $this->lobbies[] = new LobbyModel($lobby);
-        }
+       
     }
 }

+ 0 - 21
app/Models/Lobby.php

@@ -1,21 +0,0 @@
-<?php
-
-namespace App\Models;
-
-use Illuminate\Database\Eloquent\Model;
-
-class Lobby extends Model
-{
-    
-    protected $table = "lobby";
-
-    public function meetings()
-    {
-        return $this->hasMany(Meeting::class);
-    }
-
-    public function pros()
-    {
-        return $this->belongsToMany(Pro::class, 'lobby_pro');
-    }
-}

+ 0 - 17
app/Models/LobbyPro.php

@@ -1,17 +0,0 @@
-<?php
-
-namespace App\Models;
-
-use Illuminate\Database\Eloquent\Model;
-
-class LobbyPro extends Model
-{
-    
-    protected $table = "lobby_pro";
-
-
-    public function pro()
-    {
-        return $this->belongsTo(Pro::class);
-    }
-}

+ 0 - 4
app/Models/Pro.php

@@ -9,8 +9,4 @@ class Pro extends Model
 
     protected $table = "pro";
 
-    public function lobbies()
-    {
-        return $this->belongsToMany(Lobby::class, 'lobby_pro', 'pro_id', 'lobby_id');
-    }
 }

+ 1 - 1
generatecv/tree.txt

@@ -295,7 +295,7 @@ PRO
                 !grp:Deceased:is_deceased,date_and_time_of_death,cause_of_death
                 !grp:Pharmacy:pharmacy,pharmacy_facility_id:Edit pharmancy:circle=>/my_clients/view/$uid/ACTION_editPharmacy
                 !grp:SSN:ssn:Edit SSN:circle=>/my_clients/view/$uid/ACTION_editSsn
-                !grp:MCN:mcn,mcn_name_first,mcn_name_last,mcn_dob,mcn_ssn,mcn_address,is_partbprimary,is_hospice,mcn_response_detail,billing_address,reason_not_partb,reason_not_partbmemo,is_medicare_advantage,medicare_advantage_plan:Put MSN:circle=>/my_clients/view/$uid/ACTION_putMcn
+                #!grp:MCN:mcn,mcn_name_first,mcn_name_last,mcn_dob,mcn_ssn,mcn_address,is_partbprimary,is_hospice,mcn_response_detail,billing_address,reason_not_partb,reason_not_partbmemo,is_medicare_advantage,medicare_advantage_plan:Put MSN:circle=>/my_clients/view/$uid/ACTION_putMcn
                 !grp:Webcam:has_webcam_device,webcam_device:Update webcam info:circle=>/my_clients/view/$uid/ACTION_updateWebcamInfo
                 !grp:MCP:mcp_pro_id:Put MCP:circle=>/my_clients/view/$uid/ACTION_putMcp
                 !grp:MCP Visit:has_mcp_done_onboarding_visit,mcp_onboarding_visit_date,mcp_onboarding_visit_note_id,reason_onboarding_visit_note_outside_system,is_mcp_onboarding_active,why_is_mcp_onboarding_not_active_category,why_is_mcp_onboarding_not_active_memo:Update source:circle=>/my_clients/view/$uid/ACTION_updateMcpOnboardingVisitInfo

+ 0 - 28
resources/views/pro/my_clients_SINGLE/SUB_dashboard.blade.php

@@ -379,34 +379,6 @@
     </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">MCN
-                <span class="ml-auto"><a up-modal=".form-contents" up-width="800" up-history="false" href='/my_clients/view/<?= $record->uid ?>/ACTION_putMcn' title='Put MSN'class='mx-2 font-weight-normal text-primary text-xs'><i class='fa fa-circle'></i>&nbsp;<span>Put MSN</span></a></span>
-            </th>
-        </tr>
-        </thead>
-        <tbody>
-            <tr><td class="w-25 px-2 text-secondary border-right">Mcn</td><td class="w-75 px-2 font-weight-bold"><?= $record->mcn ?><a up-modal=".form-contents" up-width="800" up-history="false" href='/my_clients/view/<?= $record->uid ?>/ACTION_removeMcn' title='removeMcn' class='mx-2 font-weight-normal text-primary text-xs'><i class='fa fa-circle'></i>&nbsp;<span>Remove Mcn</span></a></td></tr>
-<tr><td class="w-25 px-2 text-secondary border-right">Mcn Name First</td><td class="w-75 px-2 font-weight-bold"><?= $record->mcn_name_first ?></td></tr>
-<tr><td class="w-25 px-2 text-secondary border-right">Mcn Name Last</td><td class="w-75 px-2 font-weight-bold"><?= $record->mcn_name_last ?></td></tr>
-<tr><td class="w-25 px-2 text-secondary border-right">Mcn Dob</td><td class="w-75 px-2 font-weight-bold"><?= $record->mcn_dob ?></td></tr>
-<tr><td class="w-25 px-2 text-secondary border-right">Mcn Ssn</td><td class="w-75 px-2 font-weight-bold"><?= $record->mcn_ssn ?></td></tr>
-<tr><td class="w-25 px-2 text-secondary border-right">Mcn Address</td><td class="w-75 px-2 font-weight-bold"><?= $record->mcn_address ?></td></tr>
-<tr><td class="w-25 px-2 text-secondary border-right">Is Partbprimary</td><td class="w-75 px-2 font-weight-bold"><?= $record->is_partbprimary ?></td></tr>
-<tr><td class="w-25 px-2 text-secondary border-right">Is Hospice</td><td class="w-75 px-2 font-weight-bold"><?= $record->is_hospice ?></td></tr>
-<tr><td class="w-25 px-2 text-secondary border-right">Mcn Response Detail</td><td class="w-75 px-2 font-weight-bold"><?= $record->mcn_response_detail ?></td></tr>
-<tr><td class="w-25 px-2 text-secondary border-right">Billing Address</td><td class="w-75 px-2 font-weight-bold"><?= $record->billing_address ?></td></tr>
-<tr><td class="w-25 px-2 text-secondary border-right">Reason Not Partb</td><td class="w-75 px-2 font-weight-bold"><?= $record->reason_not_partb ?></td></tr>
-<tr><td class="w-25 px-2 text-secondary border-right">Reason Not Partbmemo</td><td class="w-75 px-2 font-weight-bold"><?= $record->reason_not_partbmemo ?></td></tr>
-<tr><td class="w-25 px-2 text-secondary border-right">Is Medicare Advantage</td><td class="w-75 px-2 font-weight-bold"><?= $record->is_medicare_advantage ?></td></tr>
-<tr><td class="w-25 px-2 text-secondary border-right">Medicare Advantage Plan</td><td class="w-75 px-2 font-weight-bold"><?= $record->medicare_advantage_plan ?></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>