

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

    	<section class="invoice">
      <!-- title row -->
      <div class="row">
        <div class="col-xs-12">

          <h2 class="page-header">
            <i class="fa fa-bar-chart"></i> Detalle Del Movimiento

            <small class="pull-right">Fecha de creación:   <?php if($data->crated_at!='null'): ?>
                      <?php echo e($data->created_at); ?>

                      
                  <?php endif; ?></small>  
            <small  class="pull-right margen30">Autor:  
                    <?php if($user==null): ?>
                      Sin Autor
                    <?php else: ?>
                        <?php echo e($user->name); ?>

                    <?php endif; ?>

            </small>
          </h2>
        </div>
        <!-- /.col -->
      </div>
      <!-- info row -->
      <div class="row invoice-info">
        <div class="col-sm-4 invoice-col">
          Motivo
          <address>
            <strong><label><?php echo e($data->concept); ?></label></strong><br>
           
          </address>
        </div>
        <!-- /.col -->
        <div class="col-sm-4 invoice-col">
          Tipo de movmiento
          <address>
            <strong><label>
			<?php if($data->type=='add'): ?>
			Ingreso
			<?php else: ?>
			Retiro
			<?php endif; ?>
            </label></strong>
          </address>
        </div>
        <!-- /.col -->
        <div class="col-sm-4 invoice-col">
          <b>Cuenta</b><br>
           <address>
            <strong><label><?php echo e($data->name_a->name); ?></label></strong><br>
           
          </address>
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->

      <!-- Table row -->
      <div class="row">
        <div class="col-xs-12 table-responsive">
          <table class="table table-striped">
            <thead>
            <tr>
              <th>id</th>
              <th>N° Ref</th>
              <th>Categoria</th>
              <th>Atributo</th>
              <th>Impuesto</th>
              <th>Monto</th>
            </tr>
            </thead>
            <tbody>
            <tr>
              <td><?php echo e($data->id); ?></td>
              <td><?php echo e($data->factura); ?></td>
              <td><?php echo e($data->name_c->name); ?></td>
              <?php if($data->name_atr): ?>
              <td><?php echo e($data->name_atr->name); ?></td>
              <?php else: ?>
               <td>No aplica</td>
              <?php endif; ?>
              <td><?php echo e($data->tax); ?></td>
              <td><?php echo e(number_format($data->amount, 2, '.', ',')); ?></td>
            </tr>

            </tbody>
          </table>
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->

      <div class="row">
        <!-- accepted payments column -->
        <div class="col-xs-6">
         <?php if($data->attached): ?>
          <p class="lead">Adjuntos:</p>
         <!--aqui va la url de a variable-->

        
         <a href="/download/<?php echo e($data->attached->id); ?>" target="_blank" class="">
         	<p class="text-muted well well-sm no-shadow" style="margin-top: 10px;">Descargar Adjunto.
         	<i class="fa fa-paperclip pull-right"></i>
          </p></a>
         <?php endif; ?>

          
        </div>
        <!-- /.col -->
        
        <!-- /.col -->
      </div>
      <!-- /.row -->

      <!-- this row will not appear when printing -->
     
    </section>
												

	

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

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