<?php $__env->startSection('css'); ?>
<?php echo HTML::style('css/back/panel.css'); ?>

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

<?php $__env->startSection('body'); ?>
<?php echo HTML::script('js/back/custom.js'); ?>

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

<?php $__env->startSection('content'); ?>
<h3>Edición de financiador:  <span style="color: #0069ad"><?php echo e($funder->getName()); ?></h3>
<hr>
<div style="padding-top: 20px; padding-bottom: 20px;" class="col-md-6">
   <h4>Datos Nuevos</h4>
    <?php echo Form::open(array('route'=>'panel/social/funders/editPost','method'=>'POST', 'files'=>true)); ?>

    <input type="hidden" name="id" id="id" value="<?php echo e($funder->getId()); ?>">
      <div class="form-group">
         <label class="control-label" for="name">Nombre</label>
         <input required="true" type="text" class="form-control"  name="name" id="name" value="<?php echo e($funder->getName()); ?>">
      </div>
      <div class="form-group">
         <label class="control-label" for="alias">Alias (Se rellena automáticamente al escribir en el campo nombre)</label>
         <input readonly="true"  type="text" class="form-control" name="alias" id="alias" value="<?php echo e($funder->getAlias()); ?>">
      </div>
      <div class="form-group">
         <label class="control-label" for="url">Url</label>
         <input type="text" class="form-control" name="url" id="url" value="<?php echo e($funder->getUrl()); ?>">
      </div>
      <div class="form-group">
         <label class="control-label" for="image">Imagen (El campo vacío mantiene la antigua foto)</label>
         <input type="file" class="form-control" name="image"  value="<?php echo e($funder->getImage()); ?>" id="image">
      </div>
      <button type="submit" class="btn btn-default">Aceptar</button>
   </form>
</div>
<div class="col-md-6 well">
   <h4>Datos anteriores</h4>
   <form role="form">
      <div class="form-group">
         <label for="name">Nombre</label>
         <input disabled="true" type="text" class="form-control disabled" value="<?php echo e($funder->getName()); ?>">
      </div>
      <div class="form-group">
         <label for="alias">Alias</label>
         <input disabled="true" type="text" class="form-control disabled" value="<?php echo e($funder->getAlias()); ?>">
      </div>
      <div class="form-group">
         <label for="url">Url</label>
         <input disabled="true"  type="text" class="form-control disabled" value="<?php echo e($funder->getUrl()); ?>">
      </div>
      <div class="form-group">
         <label for="image">Imagen</label>
         <img style="max-height: 100px;" class="image-for-viewer" src="<?php echo e(asset($funder->getImage())); ?>">
      </div>
   </form>
</div>
<?php $__env->stopSection(); ?>
<?php $__env->startSection('scripts'); ?>
   <?php echo Minify::javascript('/js/back/form.js')->withFullUrl(); ?>

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