@extends('modelo.modelo')

@section('content')
<div class="block-body">
    <a href="{{ url('funcionario/index') }}" title="Back"><button class="btn btn-warning  btn-hero "><i class="fa fa-arrow-left" aria-hidden="true"></i> Voltar</button></a>
                <a href="{{ url('/telegram') }}" title="Back"><button class="btn btn-info  btn-hero ">Tutorial ID Telegram</button></a>

    <br />
    <br />
    <div class="container ">
        <div class="row">
            <div class="col-md-12 p-5">

                <div class="block p-5">

                    <div class="h3 text-center">Cadastrar funcionário</div>

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

                        <form method="POST" action="{{ url('/funcionario/store') }}" accept-charset="UTF-8"
                            class="form-horizontal" enctype="multipart/form-data">
                            {{ csrf_field() }}
                            @include ('funcionario.form', ['formMode' => 'create'])
                        </div>
                        </div>

                        </form>


                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
