2023-08-21 10:22:07 +02:00
|
|
|
@include('modules.script-constants')
|
2023-12-05 12:33:25 +01:00
|
|
|
<script @if (isset($nonce)) nonce="{{ $nonce }}" @endif>
|
|
|
|
|
if (!window.__SYSTEM._routes) {
|
|
|
|
|
window.__SYSTEM._routes = {};
|
|
|
|
|
}
|
2024-05-06 15:50:37 +02:00
|
|
|
window.__SYSTEM._routes.fo = {
|
|
|
|
|
"add-single-optin": "{{ route('fo.add-single-optin') }}"
|
|
|
|
|
};
|
2023-08-21 10:22:07 +02:00
|
|
|
</script>
|
2025-04-18 16:59:57 +02:00
|
|
|
@auth('backend')
|
|
|
|
|
@if ($tenantsGlobal->count())
|
|
|
|
|
<script @if (isset($nonce)) nonce="{{ $nonce }}" @endif>
|
|
|
|
|
window.__SYSTEM._routes.bo = {
|
|
|
|
|
"instant-wins": {
|
|
|
|
|
"generate": "{{ route('bo.instant-win.generate', ['tenant' => \tenant()]) }}"
|
2025-06-25 17:56:24 +02:00
|
|
|
},
|
|
|
|
|
"tenants": {
|
|
|
|
|
"json-paginate": "{{ route('bo.tenants.json-paginate') }}"
|
2025-04-18 16:59:57 +02:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
@endif
|
|
|
|
|
@endauth
|