fix! редактирование агентов в админке

This commit is contained in:
developer 2026-01-16 00:41:02 +08:00
parent 642236f442
commit c4fa64ce61

View File

@ -14,10 +14,11 @@
</thead>
<tbody>
@foreach ($agents as $agent)
@if($agent->user)
<tr>
<td>{{ $agent->user->name }}
<td>{{ $agent->company->name }}
<td>{{ $agent->user->phone }}
<td>{{ $agent->company?->name }}
<td>{{ $agent->user0->phone }}
<td>{{ $agent->user->email }}
<td>
<form method="post" action="{{ route('admin.bitrix.agent.set', ['agent' => $agent->id]) }}"
@ -32,6 +33,7 @@ class="input-group mb-3">
<a href="{{ route('admin.bitrix.agent.deals.sync', ['agent' => $agent->id]) }}">Sync</a>
</td>
</tr>
@endif
@endforeach
</tbody>
</table>