function sendData() {
$.ajax({
url: '/city-store-params/edit',
- type: 'GET',
+ type: 'POST',
data: {
address_city: $('#address_city').val(),
address_region: $('#address_region').val(),
territorial_manager: $('#territorial_manager').val(),
bush_chef_florist: $('#bush_chef_florist').val(),
},
+ headers: {
+ 'X-CSRF-Token': $('meta[name="csrf-token"]').attr('content')
+ },
success: function (response) {
if (response?.success) {
$('#selected-store').html(Object.entries(response.data).map(([key, value]) =>