<div class="ads">
    <?= $settings['ptc_top_ad'] ?>
</div>
<ul class="nav nav-pills mb-4 bg-light rounded" role="tablist">
                                                <li class="nav-item waves-effect waves-light" role="presentation">
                                                    <a class="nav-link active" href="/advertise" role="tab" aria-selected="true">Create campaign</a>
                                                </li>
                                                <li class="nav-item waves-effect waves-light" role="presentation">
                                                    <a class="nav-link" href="/advertise/manage" role="tab" aria-selected="false" tabindex="-1">Manage campaign</a>
                                                </li>
                                                <li class="nav-item waves-effect waves-light" role="presentation">
                                                    <a class="nav-link" href="/deposit" role="tab" aria-selected="false" tabindex="-1">Deposit</a>
                                                </li>
                                                <li class="nav-item waves-effect waves-light" role="presentation">
                                                    <a class="nav-link" href="/transfer" role="tab" aria-selected="false" tabindex="-1">Transfer</a>
                                                </li>
</ul>
<div class="row">
    <div class="col-lg-12">
        <div class="card">
            <div class="card-body">
                
                 <?php
                if (isset($_SESSION['message'])) {
                    echo $_SESSION['message'];
                }
                ?>
             <div class="alert text-center alert-fade text-center xalert-simple xalert-primary xalert-dismissible text-left font__family-montserrat font__size-16 font__weight-light brk-library-rendered rendered show"><i class="fas fa-exclamation-circle"></i> CREATE YOUR PTC ADVERTISEMENT CAMPAIGN  </div>

                
                  <?php
                if (isset($_SESSION['message'])) {
                    echo $_SESSION['message'];
                }
                ?>
             <div class="alert text-center alert-fade text-center xalert-simple xalert-primary xalert-dismissible text-left font__family-montserrat font__size-16 font__weight-light brk-library-rendered rendered show"><i class="fas fa-exclamation-circle"></i> OR <a href="https://tawk.to/btcbunch" target="_blank" rel="noreferrer noopener">CLICK HERE</a> TO POST YOUR MICRO JOB TASK ADS</div>
             
                
                
                <?php
                if (isset($_SESSION['message'])) {
                    echo $_SESSION['message'];
                } ?>

                <div class="alert alert-danger">You have <?= format_money($user['dep_balance']) ?> USD in deposit balance. You can deposit or transfer from main balance to create ads.</div>
                <form action="<?= site_url('/advertise/add') ?>" method="POST">

                    <label>Name</label>
                    <div class="input-group mb-4">
                        <div class="input-group-prepend">
                            <span class="input-group-text"><i class="fas fa-globe"></i></span>
                        </div>
                        <input type="text" class="form-control form-control-icon-img" name="name" minlength="1" maxlength="75" autocomplete="off" required>
                    </div>

                    <label>Description</label>
                    <div class="input-group mb-4">
                        <div class="input-group-prepend">
                            <span class="input-group-text">
                                <i class="far fa-comment-alt"></i>
                            </span>
                        </div>
                        <input type="text" class="form-control form-control-icon-img" name="description" minlength="1" maxlength="75" autocomplete="off" required>
                    </div>

                    <label>Url</label>
                    <div class="input-group mb-4">
                        <div class="input-group-prepend">
                            <span class="input-group-text">
                                <i class="fas fa-link"></i>
                            </span>
                        </div>
                        <input type="text" class="form-control form-control-icon-img" name="url" autocomplete="off" required>
                    </div>

                    <label>View</label>
                    <div class="input-group mb-4">
                        <div class="input-group-prepend">
                            <span class="input-group-text">
                                <i class="fas fa-eye"></i>
                            </span>
                        </div>
                        <input type="number" class="form-control form-control-icon-img" name="view" min="1" autocomplete="off" required>
                    </div>

                    <div class="form-group">
                        <label for="option">Duration</label>
                        <select class="form-control" id="option" name="option">
                            <?php foreach ($options as $option) { ?>
                                <option value="<?= $option['id'] ?>"><?= $option['timer'] ?> seconds (<?= currency($option['price'], $settings['currency_rate']) ?>/view, minimum <?= $option['min_view'] ?> views)</option>
                            <?php } ?>
                        </select>
                    </div>
                    <input type="hidden" name="<?= $csrf_name ?>" id="token" value="<?= $csrf_hash ?>">
                    <button type="submit" class="btn btn-success btn-block">Create Campaign</button>
                </form>
            </div>
        </div>
    </div>
</div>