The jquery script works if you put it out of the foreach, but qd put it inside it does not work and does not show any errors on the console:
<div class="box-indicated">
@foreach($list_indicated as $indicated)
<label class="checkbox-inline pull-right">
<input type="checkbox" {{ $indicated['is_active'] == '1' ? "checked" : null }} data-toggle="toggle" name="deactivate{{$indicated['id']}}" id="deactivate{{$indicated['id']}}" data-width="75" data-height="25" data-offstyle="danger" data-on="Ativo" data-off="Inativo" class="email_repass_created">
</label>>
<script src="https://code.jquery.com/jquery-1.12.4.min.js"></script><script>jQuery('#deactivate{{$indicated['id']}}').change(function(){swal({title:'Aviso',html:"Dados atualizados com sucesso",
confirmButtonText: 'OK',
confirmButtonColor: '#55a07f',
allowOutsideClick: false,
type: 'success'
})
console.log('deactivate');
})
</script>
@endforeach