@extends('admin.layouts.layout')
@section('content')
    <div class="row match-height">
        <div class="col-md-12 col-12">
            <div class="card">
                <div class="card-header">
                    <h4 class="card-title text-primary">Cadastrando Parceiro</h4>
                    <p class="text-muted">Cadastrando Parceiro no Sistema</p>
                    <a class="btn btn-outline-primary btn-block w-100" type="button" href="{{ route('parceiros.index') }}"
                        role="button">Ver todos</a>
                </div>
                <div class="card">
                    <div class="card-body">
                        <form action="{{ route('parceiros.store') }}" method="POST" class="form-horizontal"
                            enctype="multipart/form-data">
                            @csrf
                            <div class="box box-info">

                                <div class="form-group">
                                    <label class="col-form-label">Nome</label>
                                    <input type="text" name="nome" value="{{ old('nome') }}"
                                        class="form-control @error('nome') is-invalid @enderror">
                                </div>
                                <div class="form-group">
                                    <div class="row">
                                        <div class="col-md-8">
                                            <label class="col-form-label">Url</label>
                                            <input type="text" name="url" value="{{ old('url') }}"
                                                class="form-control @error('url') is-invalid @enderror">
                                        </div>
                                        <div class="col-md-3">
                                            <label class="col-form-label">Parceiro ícone</label>
                                            <input type="text" name="icone" value="{{ old('icone') }}"
                                                class="form-control @error('icone') is-invalid @enderror">
                                        </div>

                                        <div class="form-group col-md-1">
                                            <label class="col-form-label">Nova página</label>
                                            <select class="form-control" name="novapagina" value="{{ old('novapagina') }}"
                                                class="form-control @error('novapagina') is-invalid @enderror">
                                                <option value="N">Não</option>
                                                <option value="S">Sim</option>
                                            </select>
                                        </div>
                                    </div>
                                    <br>
                                    <div class="form-group">
                                        <input type="submit" value="Gravar"
                                            class="btn btn-sm btn-block btn-outline-success w-100">
                                    </div>
                                </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
