%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/public_html/admin1/resources/views/cities/ajax/ |
Upload File : |
<div class="row">
<div class="col-sm-12">
<x-form id="save-city-data-form" method="PUT">
<div class="add-client bg-white rounded">
<h4 class="mb-0 p-20 f-21 font-weight-normal text-capitalize border-bottom-grey">
@lang('app.cityDetails')</h4>
<div class="row p-20">
<div class="col-lg-4 col-md-6">
<x-forms.text :fieldLabel="__('app.name')" fieldName="name"
fieldId="name" :fieldPlaceholder="__('placeholders.name')" fieldRequired="true"
:fieldValue="$city->name" />
</div>
<div class="col-lg-4 col-md-6">
<x-forms.text :fieldLabel="__('keyword')" fieldName="keyword"
fieldId="keyword" :fieldPlaceholder="__('keyword')" :fieldValue="$city->keyword" />
</div>
<div class="col-lg-4 col-md-6">
<x-forms.text :fieldLabel="__('content')" fieldName="content"
fieldId="content" :fieldPlaceholder="__('content')" :fieldValue="$city->content" />
</div>
</div>
<x-form-actions>
<x-forms.button-primary id="save-city-form" class="mr-3" icon="check">@lang('app.save')
</x-forms.button-primary>
<x-forms.button-cancel :link="route('cities.index')" class="border-0">@lang('app.cancel')
</x-forms.button-cancel>
</x-form-actions>
</div>
</x-form>
</div>
</div>
<script>
$(document).ready(function() {
$('#save-city-form').click(function() {
const url = "{{ route('cities.update', [$city->id]) }}";
$.easyAjax({
url: url,
container: '#save-lead-data-form',
type: "POST",
disableButton: true,
blockUI: true,
buttonSelector: "#save-city-form",
data: $('#save-city-data-form').serialize(),
success: function(response) {
window.location.href = response.redirectUrl;
}
});
});
});
</script>