lk.zachem.info/app/Modules/Admin/Views/bitrix/agents.blade.php
2025-07-16 09:45:40 +08:00

39 lines
1.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@php($title = 'Битрикс24: агенты')
@extends('layouts.admin')
@section('content')
<table class="table">
<thead>
<tr>
<th scope="col">Имя</th>
<th scope="col">Агентство</th>
<th scope="col">Телефон</th>
<th scope="col">Эл. почта</th>
<th scope="col">ID</th>
<th></th>
</tr>
</thead>
<tbody>
@foreach ($agents as $agent)
<tr>
<td>{{ $agent->user->name }}
<td>{{ $agent->company->name }}
<td>{{ $agent->user->phone }}
<td>{{ $agent->user->email }}
<td>
<form method="post" action="{{ route('admin.bitrix.agent.set', ['agent' => $agent->id]) }}"
class="input-group mb-3">
@csrf
<input type="text" name="id" class="form-control" placeholder="ID из Битрикс24"
aria-label="" aria-describedby="button-addon2" value="{{ $agent->bitrixId() }}">
<button class="btn btn-outline-secondary" type="submit" id="button-addon2">Сохранить</button>
</form>
</td>
<td>
<a href="{{ route('admin.bitrix.agent.deals.sync', ['agent' => $agent->id]) }}">Sync</a>
</td>
</tr>
@endforeach
</tbody>
</table>
@endsection