<?php $__env->startSection('content'); ?>
    <div class="content-wrapper">
        <section class="content-header">
            <h1>
                <?php echo e(trans('general.boats')); ?> Eliminadas
            </h1>
        </section>

        <section class="content">
            <div class="row">
                <div class="col-md-12">
                    <?php echo $__env->make('alert.success', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                    <?php echo $__env->make('alert.errorlist', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>
                    <a href="<?php echo e(asset('/boats')); ?>" type="button" class="btn btn-default btn-flat margin"> Embarcaciones</a>

                    <div class="box box-success">
                        <div class="box-header">
                            <h3 class="box-title"><?php echo e(trans('general.lista')); ?> <?php echo e(trans('general.boats')); ?></h3>
                            <div class="box-tools">
                                <?php echo Form::open(['url' => '/boats/search', 'method' => 'get']); ?>

                                <div class="input-group input-group-sm" style="width: 150px;">
                                    <?php echo Form::text('term', null, ['class' => 'form-control pull-right', 'placeholder' => 'Search']); ?>

                                    <div class="input-group-btn">
                                        <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
                                    </div>
                                </div>
                                <?php echo Form::close(); ?>

                            </div>
                        </div>
                        <div class="box-body table-responsive no-padding">
                            <table class="table table-hover">
                                <tr>
                                    <th>ID</th>
                                    <th><?php echo e(trans('general.boat')); ?></th>
                                    <th><?php echo e(trans('general.boatnumber')); ?></th>
                                    <th><?php echo e(trans('general.tipo')); ?></th>
                                    <th><?php echo e(trans('general.port')); ?></th>

                                    <?php if(Auth::user()->role->role_permission('edit_boat') || Auth::user()->role->role_permission('delete_boat')): ?>
                                        <th>Action</th>
                                    <?php endif; ?>
                                </tr>
                                <?php foreach($boats as $boat): ?>
                                    <tr>
                                        <td><?php echo e($boat->id); ?></td>
                                        <td><?php echo e($boat->name); ?></td>
                                        <td><?php echo e($boat->number); ?></td>
                                        <td><?php echo e($boat->boattype->name); ?></td>
                                        <td><?php echo e($boat->port ? $boat->port->name :''); ?></td>

                                        <?php if(Auth::user()->role->role_permission('edit_boat') || Auth::user()->role->role_permission('delete_boat')): ?>
                                            <td>
                                                <div class="btn-group">
                                                    <?php if(Auth::user()->role->role_permission('edit_boat')): ?>
                                                        <a href="<?php echo e(asset('boats/deleted/'.$boat->id.'/restore')); ?>" title="Restore" class="btn btn-default btn-sm">Restore</a>
                                                    <?php endif; ?>
                                                </div>
                                            </td>
                                        <?php endif; ?>
                                    </tr>
                                <?php endforeach; ?>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make(Auth::check() && Auth::user()->role->layout == 1 ? 'layouts.admin' : 'layouts.employee', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>