<?php $__env->startSection('title'); ?>
    Trade References
<?php $__env->stopSection(); ?>

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

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

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

<?php echo $__env->make('...partials.nav', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
<h1>Inoxico Researched Report</h1>
<hr>
<h3>Add Trade References</h3>

<?php if($references!=NULL): ?>
<div class="row">
    <div class="small-12 columns">
        <label>Trade References added</label>
        <table width="100%">
            <thead>
            <tr>
                <th width="8%">Name</th>
                <th width="10%">Email</th>
                <th width="10%">Number</th>
            </tr>
            </thead>
            <tbody>
            <?php foreach($references as $reference): ?>
                <tr>
                    <td><?php echo $reference->name; ?></td>
                    <td><?php echo $reference->email; ?></td>
                    <td><?php echo $reference->number; ?></td>
                </tr>
            <?php endforeach; ?>
            </tbody>
        </table>
    </div>
</div>
<?php endif; ?>

<?php echo Form::open(); ?>

<div class="row">
   <div class="large-4 columns">
       <label>Name <small class="red"><?php echo $errors->first('name'); ?></small></label>
       <?php echo Form::text('name'); ?>

   </div>
   <div class="large-4 columns">
      <label>Email <small class="red"><?php echo $errors->first('email'); ?></small></label>
      <?php echo Form::email('email'); ?>

  </div>
  <div class="large-4 columns">
     <label>Number <small class="red"><?php echo $errors->first('number'); ?></small></label>
     <?php echo Form::text('number'); ?>

 </div>
</div>


<button style="margin-left:auto;margin-right:auto;display:block;" class="myButton" type="submit">ADD REFERENCE</button>

<?php echo Form::close(); ?>

<hr>
<a href="/submitInoxicoResearchedReport/<?php echo $id; ?>"><button class="myButton">SUBMIT</button></a>

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

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

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