<div class="box-body campaign-block">
    <div class="row">

        <div class="col-sm-6">

            <div class="form-group">
                <label><?php echo Translate::sprint("Target_raduis", "Target raduis"); ?>
                    <sup>KM</sup></label>
                <input type="number" min="0" max="100" class="form-control"
                       placeholder="<?= Translate::sprint("Enter") ?> ..." name="RADUIS_TRAGET"
                       id="RADUIS_TRAGET" value="<?= ConfigManager::getValue('RADUIS_TRAGET') ?>">
            </div>

            <div class="form-group">
                <label> <?= Translate::sprint("Number max pushes per campaign", ""); ?> </label>
                <input type="number" min="0" max="1000" class="form-control"
                       placeholder="<?= Translate::sprint("Enter") ?> ..."
                       name="LIMIT_PUSHED_GUESTS_PER_CAMPAIGN" id="LIMIT_PUSHED_GUESTS_PER_CAMPAIGN"
                       value="<?= ConfigManager::getValue('LIMIT_PUSHED_GUESTS_PER_CAMPAIGN') ?>">
            </div>


            <div class="form-group">
                <label><?php echo Translate::sprint("Number_max_pushes_per_campaign_with_cronjob_in_every_execute", "Maximum number of pushes  per campaign with crontab in each run"); ?> </label>
                <input type="number" min="0" max="100" class="form-control"
                       placeholder="<?= Translate::sprint("Enter") ?> ..."
                       name="NBR_PUSHS_FOR_EVERY_TIME" id="NBR_PUSHS_FOR_EVERY_TIME"
                       value="<?= ConfigManager::getValue('NBR_PUSHS_FOR_EVERY_TIME') ?>">
            </div>




            <div class="box box-solid ">
                <div class="box-header with-border">
                    <h3 class="box-title"><b><?= Translate::sprint("Set up Cron Job") ?></b></h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body">
                    <div class="col-sm-12">
                        <p style="color: grey;font-size: 14px;">
                        <?php
                            echo Translate::sprint("Set this command in your cronjob") . " <br><code> /usr/bin/php -q " . FCPATH . "cronjob.php</code>";
                            echo "<br>OR";
                            echo "<br><code> /usr/bin/curl " . site_url("cronjob.php") . "</code><br>";
                            echo '<br><i><u><a target="_blank" href="https://www.youtube.com/watch?v=YwpUjz1tMbA&t=152s">Tutorial Video</a></u></i>'
                            ?>
                        </p>
                    </div>
                </div>
            </div>


        </div>


        <div class="col-sm-6">
            <div class="form-group">
                <label><?php echo Translate::sprint("Firebase key"); ?> (FCM)
                    <sup>*</sup></label>
                <textarea type="text" class="form-control"
                          placeholder="<?= Translate::sprint("Enter") ?> ..." name="FCM_KEY"
                          id="FCM_KEY"><?= ConfigManager::getValue('FCM_KEY') ?></textarea>
            </div>
        </div>

    </div>
</div>

<div class="box-footer">
    <div class="pull-right">
        <button type="button" class="btn  btn-primary btnSaveCampaignConfig"><span
                    class="glyphicon glyphicon-check"></span>&nbsp;<?php echo Translate::sprint("Save"); ?>
        </button>
    </div>
</div>


<?php


$script = $this->load->view('campaign/setting_viewer/scripts/script', NULL, TRUE);
AdminTemplateManager::addScript($script);

?>
