lk.zachem.info/app/Modules/Admin/Views/bitrix/webhooks.blade.php

28 lines
1.2 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')
<div class="alert alert-primary" role="alert">
Создайтие обработчики событий на стороне вашего Битрикс24 для указанных событий.
</div>
<form action="{{ route('admin.bitrix.webhooks.create') }}" method="post">
@csrf
@foreach ($webhooksEnumCases as $webhookEnum)
<div class="row my-2 border-bottom">
<div class="col-3 vstack">
<span class="fw-bold">{{ $webhookEnum->name }}</span>
<small>{{ __('admin.' . $webhookEnum->name) . ' webhook label' }}</small>
</div>
<div class="col-9">
<input class="form-control" type="text" name="{{ $webhookEnum->name }}"
value="{{ array_key_exists($webhookEnum->name, $webhooks) ? $webhooks[$webhookEnum->name]['url'] : '' }}">
</div>
</div>
@endforeach
<button type="submit" class="btn btn-primary mb-3">
<i class="bi bi-save"></i> Сохранить
</button>
</form>
@endsection