Parcourir la source

Video status and video-page link on client single dashboard

Vijayakrishnan il y a 5 ans
Parent
commit
a6d3e7b7a0

+ 6 - 2
resources/views/mc.blade.php

@@ -16,7 +16,7 @@
 <body class="h-100 mc-page">
     <div class="row mx-0 h-100">
         <div class="col-9 px-0 app-left-panel">
-            <iframe src="{{ $page }}" frameborder="0" class="h-100 w-100"></iframe>
+            <iframe id="stag_lhs" src="{{ $page }}" frameborder="0" class="h-100 w-100"></iframe>
         </div>
         {{--<div id="meetingsApp" class="pro col-3 border-left app-right-panel">
             <meetings-app-root
@@ -25,7 +25,7 @@
                 ></meetings-app-root>
         </div>--}}
         <div class="col-3 border-left app-right-panel pr-1">
-            <iframe src="/pro/meet" frameborder="0" class="h-100 w-100"></iframe>
+            <iframe id="stag_rhs" src="/pro/meet" frameborder="0" class="h-100 w-100"></iframe>
         </div>
     </div>
     <script src="/AdminLTE-3.0.5/plugins/jquery/jquery.min.js"></script>
@@ -33,6 +33,10 @@
     <script src="/v-splitter-px/v-splitter.js"></script>
     <script>
         initVSplitter('stag-mc-main', $('.app-left-panel'), $('.app-right-panel'));
+        window.openInRHS = function(_url) {
+            $('#stag_rhs').attr('src', _url);
+            return false;
+        };
     </script>
 </body>
 </html>

+ 38 - 27
resources/views/pro/clients_SINGLE/SUB_dashboard.blade.php

@@ -6,17 +6,28 @@
     <div class="row">
         <div class="col-md-12">
             <p>{{$record->name_display()}}</p>
-           
+
+            <div class="p-3 border d-flex align-items-center mb-3">
+                <span class="mr-3">Video:
+                    <span class="font-weight-bold">
+                        <?= $record->is_client_video_turned_on ? '<span class="text-success">ON</span>' : '<span class="text-secondary">OFF</span>' ?>
+                    </span>
+                </span>
+                @if($record->is_client_video_turned_on)
+                    <a href="#" class="text-primary font-weight-bold" onclick="return window.top.openInRHS('/pro/meet/{{ $record->uid }}')">Go to Call</a>
+                @endif
+            </div>
+
             <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_setIsDuplicateToTrue', $record->uid)}}" title="Set as not duplicate">Mark as duplicate</a></p>
-      
+
                 <div>
-                    <i class="fa fa-phone" aria-hidden="true"></i> 
+                    <i class="fa fa-phone" aria-hidden="true"></i>
                         {{$record->cell_number}}
-                        <a up-modal=".form-contents" up-width="800" up-history="false" 
-                            href="{{route('clients_SINGLE-ACTION_putNewCellNumber', $record->uid)}}"><i class="fa fa-edit" aria-hidden="true"></i></a>    
+                        <a up-modal=".form-contents" up-width="800" up-history="false"
+                            href="{{route('clients_SINGLE-ACTION_putNewCellNumber', $record->uid)}}"><i class="fa fa-edit" aria-hidden="true"></i></a>
                 </div>
                 <div>
-                    <i class="fa fa-envelope" aria-hidden="true"></i> 
+                    <i class="fa fa-envelope" aria-hidden="true"></i>
                         {{$record->email_address}}
                     <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_putNewEmailAddress', $record->uid)}}"><i class="fa fa-edit"></i></a>
                 </div>
@@ -31,15 +42,15 @@
                     {{$record->gender_identity}}, {{$record->sex}}, {{$record->dob}}, {{$record->age_in_years}}
                     <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_editDemographics', $record->uid)}}"><i class="fa fa-edit"></i></a>
                 </div>
-                
+
                 <small> Currently under the care of {MCP-First MCP-Last}✏️, with us since {creation.month}, {creation.date} || '8 days'}.
                 @if($record->mcpPro)
                 <div>
                     Currently under the care of {{$record->mcpPro->name_display}}
