@extends('layouts.config_dashboard.app')

@section('content')
    <div class="container-fluid mt-2 ">
        <div class="row">
            <div class="page-title-box">
                <h2 class="page-title text-dark">
                     Frais :
                </h2>
            </div>
        </div>
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-body mt-1">
                        <form action="{{ route('Payment.store') }}" method="post">
                            @csrf

                            <input type="hidden" name="dossier_id" value="{{ $dossier->id }}">
                            <div class="form-group mb-1">
                                <label for="frais_deplacement">Frais Deplacement</label>
                                <input type="number" name="frais_deplacement"
                                    class="form-control @error('frais_deplacement') is-invalid @enderror">
                                @error('frais_deplacement')

                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class="form-group mb-1">
                                <label for="frais_sejour">Frais Sejour</label>
                                <input type="number" name="frais_sejour"
                                    class="form-control @error('frais_sejour') is-invalid @enderror">
                                @error('frais_sejour')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                            <div class="form-group mb-1">
                                <label for="frais_divers">Frais Divers</label>
                                <input type="number" name="frais_divers"
                                    class="form-control @error('frais_divers') is-invalid @enderror">
                                @error('frais_divers')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>


                    </div>
                    <div class="modal-footer">
                        <button type="submit" class="btn btn-primary">Créer</button>
                    </div>
                    </form>

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