@extends('layouts.app')
@section('styles')
    <style>
        .navbar,
        aside {
            /*display: none;*/
        }

        .dataTables_wrapper{margin-top: 25px !important;}

    </style>
@endsection
@section('content')

    <h3>
        Listado de Formularios
    </h3>

    <div style="background-color:#fff;">
        <table class="table table-condensed table-data" data-order='[[ 1, "asc" ]]' data-page-length='15'>
            <thead style="border-bottom:2px solid #ddd;">
            <th>Nombre</th>
            <th class="text-center">Acciones</th>
            </thead>
            <tbody>
            @foreach($forms as $form)
                <tr>


                    <td>{{ $form->name }}</td>

                    <td class="text-center">
                        <a href="{{URL::to('/')}}/admin/taskform/{{ $form->id }}/edit"><i class="fa fa-pencil-square-o" aria-hidden="true"></i> &nbsp;Editar</a>
                        &nbsp;&nbsp;&nbsp;

                    </td>
                </tr>
            @endforeach
            </tbody>
        </table>

    </div>
    {{--        {!! $units->render() !!}`--}}


    <br>

    <p class="text-center">
        <a href="{{URL::to('/')}}/admin/unit/create" class="btn btn-primary">
            Nueva Unidad funcional
        </a>
    </p>



@endsection
@section('scripts')

@endsection
