@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">Editando Rede Social</h4>
                    <p class="text-muted">Editando Rede Social no Sistema</p>
                    <a class="btn btn-outline-primary btn-block d-grid gap-2" type="button" href="{{ route('redes.index') }}"
                        role="button">Ver todas</a>
                </div>
                <div class="card">
                    <div class="card-body">
                        <form action="{{ route('redes.update', $redes->id) }}" method="POST" class="form-horizontal">
                            @method('PUT')
                            @csrf
                            <div class="box box-info">

                                <div class="form-group">
                                    <label class="col-form-label">Nome</label>
                                    <input type="text" name="rede_social_nome" value="{{ $redes->rede_social_nome }}"
                                        class="form-control">
                                </div>

                                <div class="row">
                                    <div class="col-md-6">
                                        <label class="col-form-label">Url</label>
                                        <input type="text" name="rede_social_url" value="{{ $redes->rede_social_url }}"
                                            class="form-control">
                                    </div>

                                    <div class="col-md-6">
                                        <label class="col-form-label">Ícone</label>
                                        <input type="text" name="rede_social_icone"
                                            value="{{ $redes->rede_social_icone }}" class="form-control">
                                    </div>
                                </div>
                                <br>
                                <div class="col-sm-12">
                                    <input type="submit" value="Salvar"
                                        class="btn btn-sm btn-block btn-outline-success w-100">
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
