浏览代码

regenerated tree

Josh Kamau 5 年之前
父节点
当前提交
eef9f0da96

+ 0 - 3
generatecv/tree.txt

@@ -1012,7 +1012,6 @@ ADMIN
                 !grp:Driving License:is_driver_license_complete,driver_license_file_path,driver_license_state,driver_license_issue_date,driver_license_expiration_date:Update Driving License:circle=>/pros/view/$uid/ACTION_updateDriverLicenseInfo
                 !grp:SSN:ssn:Update SSN:circle=>/pros/view/$uid/ACTION_updateSsn
                 !grp:W9:isw9complete,w9detail:Update W9:circle=>/pros/view/$uid/ACTION_updateW9Detail
-                !grp:Video Visit Assistant:is_video_visit_assistant
                 !grp:Contract:is_contract_complete,signed_contract_pdf_file_path:Update Contract:circle=>/pros/view/$uid/ACTION_updateSignedContractPdf
                 !act:cell_number:sendCellNumberConfirmationMessage:circle=>/pros/view/$uid/ACTION_sendCellNumberConfirmationMessage
                 !act:is_cell_number_confirmation_pending:confirmCellNumberWithConfirmationToken:circle=>/pros/view/$uid/ACTION_confirmCellNumberWithConfirmationToken
@@ -1031,8 +1030,6 @@ ADMIN
                 !act:is_enrolled_as_mcp:setIsEnrolledAsMcpToFalse:circle:if:is_enrolled_as_mcp=>/pros/view/$uid/ACTION_setIsEnrolledAsMcpToFalse
                 !act:is_enrolled_as_mcp:setIsEnrolledAsMcpToTrue:circle:if-not:is_enrolled_as_mcp=>/pros/view/$uid/ACTION_setIsEnrolledAsMcpToTrue
                 !act:profile_picture_base64:removeProfilePicture:circle=>/pros/view/$uid/ACTION_removeProfilePicture
-                !act:is_video_visit_assistant:setIsVideoVisitAssistantToFalse:circle:if:is_video_visit_assistant=>/pros/view/$uid/ACTION_removeProfilePicture
-                !act:is_video_visit_assistant:setIsVideoVisitAssistantToFalse:circle:if-not:is_video_visit_assistant=>/pros/view/$uid/ACTION_removeProfilePicture
                 !nal:
             my_payment_schedule
                 id=pro_rate.pro_id=>/pro_rates/view/UID

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

@@ -251,22 +251,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">Video Visit Assistant
-                <span class="ml-auto"><!-- __GROUP_ACTION__ --></span>
-            </th>
-        </tr>
-        </thead>
-        <tbody>
-            <tr><td class="w-25 px-2 text-secondary border-right">Is Video Visit Assistant</td><td class="w-75 px-2 font-weight-bold"><?= $record->is_video_visit_assistant ?>@if( $record->is_video_visit_assistant) <a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/pros/view/<?= $record->uid ?>/ACTION_removeProfilePicture?optimised=1' title='setIsVideoVisitAssistantToFalse' class='mx-2 font-weight-normal text-primary text-xs'><i class='fa fa-circle'></i>&nbsp;<span>Set Is Video Visit Assistant To False</span></a> @endif
-@if(! $record->is_video_visit_assistant) <a up-modal=".form-contents" up-preload up-delay="25" up-width="800" up-history="false" href='/pros/view/<?= $record->uid ?>/ACTION_removeProfilePicture?optimised=1' title='setIsVideoVisitAssistantToFalse' class='mx-2 font-weight-normal text-primary text-xs'><i class='fa fa-circle'></i>&nbsp;<span>Set Is Video Visit Assistant To False</span></a> @endif</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>

+ 3 - 87
resources/views/pro/clients/info.blade.php

