<?php

use FW\View\View;
use FW\Helpers\Common;
use FW\Session\Session;
use FW\HTML\Form;
use FW\Security\Auth;
echo View::getLayoutData('header');
?>

    <!-- Page Content -->
    <div class="container">
        <?php 
if (Session::hasError()) {
    ?>
            <div class="alert alert-danger" role="alert"><?php 
    echo Session::getError();
    ?>
</div>
        <?php 
}
?>
        <div class="row">

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

                <?php 
echo Form::open(array('action' => Common::getBaseURL() . $action));
?>
                <?php 
echo Form::text(array('name' => 'discount', 'placeholder' => 'discount', 'value' => Session::oldInput()['discount']));
                        </tr>
                    <?php 
}
?>
                    </tbody>
                    <tfoot>
                    <tr class="summary">
                        <td></td>
                        <td></td>
                        <td id="total_price"></td>
                        <td></td>
                    </tr>
                    </tfoot>
                </table>
                <p class="alert-danger"><?php 
echo Session::hasError() ? Session::getError() : '';
?>
</p>
            </div>

        </div>

    </div>
    <!-- /.container -->

    <div class="container">

        <hr>

        <!-- Footer -->
        <footer>