<h1 class="title"><?= __('Sell item') ?></h1>

<ul class="breadcrumber">
    <li><a href="<?= url_to('/') ?>" data-ajax><?= __('Home') ?></a></li>
    <li><a href="<?= url_to('/direct-market') ?>" data-ajax><?= __('Direct Market') ?></a></li>
    <li class="active"><?= __('Rescue') ?></li>
</ul>

<form class="form" data-ajax action="<?= url_to('/direct-market/rescue') ?>" method="post">
    <?= csrf_field() ?>

    <div class="box-panel">
        <div class="box-panel-title">
            <div class="box-panel-title-left"></div>
            <div class="box-panel-title-content"><?= __('Rescue') ?></div>
            <div class="box-panel-title-right"></div>
        </div>

        <div class="box-panel-content">
            <div class="box">
                <div class="row">
                    <div class="label">
                        <label for="target"><?= __('Current balance') ?></label>
                    </div>
                    <div class="field readonly">
                        <?= util('Number')->currency($balance) ?>
                    </div>
                </div>
                <div class="row">
                    <div class="label">
                        <label for="value"><?= __('Value') ?> - <?= __('Tax') ?> <?= config('direct-market.rescue_percentage', 0) ?>% <span class="required">*</span></label>
                    </div>
                    <div class="field">
                        <input type="text" id="value" name="value" style="width:40%" />
                    </div>
                </div>
                <div class="row">
                    <div class="label">
                        <label for="pix"><?= __('PIX') ?> <span class="required">*</span></label>
                    </div>
                    <div class="field">
                        <input type="text" id="pix" name="pix" style="width:100%" />
                    </div>
                </div>
            </div>
        </div>

        <div class="submit">
            <input type="submit" class="btn" value="<?= __('Rescue') ?>">
        </div>
    </div>
</form>