123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- <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>
- <form>
- <fieldset>
- <legend>Вычисление координат</legend>
- <p><label for="longtitude">longtitude <em></em></label><input name="latitude" type="text" ></p>
- <p><label for="latitude">latitude</label><input name="longtitude" type="text" ></p>
- <p><label for="telegram">telegram_id</label><input name="telegram_id" value="555433712"></p>
- </fieldset>
- <p><input type="submit" value="Отправить"></p>
- </form>
- </div>
|