@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('Configuration.store') }}" method="post">
                            @csrf
                            <div class=" form-group mb-3">
                                <label for="simpleinput" class="form-label">Nom</label>
                                <input type="text" id="simpleinput" name="name"
                                    class="form-control @error('name') is-invalid  @enderror">
                                @error('name')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class=" form-group mb-3">
                                <label for="simpleinput" class="form-label">Description :</label>
                                <textarea class="form-control @error('description') is-invalid  @enderror" name="description" id="description"
                                    cols="30" rows="5"></textarea>
                                @error('description')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class=" form-group mb-3">
                                <label for="simpleinput" class="form-label">Logo :</label>
                                <input type="file" id="simpleinput" name="logo"
                                    class="form-control @error('logo') is-invalid  @enderror">
                                @error('logo')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>

                            <div class="mr-3">
                                <button class="btn btn-primary" type="submit">Créer</button>
                            </div>
                        </form>
                    </div>
                </div>

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