@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('Currency.update',$currency->id) }}" method="post">
                            @method('PUT')
                            @csrf

                            <div class="form-group mb-3">
                                <label for="simpleinput" class="form-label">Devise *:</label>
                                <input type="text"
                                 id="simpleinput" value="{{ $currency->name }}" 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">Symbole *:</label>
                                <input type="text"
                                 id="simpleinput" name="symbole" value="{{ $currency->symbole }}"
                                    class="form-control @error('symbole') is-invalid  @enderror">
                                @error('symbole')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>

                            <div class="mr-3">
                                <button class="btn btn-success" type="submit">Modifier</button>
                            </div>
                        </form>
                    </div>
                </div>

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