%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/www/admin1/resources/views/clients/files/ |
Upload File : |
<div class="modal-header">
<h5 class="modal-title" id="modelHeading">@lang('app.editFile')</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">×</span></button>
</div>
<div class="modal-body">
<x-form id="update-client-file-data-form">
@method('PUT')
<div class="row">
<div class="col-md-12">
<x-forms.text :fieldLabel="__('modules.projects.fileName')" fieldName="name"
fieldRequired="true" fieldId="name" :fieldValue="$file->name" />
</div>
<div class="col-md-12">
<x-forms.file :fieldLabel="__('modules.projects.uploadFile')" fieldName="file"
fieldRequired="true" fieldId="file" allowedFileExtensions="txt pdf doc xls xlsx docx rtf png jpg jpeg svg" :popover="__('messages.fileFormat.multipleImageFile')" :fieldValue="$file->doc_url" />
</div>
</div>
</x-form>
</div>
<div class="modal-footer">
<x-forms.button-cancel data-dismiss="modal" class="border-0 mr-3">@lang('app.cancel')</x-forms.button-cancel>
<x-forms.button-primary id="submit-document" icon="check">@lang('app.submit')
</x-forms.button-primary>
</div>
<script>
$('body').on('click', '#submit-document', function() {
var url = "{{ route('client-docs.update', $file->id) }}";
$.easyAjax({
url: url,
container: '#update-client-file-data-form',
type: "POST",
file: true,
disableButton: true,
blockUI: true,
buttonSelector: "#submit-document",
data: $('#update-client-file-data-form').serialize(),
success: function(response) {
if (response.status == 'success') {
window.location.reload();
}
}
})
});
init('#update-client-file-data-form');
</script>