1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-24 15:27:43 +01:00
2022-01-25 12:53:15 +01:00

15 lines
442 B
PHP

@php
/** @var string $translations */
$translations = cache('translations_' . app()->getLocale());
/** @var \Illuminate\Support\Collection $modules */
@endphp
<script>
window.importPath = '{{Str::contains(vite_asset(''), config('vite.dev_url')) ? config('vite.dev_url') : '.'}}';
window.modules = @js($modules->pluck('modules')->collapse()->all());
window.translations = @js($translations);
</script>
@routes
@vite('app')