@extends('adminlte::page')

@section('title', 'Filiais')

@section('content_header')
  
      <h1>Filial Número <td> {{ $filial->id }} </td></h1>

   

@stop

@section('content')
<form action="{{route('filiais.update')}}" method="post">
    @csrf

    <input type="hidden" name="id" value="{{ $filial->id}}"  >
        {{-- Name field --}}
        <div class="input-group mb-3">
            <input type="text" name="descricao" class="form-control"
                   value="{{ $filial->descricao}}" autofocus>
        </div>
		
       {{-- Email field --}}
        <div class="input-group mb-3">
            <input type="number" name="cnpj" class="form-control"
                   value="{{ $filial->cnpj }}">
        </div>
        <div class="input-group mb-3">
        <select class="form-control" name="uf">
            @foreach($filiais2 as $estado)
            <option value="{{$estado->filialid}}"></option>
            @endforeach
        </select>
    </div>
        {{-- Register button --}}
        <button type="submit" class="btn btn-block {{ config('adminlte.classes_auth_btn', 'btn-flat btn-primary') }}">
            <span class="fas fa-plus"></span>
       
        </button>
    </form>

@stop

@section('css')
    <link rel="stylesheet" href="/css/admin_custom.css">
@stop