Commit 9143ea28566d947632f655c397371e2998b5cdee

Authored by Андрей Ларионов
1 parent ad6e7ea054

Баг с работниками без данных

Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff

resources/views/admin/worker/index.blade.php
... ... @@ -100,7 +100,10 @@
100 100 </td>
101 101 <td class="px-4 py-3 text-sm">
102 102 @if ($user->id > 1)
  103 + @if (isset($user->workers[0]->id))
103 104 <a href="{{ route('admin.worker-profile-edit', ['worker' => $user->workers[0]->id]) }}">Изменить</a>
  105 +
  106 + @endif
104 107 @endif
105 108 </td>
106 109 <td class="px-4 py-3 text-sm">