<?php $__env->startSection('body'); ?>
    <ol class="breadcrumb">
        <li class="active">Puc Food</li>
    </ol>

    <div class="row" style="padding:8px 15px;">
        <?php echo Form::open(['action' => 'PucFoodController@store', 'class' => 'form-inline']); ?>


        <div class="form-group">
            <?php echo Form::label('name', 'Name'); ?>

            <?php echo Form::text('name', null, ['class' => 'form-control']); ?>

        </div>

        <div class="form-group">
            <?php echo Form::label('type', 'Type'); ?>

            <?php echo Form::select('type', ['good' => 'good', 'bad' => 'bad', 'neutral' => 'neutral'],
                'good', ['class' => 'form-control']); ?>

        </div>

        <button type="submit" class="btn btn-default">Create New Food</button>
        <a href="<?php echo e(action('PucFoodController@edit')); ?>" class="btn btn-primary pull-right">Edit</a>
    </div>


    <table class="table table-hover">
        <tr>
            <th class="col-md-3" style="text-align:center">Food ID</th>
            <th class="col-md-5" style="text-align:center">Name</th>
            <th class="col-md-4" style="text-align:center">Type</th>
        </tr>

        <?php foreach($foods as $food): ?>
            <tr>
                <td class="col-md-3" style="text-align:center"><?php echo e($food->id); ?></td>
                <td class="col-md-5" style="text-align:center"><?php echo e($food->name); ?></td>
                <td class="col-md-4" style="text-align:center"><?php echo e($food->type); ?></td>
            </tr>
        <?php endforeach; ?>

    </table>


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



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

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