Hello, I am sending a form that is in a modal within a page, but the modal simply does not send, it is inside a page that is a return of an ajax (a search in the case), I do not know if it influences .
<div class="modal fade" id="finalizarMonitoramento{{$m->ID_CD_INTERNACAO}}" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<form action="{{url('monitoramento/finalizaMonitoramento')}}" method="post">
<input type="hidden" value="{{$m->ID_CD_MONITORAMENTO}}" id="id_mot" name="id_mot">
@method('PUT')
@csrf
<input type="submit" class="btn btn-primary" value="enviar">
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
This is the modal, when I send simply nothing happens. Any tips?
This is the route:
Route::put('/finalizaMonitoramento','MonitoramentoController@finalizaMonitoramento');