@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('SMS.update',$sms->id) }}" method="post">
                            @csrf
                            @method('PUT')
                            <div class="form-group mb-1">
                                <label for="step">Etape :</label>
                                <input type="text" name="" readonly value="{{ $sms->step->step }}" required class="form-control ">

                            </div>
                            <div class="form-group mb-1">
                                <label for="message">Message :</label>
                                <input type="text" name="message" value="{{ $sms->message }}" required class="form-control @error('message') is-invalid @enderror">
                                @error('message')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>

                            <div class="modal-footer">
                                <button type="submit" class="btn btn-success">Modifier</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
