ldc-le-gaulois-pro/resources/views/bo/modules/script-constants.blade.php

23 lines
748 B
PHP
Raw Normal View History

2023-12-21 18:01:56 +01:00
<script @if (isset($nonce)) nonce="{{ $nonce }}" @endif>
2022-11-29 14:47:07 +01:00
if (!window.__SYSTEM) {
window.__SYSTEM = {};
}
window.__SYSTEM._locale = '{{ app()->getLocale() }}';
window.__SYSTEM._translations = @json(cache(sprintf('translations.%s', app()->getLocale())) ?? []);
2023-12-21 18:01:56 +01:00
if (!window.__SYSTEM._asset) {
window.__SYSTEM._asset = {};
}
if (!window.__SYSTEM._routes) {
2022-11-29 14:47:07 +01:00
window.__SYSTEM._routes = {}
}
window.__SYSTEM._routes['crud-policies'] = {
{{-- upload: '{{ route('crud-policies.upload') }}' --}}
};
window.__SYSTEM._routes.bo = {
tags: {
2022-11-29 14:47:07 +01:00
store: '{{ route('bo.tags.store') }}',
jsonStore: '{{ route('bo.tags.jsonStore') }}'
},
2022-11-29 14:47:07 +01:00
};
</script>