

<?php $__env->startSection('main-content'); ?>

		<div class="box box-primary">
            <div class="box-header with-border">
              <i class="fa fa-edit"></i> <h3 class="box-title">Actualizar Movimiento</h3>

          <?php if($data->attached): ?>
        
              <a href="/attached/edit/<?php echo e($data->attached->id); ?>" class="btn btn-primary  waves-effect waves-light" style="float: right;"><i class="fa fa-paperclip"></i>  Editar Adjunto</a>
         <?php else: ?>
          <a href="/attached/create/<?php echo e($data->id); ?>" class="btn btn-primary  waves-effect waves-light" style="float: right;"><i class="fa fa-paperclip"></i>  Agregar Adjunto</a>

         <?php endif; ?>


            </div>
            <!-- /.box-header -->
            <!-- form start -->
            <form id="search-form" role="form" action = "/future/editar/<?php echo e($data->id); ?>" method="post"  enctype="multipart/form-data">
<div  id="modal" class="modal" >
  <div class="modal-dialog">
    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" id="closemodal" class="close" data-dismiss="modal">&times;</button>
        <h4 class="modal-title">Subcategorias</h4>
      </div>
      <div class="modal-body" id="res_ajax">
      
      </div></br>
      <div class="modal-footer">
      
      </div>
    </div>

  </div>
</div>

            <?php echo e(method_field('PUT')); ?>

             <?php echo e(csrf_field()); ?>

           
              <div class="box-body">
                <div class="form-group">
                  <label for="exampleInputEmail1">Motivo</label>
                  <input required maxlength="200" type="text" name="concept" value="<?php echo e($data->concept); ?>" class="form-control" placeholder="Motivo">
                </div>
                 <div class="form-group">
                  <label for="exampleInputPassword1">Tipo de Movimiento</label>

                  <select class="form-control" name="type">

                    
                    <?php if($data->type=='add'): ?>
              <option value="add" selected>
                      Abono
                      </option>
                      <option value="out" >
                      Retiro
              </option>

                    <?php else: ?>
                      <option value="out" selected>
                      Retiro
              </option>
              <option value="add" >
                      Abono
                      </option>
                    <?php endif; ?>
                      
                    
                    
                    
                  </select>
                  
            </div>
                <div class="form-group">
                  <label for="exampleInputEmail1">Monto</label>
                
                  <?php  $num1=$data->amount.'.00'  ?>
                  <input type="text"  step="any" required maxlength="200"  data-mask="000,000,000,000,000.00" data-mask-reverse="true" step="0.01"  name="amount"  value="<?php echo $num1 ?>" class="form-control" placeholder="Monto del Movimiento">
                 
                </div>
                <div class="form-group">
                  <label for="exampleInputEmail1">Impuesto</label>
                  
                  <?php  $num=$data->tax.'.00'  ?>
                  <input type="text" maxlength="200" name="tax" value="<?php echo $num ?>"  data-mask="000,000,000,000,000.00"    data-mask-reverse="true" class="form-control" placeholder="Impuesto">
                
                  
                </div>
                 <div class="form-group">
                  <label for="exampleInputPassword1">N° Ref</label>
                  <input  maxlength="200" name="factura" value="<?php echo e($data->factura); ?>" type="text" class="form-control"  placeholder="N° Ref">
                </div>
                <div class="form-group">
                 <label for="exampleInputEmail1">cuentas</label>

                 <select class="form-control" name="account_id">
                 <?php $__currentLoopData = $account; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $accounts): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                  <?php if($data->account_id == $accounts->id): ?>
                    <option value="<?php echo e($accounts->id); ?>" selected>
                          <?php echo e($accounts->name); ?>

                    </option>
                  <?php else: ?>
                   <option value="<?php echo e($accounts->id); ?>" >
                        <?php echo e($accounts->name); ?>

                  </option>                 
                  <?php endif; ?>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                     
                  </select>
                </div>


                <div class="form-group">
                 <label for="exampleInputEmail1">Categoria</label>
                 <select class="form-control" id="categorie_select" name="categories_id">

                 <?php $__currentLoopData = $categories; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $categoriess): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                 <?php if($data->categories_id == $categoriess->id): ?>

                  <option value="<?php echo e($categoriess->id); ?>" selected >
                        <?php echo e($categoriess->name); ?>

                  </option>
                  <?php else: ?>
                  <?php if($categoriess->id!=1): ?>

                   <option value="<?php echo e($categoriess->id); ?>" >
                        <?php echo e($categoriess->name); ?>

                  </option>
                  <?php endif; ?>
                  <?php endif; ?>
                  <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                     
                  </select>
                </div>
                <div class="form-group">
                  <label for="exampleInputPassword1">Fecha </label>
                  <?php  $datef= date_create($data->created_at); 
                          $fecha=date_format($datef, 'Y-m-d ');
                  ?>
                 <input required class="form-control" name="created_at" type="date" value="<?php echo date('Y-m-d',strtotime($fecha)) ?>"/>

                 
                 <!--  <input  value="<?php echo e($data->created_at); ?>" data-mask="0000/00/00 00:00:00" data-mask-reverse="true"   maxlength="200" name="created_at" type="text" required class="form-control"  placeholder="Fecha"> -->
                </div>
              </div>
             
            
                
              
              <div class="box-footer">
                <button type="submit" class="btn btn-primary">Actualizar</button>
              </div>
            </form>
        </div>
												

	

<?php $__env->stopSection(); ?>

<?php echo $__env->make('adminlte::layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>