main
Ilham Wara Nugroho 2026-06-12 14:11:42 +07:00
parent 66f8b98f66
commit cbd6d5d444
1 changed files with 4 additions and 4 deletions

View File

@ -125,7 +125,7 @@
$('#metadataContent').hide();
$('#isLoadMetadata').show();
$.ajax({
url: '{{ route('modules.form.metadata.index', ['form_id' => $instansi === 'all' ? 0 : $activityForm->id ?? 0]) }}',
url: '{{ route('modules.form.metadata.index', ['form_id' => @$instansi === 'all' ? 0 : @$activityForm->id ?? 0]) }}',
type: 'GET',
success: function(data) {
$('#metadataContent').html(data);
@ -149,7 +149,7 @@
$('#formContent').hide();
$('#isLoadForm').show();
$.ajax({
url: '{{ route('modules.form.create', ['sector' => $form->sector, 'code' => $form->code]) }}',
url: '{{ route('modules.form.create', ['sector' => @$form->sector, 'code' => @$form->code]) }}',
type: 'GET',
success: function(data) {
$('#formContent').html(data);
@ -180,7 +180,7 @@
scrollX: true,
searchDelay: 1000,
ajax: {
url: '{{ route('modules.form.aktivitasUser', ['form_id' => $instansi === 'all' ? 0 : $activityForm->id ?? 0]) }}',
url: '{{ route('modules.form.aktivitasUser', ['form_id' => @$instansi === 'all' ? 0 : @$activityForm->id ?? 0]) }}',
type: 'GET',
dataSrc: 'data'
},
@ -220,7 +220,7 @@
}).then((result) => {
if (result.isConfirmed) {
$.ajax({
url: '{{ route('modules.form.metadata.destroy', ':id') }}'.replace(':id', metadataId),
url: '{{ route("modules.form.metadata.destroy", "":id") }}'.replace(':id', metadataId),
type: 'POST',
data: {
_token: '{{ csrf_token() }}',