@extends('layouts.config_dashboard.app')

@section('content')
    <div class="container-fluid mt-4">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-body">
                        <form action="{{ route('Brand.update',$brand->id) }}" method="post">
                            @csrf
                            @method('PUT')
                            <div class=" form-group mb-3">
                                <label for="simpleinput" class="form-label">Marque</label>
                                <input type="text" id="simpleinput" name="brand" value="{{ $brand->brand }}" required autofocus
                                    class="form-control @error('brand') is-invalid  @enderror">
                                @error('brand')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class="mr-3">
                                <button class="btn btn-primary" type="submit">Modifier</button>
                            </div>
                        </form>
                    </div>
                </div>

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