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> </thead>
<tbody> <tbody>
@foreach ($agents as $agent) @foreach ($agents as $agent)
@if($agent->user)
<tr> <tr>
<td>{{ $agent->user->name }} <td>{{ $agent->user->name }}
<td>{{ $agent->company->name }} <td>{{ $agent->company?->name }}
<td>{{ $agent->user->phone }} <td>{{ $agent->user0->phone }}
<td>{{ $agent->user->email }} <td>{{ $agent->user->email }}
<td> <td>
<form method="post" action="{{ route('admin.bitrix.agent.set', ['agent' => $agent->id]) }}" <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> <a href="{{ route('admin.bitrix.agent.deals.sync', ['agent' => $agent->id]) }}">Sync</a>
</td> </td>
</tr> </tr>
@endif
@endforeach @endforeach
</tbody> </tbody>
</table> </table>