@@ -1,87 +1,3 @@
-<?
-    $client = $record;
-    $thumbnail = $client->profile_picture_base64;
-    $initials = !$thumbnail ? substr($client->name_first, 0, 1).substr($client->name_last, 0, 1) : '';
-    $fullName = zImplode(', ', [
-        zImplode(' ', [$client->name_prefix, $client->name_first, $client->name_middle, $client->name_last, $client->name_suffix]),
-        $client->name_credential
-    ]);
-
-    $sex = str_replace(['F', 'M'], ['Female', 'Male'], $client->sex);
-    $gender = $sex
-            ? $sex.($client->gender_identity ? " ($client->gender_identity)" : '')
-            : $client->gender_identity;
-    $age = date_diff(date_create($client->dob), date_create('today'))->y ?: $client->age_in_years;
-    $birthplace = zImplode(', ', [$client->birth_city, $client->birth_state, $client->birth_country]);
-
-    $confirmedCell = $client->is_cell_number_confirmed ? $client->cell_number : null;
-    $confirmedEmail = $client->is_email_address_confirmed ? $client->email_address : null;
-    $location = zImplode(', ', [$client->home_address_city, $client->home_address_state])
-        ?: zImplode(', ', [$client->mailing_address_city, $client->mailing_address_state])
-        ?: zImplode(', ', [$client->secondary_home_address_city, $client->secondary_home_address_state])
-        ?: zImplode(', ', [$client->secondary_mailing_address_city, $client->secondary_mailing_address_state])
-        ?: $birthplace
-        ?: null;
-
-    $memberSince = date_diff(date_create($client->created_at), date_create('now'))->days;
-    if ($memberSince > 30) $memberSince = date('F, Y', strtotime($client->created_at));
-    else if ($memberSince > 1) $memberSince .= ' days ago';
-    else if ($memberSince === 1) $memberSince = 'yesterday';
-    else if ($memberSince === 0) $memberSince = 'today';
-
-    $medicareStatus = [
-        'true' => 'medicare-valid',
-        'false' => 'medicare-invalid',
-        'NULL' => null
-    ][var_export($client->medicareStatus(), true)];
-
-    // print_r($client); exit;
-?>
-
-<section class=z><a href=SUB_detail>
-<header class=hbox>
-    <div class="dp <?=$medicareStatus?>" style="background-image:<?=$thumbnail?>"><?=$initials?></div>
-    <div>
-        <div class=name title="<?=$fullName?>"><?=zFormalName($client)?></div>
-        <div class=separators title="<?=date('jS F Y', strtotime($client->dob))?>">
-            <span><?=$gender?></span>
-            <span><?=$age ? ($gender ? $age : "$age years old") : null?></span>
-            <span><?=$birthplace ? "Hails from $birthplace" : null?></span>
-        </div>
-        <ul class=hbox>
-            <li>
-                <i class="fa fa-phone-alt" aria-hidden="true"></i>
-                <span class=contact><?=$confirmedCell ?? 'Edit'?></span>
-            </li>
-            <li>
-                <i class="fa fa-envelope" aria-hidden="true"></i>
-                <span class=contact><?=$confirmedEmail ?? 'Edit'?></span>
-            </li>
-            <li>
-                <i class="fa fa-map-marker-alt" aria-hidden="true"></i>
-                <?=$location ?? 'Add location'?>
-            </li>
-        </ul>
-        <div class=separators>
-            <span>
-                <span>Joined <?=$memberSince?></span>
-                <span title="<?=$client->source_memo?>"><?=$client->source ? " via $client->source" : null?></span>
-            </span>
-            <span><?=$client->mcp_pro_id ? 'Currently under c/o '.zFormalName($client->mcpPro) : null?></span>
-        </div>
-    </div>
-</header>
-</a></section>
-
-<!-- <h4 class="d-flex my-3 px-3 stag-heading stag-heading-info">
-    <div>
-        Clients: [<?= $client->name_display() ?>]
-        @if($client->is_duplicate)
-            <div>
-                <p> This client is a duplicate of 
-                <a href="{{route('clients_SINGLE-SUB_dashboard', $client->duplicateOfClient->uid)}}">{{$client->duplicateOfClient->name_display()}}</a>. 
-                <a up-modal=".form-contents" up-width="800" up-history="false" href="{{route('clients_SINGLE-ACTION_setIsDuplicateToFalse', $client->uid)}}" title="Set as not duplicate">✏️ </a></p>
-            </div>
-        @endif
-    </div>
-</h4> -->
+<h4 class="d-flex my-3 px-3 stag-heading stag-heading-info">
+    <div>Clients: Single [<?= $record->uid ?>]</div>
+</h4>