|
@@ -14,8 +14,10 @@
|
|
|
<tbody>
|
|
|
<tr><td class="w-25 px-2 text-secondary border-right">Team Number</td><td class="w-75 px-2 font-weight-bold"><?= $record->team_number ?><a up-modal=".form-contents" up-width="800" up-history="false" href='/my_teams/view/<?= $record->uid ?>/ACTION_updateTeamNumber' title='Update Team Number' class='ml-2 text-dark font-weight-normal'><i class='fa fa-pencil-alt text-sm'></i></a></td></tr>
|
|
|
<tr><td class="w-25 px-2 text-secondary border-right">Created At</td><td class="w-75 px-2 font-weight-bold"><?= $record->created_at ?></td></tr>
|
|
|
-<tr><td class="w-25 px-2 text-secondary border-right">Clients</td><td class="w-75 px-2 font-weight-bold"><?= \Illuminate\Support\Facades\DB::select("select '- TODO -' as result")[0]->result ?></td></tr>
|
|
|
-<tr><td class="w-25 px-2 text-secondary border-right">Active</td><td class="w-75 px-2 font-weight-bold"><?= \Illuminate\Support\Facades\DB::select("SELECT d as result FROM (VALUES ('1','Yes'),('','No')) T(v,d) WHERE v = '{$record->is_active}' limit 1")[0]->result ?>@if( $record->is_active) <a up-modal=".form-contents" up-width="800" up-history="false" href='/my_teams/view/<?= $record->uid ?>/ACTION_deactivate' title='Deactivate' class='ml-2 text-dark font-weight-normal'><i class='fa fa-pencil-alt text-sm'></i></a> @endif
|
|
|
+<tr><td class="w-25 px-2 text-secondary border-right">Clients</td><td class="w-75 px-2 font-weight-bold"><?php $_r = \Illuminate\Support\Facades\DB::select("select '- TODO -' as result");
|
|
|
+echo ($_r && count($_r)) ? $_r[0]->result : '-'; ?></td></tr>
|
|
|
+<tr><td class="w-25 px-2 text-secondary border-right">Active</td><td class="w-75 px-2 font-weight-bold"><?php $_r = \Illuminate\Support\Facades\DB::select("SELECT d as result FROM (VALUES ('1','Yes'),('','No')) T(v,d) WHERE v = '" . ($record->is_active ? $record->is_active : -1) . "' limit 1");
|
|
|
+echo ($_r && count($_r)) ? $_r[0]->result : '-'; ?>@if( $record->is_active) <a up-modal=".form-contents" up-width="800" up-history="false" href='/my_teams/view/<?= $record->uid ?>/ACTION_deactivate' title='Deactivate' class='ml-2 text-dark font-weight-normal'><i class='fa fa-pencil-alt text-sm'></i></a> @endif
|
|
|
@if(! $record->is_active) <a up-modal=".form-contents" up-width="800" up-history="false" href='/my_teams/view/<?= $record->uid ?>/ACTION_reactivate' title='Reactivate' class='ml-2 text-dark font-weight-normal'><i class='fa fa-pencil-alt text-sm'></i></a> @endif</td></tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
@@ -29,8 +31,10 @@
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- <tr><td class="w-25 px-2 text-secondary border-right">HCP Pro</td><td class="w-75 px-2 font-weight-bold"><a href="/foo/bar/<?= $record->hcp_pro_id ?>"><?= \Illuminate\Support\Facades\DB::select("select name_display as result from pro where id = {$record->hcp_pro_id} limit 1")[0]->result ?></a></td></tr>
|
|
|
-<tr><td class="w-25 px-2 text-secondary border-right">Ally Pro</td><td class="w-75 px-2 font-weight-bold"><?= \Illuminate\Support\Facades\DB::select("select name_display as result from pro where id = {$record->ally_pro_id} limit 1")[0]->result ?></td></tr>
|
|
|
+ <tr><td class="w-25 px-2 text-secondary border-right">HCP Pro</td><td class="w-75 px-2 font-weight-bold"><a href="/foo/bar/<?= $record->hcp_pro_id ?>"><?php $_r = \Illuminate\Support\Facades\DB::select("select name_display as result from pro where id = " . ($record->hcp_pro_id ? $record->hcp_pro_id : -1) . " limit 1");
|
|
|
+echo ($_r && count($_r)) ? $_r[0]->result : '-'; ?></a></td></tr>
|
|
|
+<tr><td class="w-25 px-2 text-secondary border-right">Ally Pro</td><td class="w-75 px-2 font-weight-bold"><?php $_r = \Illuminate\Support\Facades\DB::select("select name_display as result from pro where id = " . ($record->ally_pro_id ? $record->ally_pro_id : -1) . " limit 1");
|
|
|
+echo ($_r && count($_r)) ? $_r[0]->result : '-'; ?></td></tr>
|
|
|
</tbody>
|
|
|
</table>
|
|
|
</div>
|