@extends('layouts.app')
@section('styles')
<style>
    label {
    display: block;
    }

</style>
@endsection
@section('content')
    @if(session()->has('message'))
        <div class="alert alert-success alert-dismissable">
            <a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>

            {{ session()->get('message') }}
        </div>
    @endif
    @if ($errors->any())
        <div class="alert alert-danger">
            <ul>
                @foreach ($errors->all() as $error)
                    <li>{{ $error }}</li>
                @endforeach
            </ul>
        </div>
    @endif
    <h3>
        {{ __('s.add_pipeline') }}

    </h3>
    <form action="{{URL::to('/')}}/admin/pipeline/store" method="POST">
        <div class="form-group">
            <label for="name">{{__('s.name')}}</label>
            <input type="text" class="form-control-file" name="name" value="{{ old('name') }}">
            <small id="" class="form-text text-muted"></small>
        </div>
        <div class="form-group">

            <label for="name">{{__('s.slug')}}</label>

            <input type="text" name="slug" {{ old('slug') }}>
        </div>

        <div class="form-group">

            <label for="name">Nombre Público</label>

            <input type="text" name="public_name" {{ old('public_name') }}>
        </div>

        <div class="form-group">

            <label for="name">{{__('s.description')}}</label>

            <textarea name="description" id="" cols="30" rows="10">{{ old('description') }}</textarea>
        </div>

        <div class="form-group">

            <label for="">Pública</label>

            <input type="checkbox" value="1" name="public" {{ old('public') == '1' ? 'checked="checked"' : '' }}>
        </div>
        <div class="form-group">

            <label for="">Oculta</label>

            <input type="checkbox" value="1" name="hidden" {{ old('hidden') == '1' ? 'checked="checked"' : '' }}>
        </div>

        <div class="form-group">

            <label for="">Obsoleta</label>

            <input type="checkbox" value="1" name="deprecated" {{ old('deprecated') == '1' ? 'checked="checked"' : '' }}>
        </div>



        <input type="hidden" name="_token" value="{{ csrf_token() }}">

        <input type="button" onclick="form.submit()" class="btn btn-default " value="{{__('s.send')}}" > 

    </form>




@endsection
@section('scripts')


@endsection
