@extends('layouts.admin')
@section('add_js')
    <script type="text/javascript"></script>
@endsection
@section('content')
    <style>

    </style>
    <!-- [ Main Content ] start -->
    <div class="row">

        <div class="col-md-12">
            @include('layouts/flash')
        </div>

        <div class="row">
            <div class="col-md-6">
                <div class="card">
                    <div class="card-header d-flex align-items-center justify-content-between py-3">
                        <h5>Telegram Settings</h5>
                        <div class="dropdown">

                        </div>
                    </div>
                    <div class="card-body">
                        <form action="" method="POST" autocomplete="off" enctype="multipart/form-data">
                            {{ csrf_field() }}
                            <div class="row">

                                <div class="col-md-12">
                                    <p class="">To receive system alerts, send a message to <a
                                            href="https://t.me/phoenixsysbot" class="">https://t.me/phoenixsysbot</a>
                                    </p>
                                </div>

                                <div class="col-md-12">
                                    <div class="form-group">
                                        <label>Bot Token</label>
                                        <input type="text" name="bot_token" readonly value="{{ $bot_token }}"
                                            class="form-control">
                                    </div>
                                </div>

                                <div class="col-md-12">
                                    <div class="form-group">
                                        <label>Chat ID</label>
                                        <input type="text" name="chat_id" value="{{ $chat_id }}"
                                            class="form-control">
                                        <p class="mt-2">
                                            Open Telegram and search for @userinfobot.
                                            <br />

                                            Start the bot and send /start.
                                            <br />
                                            The bot will reply with your Chat ID.
                                        </p>
                                    </div>
                                </div>

                                <div class="col-md-12">
                                    <div class="form-group">
                                        <button type="submit" class="btn btn-primary"
                                            name="update_settings">Update</button>
                                    </div>
                                </div>

                        </form>

                    </div>
                </div>
            </div>
        </div>

        <div class="col-md-12">

        </div>
    </div>
@endsection
