Browse Source

CRUD for ClientBDTDevices

Vijayakrishnan Krishnan 4 years ago
parent
commit
9b5b3fa6f6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      generatecv/tree.txt
  2. 1 1
      resources/views/admin/client_bdt_devices/add_new.blade.php

+ 1 - 1
generatecv/tree.txt

@@ -1254,7 +1254,7 @@ ADMIN
             dashboard
     client_bdt_devices|client_bdt_device|add|view|icon:tablet-alt
     client_bdt_devices/add_new:create
-        clientUid*:record:client:uid,name
+        clientUid*:record:client:uid,name_first
         deviceUid*:record:bdt_device:uid,imei
         instructions
         internalMemo

+ 1 - 1
resources/views/admin/client_bdt_devices/add_new.blade.php

@@ -31,7 +31,7 @@
 <option value=''>-- Select --</option>
 <?php $dbOptions = \Illuminate\Support\Facades\DB::table('client')->get(); ?>
 <?php foreach($dbOptions as $o): ?>
-<option <?= $o->uid === (old('clientUid') ? old('clientUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name ?> (<?= $o->uid ?>)</option>
+<option <?= $o->uid === (old('clientUid') ? old('clientUid') : '') ? 'selected' : '' ?> value='<?= $o->uid ?>'><?= $o->name_first ?> (<?= $o->uid ?>)</option>
 <?php endforeach; ?>
 </select>
 </div>