@extends('layouts.config_dashboard.app')

@section('content')
    <div class="container-fluid mt-4 ">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <form action="{{ route('TypeRendezVous.update', $type->id) }}" method="post">
                        @csrf
                        @method('PUT')
                        <div class="card-body mt-1">
                            <div class="form-group mb-1">
                                <label for="type">Type Rendez Vous</label>
                                <input type="text" name="type" value="{{ $type->type }}" required
                                    class="form-control @error('type') is-invalid @enderror">
                                @error('type')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class="form-group mb-1">
                                <label for="type">Avec la Direction</label>
                                <input type="checkbox" name="direction" @if ($type->for_direction) checked @endif
                                    class="form-control">

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