@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 mt-1">
                        <form action="{{ route('Operation.update',$operation->id) }}" method="post">
                            @csrf
                            @method('PUT')
                                <div class="form-group mb-1">
                                    <label for="operation">Type de operation</label>
                                    <input type="text" name="operation" value="{{ $operation->operation }}" required
                                        class="form-control @error('operation') is-invalid @enderror">
                                    @error('operation')
                                        <span class="invalid-feedback" role="alert">
                                            <strong>{{ $message }}</strong>
                                        </span>
                                    @enderror
                                </div>
                            </div>
                            <div class="modal-footer">
                                <button type="submit" class="btn btn-primary">Modifier</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

@endsection
