12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <div class="container">
- @if(Session::has('status'))
- <div class="alert alert-info">
- <span>{{ Session::get('status') }}</span>
- </div>
- @endif
- <form action="{{ route('admin.setting.store') }}" method="post">
- {{--{{ scrf_field() }}--}}
- @csrf
- <div class="form-group">
- <h1>URL callback для Telegram</h1>
- <div class="input-group">
- <div class="input-group-btn">
- <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-haspopup="true"
- aria-expanded="false">Действие<span class="caret"></span></button>
- <ul class="dropdown-menu">
- <li>
- <a href="#" onclick="document.getElementById('url_callback_bot').value = '{{ url('/tbot') }}'">Вставить URL</a>
- </li>
- <li>
- <a href="#" onclick="event.preventDefault(); document.getElementById('setwebhook').submit()">Отправить URL</a>
- </li>
- <li>
- <a href="#" onclick="event.preventDefault(); document.getElementById('getwebhookinfo').submit()">Получить информацию</a>
- </li>
- </ul>
- </div>
- <input type="url" class="form-control" id="url_callback_bot" name="url_callback_bot" value="{{ isset($url_callback_bot) ?$url_callback_bot: '' }}">
- </div>
- </div>
- <button class="btn btn-primary" type="submit">Сохранить</button>
- </form>
- <form id="setwebhook" action="{{ route('admin.setting.setwebhook') }}" method="POST" style="display: none">
- @csrf
- <input type="hidden" name="url" value="{{ isset($url_callback_bot) ?$url_callback_bot: '' }}">
- </form>
- <form id="getwebhookinfo" action="{{ route('admin.setting.getwebhookinfo') }}" method="POST" style="display: none">
- @csrf
- </form>
- </div>
|