28 lines
972 B
PHP
28 lines
972 B
PHP
@if (isset($data))
|
|
<script>
|
|
window.filamentData = @js($data)
|
|
</script>
|
|
@endif
|
|
|
|
@foreach ($assets as $asset)
|
|
@if (! $asset->isLoadedOnRequest())
|
|
@php
|
|
$skipNotificationScript = $asset instanceof \Filament\Support\Assets\Js
|
|
&& $asset->getPackage() === 'filament/notifications'
|
|
&& $asset->getId() === 'notifications';
|
|
@endphp
|
|
|
|
@if (! $skipNotificationScript)
|
|
{{ $asset->getHtml() }}
|
|
@endif
|
|
@endif
|
|
@endforeach
|
|
|
|
<style>
|
|
:root {
|
|
@foreach ($cssVariables ?? [] as $cssVariableName => $cssVariableValue) --{{ $cssVariableName }}:{{ $cssVariableValue }}; @endforeach
|
|
}
|
|
|
|
@foreach ($customColors ?? [] as $customColorName => $customColorShades) .fi-color-{{ $customColorName }} { @foreach ($customColorShades as $customColorShade) --color-{{ $customColorShade }}:var(--{{ $customColorName }}-{{ $customColorShade }}); @endforeach } @endforeach
|
|
</style>
|