<?php if(is_sales_man_user() === true){ ?>
<style type="text/css">
  .navbar-default.navbar-static-side{display: none !important;}
  #page-wrapper{width: 100%; margin: 0;}
  .footer.fixed{margin: 0;}

  .blink_me {
    animation: blinker 0.6s linear infinite;
  }

  @keyframes blinker {
    50% {
      opacity: 0;
    }
  }
</style>
<?php } ?>


<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox-title text-center">
        <h3><?= print_lang($app_lang,'money_receipts_add_title'); ?></h3>
    </div>
    <div class="ibox-title">
        <h5><?= print_lang($app_lang,'fields_with'); ?> <strong class="text-danger">*</strong> <?= print_lang($app_lang,'are_mandatory'); ?></h5>
        <p style="text-align: center; font-size: 16px;"><strong>Client Balance:</strong>&nbsp;&nbsp;<span id="money-receipts-client-balance-span" class="blink_me" style="font-size: 15px; font-weight: 700; color: red;"></span></p>
    </div>
    <div class="ibox-content">
        <!-- spinner -->
        <div class="sk-spinner sk-spinner-three-bounce">
            <div class="sk-bounce1"></div>
            <div class="sk-bounce2"></div>
            <div class="sk-bounce3"></div>
        </div>
        <!-- spinner -->
        <div class="row">
            <div class="col-sm-12 b-r">
                <form role="form" id="money-receipts-form" action="<?php echo url('/money-receipts/save'); ?>">

                    <div class="row extra-mar-botm">
                        <div class="col-md-4">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'money_receipts_add_input_currency'); ?> <strong class="text-danger">*</strong></label>
                                <select class="form-control chosen-select" name="currency">
                                    <option disabled="" selected="">-- <?= print_lang($app_lang,'money_receipts_add_input_currency'); ?> --</option>
                                    <?php foreach($currencies as $row){ ?>
                                        <option value="<?= $row['uid']; ?>" data-rate="<?= $row['usd_equalance']; ?>"><?= $row['name']; ?></option>
                                    <?php } ?>
                                </select>
                            </div>
                        </div>

                        <div class="col-md-4">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'money_receipts_add_input_client'); ?> <strong class="text-danger">*</strong></label>
                                <select class="form-control chosen-select" name="client">
                                    <option disabled="" selected="">-- <?= print_lang($app_lang,'money_receipts_add_input_client'); ?> --</option>
                                    <?php foreach($clients as $row){ ?>
                                        <option value="<?= $row['uid']; ?>"><?= $row['name']; ?></option>
                                    <?php } ?>
                                </select>
                            </div>
                        </div>  

                        <div class="col-md-4">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'money_receipts_add_input_amount'); ?> <strong class="text-danger">*</strong></label>
                                <input type="text" class="form-control" name="amount" placeholder="<?= print_lang($app_lang,'money_receipts_add_input_amount'); ?>">
                            </div>
                        </div>                                           
                    </div>

                    <div class="row extra-mar-botm">
                        <div class="col-md-12">
                            <div class="form-group">
                                <label><?= print_lang($app_lang,'money_receipts_add_input_details'); ?></label>
                                <textarea class="form-control" name="details" rows="2" placeholder="<?= print_lang($app_lang,'money_receipts_add_input_details'); ?>"></textarea>
                            </div>
                        </div>
                    </div>

                    <div class="row extra-mar-botm">
                        <div class="col-md-12 text-right">
                            <a class="btn btn-w-m btn-outline btn-danger url-elem" href="<?php echo url('/money-receipts'); ?>"><?= print_lang($app_lang,'cancel'); ?></a>
                            <button class="btn btn-w-m btn-primary" type="submit"><?= print_lang($app_lang,'save'); ?></button>
                        </div>
                    </div>

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

</div>