@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('Demande.store') }}" method="post">
                            @csrf

                            <div class=" form-group mb-3">
                                <label for="simpleinput" class="form-label">Motif de Demande</label>
                                <textarea class="form-control @error('company') is-invalid  @enderror" id="motif" name="motif"
                                    value="{{ old('motif') }}" cols="30" rows="10"></textarea>
                                @error('motif')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <input type="hidden" name="dossier_id" value="{{ $dossier_id }}">
                            <div class="mr-3 mt-3">
                                <button class="btn btn-primary" type="submit">Créer</button>
                            </div>
                        </form>
                    </div>
                </div>

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