@extends('layouts.layout-2')

@section('content')

    @if ($errors->any())
        <div class="row">
            <div class="col-sm-12">
                <div class="alert alert-danger">
                    <ul>
                        @foreach ($errors->all() as $error)
                            <li>{{ $error }}</li>
                        @endforeach
                    </ul>
                </div>
            </div>
        </div>
    @endif


    <h4 class="font-weight-bold mb-4">
        Content Tools: Links
    </h4>


    <div class="card mb-4">

        <div class="card-body">
            <!-- Controls -->
            {!! Form::open(['url' => url()->current(), 'class' => '']) !!}
            <div class="form-group mb-1">
                <label class="form-label" for="description">Description</label>
                {{ Form::textarea('text', $text,  array('class'=>'form-control', 'rows'=>20)) }}
            </div>
            <button type="submit" class="btn btn-primary"><i class="ion"></i> action</button>

            {!! Form::close() !!}
        </div>

        @if(count($values)>0)
            <div class="card-body">
                <!-- Controls -->
                @foreach($values as $value)
                    <pre>{{$value}}</pre>
                @endforeach
            </div>
        @endif
    </div>

@endsection