-                    <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_putMcp', $record->uid)}}"><i class="fa fa-edit" aria-hidden="true"></i></a>  
-                    <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_removeMcp', $record->uid)}}"><i class="fa fa-trash" aria-hidden="true"></i></a>      
+                    <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_putMcp', $record->uid)}}"><i class="fa fa-edit" aria-hidden="true"></i></a>
+                    <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_removeMcp', $record->uid)}}"><i class="fa fa-trash" aria-hidden="true"></i></a>
                 </div>
-                @else 
+                @else
                     <div>
                         <p>No mcp pro assigned.</p>
                         <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_putMcp', $record->uid)}}"><i class="fa fa-edit" aria-hidden="true"></i></a>
@@ -76,27 +87,27 @@
                                     </p>
                                 @else
                                     <p>
-                                        Unenroll this client from CM 
+                                        Unenroll this client from CM
                                         <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_setIsEnrolledInCmToFalse', $record->uid)}}">unenroll in cm</a>
                                     </p>
                                 @endif
-                            @endif           
+                            @endif
                         <h2>Remote Monitoring:</h2>
                             { If !rmePro } <Dropdown/Datalist of possible RMEs>
                             @if(!$record->rmePro)
-                                <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_putRmePro', $record->uid)}}">Put RME pro</a>          
+                                <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_putRmePro', $record->uid)}}">Put RME pro</a>
                             @else
-                                RME Pro: <a href="">{{$record->rmePro->name_display}}</a> 
-                                <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_changeRmePro', $record->uid)}}">change rme pro</a>           
+                                RME Pro: <a href="">{{$record->rmePro->name_display}}</a>
+                                <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_changeRmePro', $record->uid)}}">change rme pro</a>
                             @endif
-                            
+
                             @if(!$record->rmmPro)
                               <a href="">Put RMM pro</a>
                             @else
-                                {else}  
+                                {else}
                                 <link>{rmmPro}</link> ✏️
-                                RMM Pro:<a href="">{{$record->rmmPro->name_display}}</a> 
-                                <a  up-modal=".form-contents" up-width="800" up-history="false" 
+                                RMM Pro:<a href="">{{$record->rmmPro->name_display}}</a>
+                                <a  up-modal=".form-contents" up-width="800" up-history="false"
                                     href="{{route('clients_SINGLE-ACTION_changeRmmPro', $record->uid)}}">change rmm pro</a>
                             @endif
                             { If rmePro && rmmPro}
@@ -109,7 +120,7 @@
                                         @link _____why?_____ [Unenroll]
                                 <a href="">Unenroll in RM</a>
                             @endif
-                
+
                         << Prev     Care Months - Month, Year     Next >> (max, one month in future)
                         <div>
                             <div>Care month: $client->careMonth->start_date </div>
@@ -118,7 +129,7 @@
                         </div>
                         @if(!$record->careMonth)
                             <div>
-                                <a  up-modal=".form-contents" up-width="800" up-history="false" 
+                                <a  up-modal=".form-contents" up-width="800" up-history="false"
                                     href="">Add care month</a>
                             </div>
                         @elseif($record->is_tm_this_month)
@@ -130,7 +141,7 @@
                             Eligible for CM_20/30_HCP/90. RM_20/30/90. {calc: careMonth.totalTimeCM / careMonth.totalTimeRM}
                             Total time billed this month: {careMonth.totalTimeCM} minutes in CM, {careMonth.totalTimeRM} minutes in RM.
                             <div>
-                                Total time billed this month: 
+                                Total time billed this month:
                                 {{$careMonth->rm_total_time_in_seconds/60}} minutes in CM, {{$careMonth->cm_total_time_in_seconds/60}} minutes in RM.
                             </div>
                             @if($careMonth->is_client_enrolled_in_cm)
@@ -159,7 +170,7 @@
                             {Loop entries recent}
                                 Created | Type (rm/cm) | Duration | Content | Pro
                             {/Loop entries}
-                            
+
                             <table class="table table-condensed table-striped">
                                 <thead>
                                     <tr>
@@ -169,7 +180,7 @@
                                         <th>Content</th>
                                         <th>Pro</th>
                                     </tr>
-                                </thead>     
+                                </thead>
                                 <tbody>
                                     @foreach ($careMonth->careMonthEntries as $careMonthEntry)
                                     <tr>
@@ -181,12 +192,12 @@
                                     </tr>
                                     @endforeach
                                 </tbody>
-                            </table>   
-                         
+                            </table>
+
                         @endif
                         </div>
                 @endif
-                
+
         </div>
     </div>
 </div>