Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
@props([ 'actions' => [], 'color' => 'gray', 'icon' => null, 'tooltip' => ..
Decoded Output download
<? @props([
'actions' => [],
'color' => 'gray',
'icon' => null,
'tooltip' => null,
])
<div
{{
$attributes->class([
'fi-in-entry-wrp-hint flex items-center gap-x-3 text-sm',
])
}}
>
@if (! \Filament\Support\is_slot_empty($slot))
<span
@class([
'fi-in-entry-wrp-hint-label',
match ($color) {
'gray' => 'text-gray-500',
default => 'fi-color-custom text-custom-600 dark:text-custom-400',
},
is_string($color) ? "fi-color-{$color}" : null,
])
@style([
\Filament\Support\get_color_css_variables(
$color,
shades: [400, 600],
alias: 'infolists::components.entry-wrapper.hint.label',
),
])
>
{{ $slot }}
</span>
@endif
@if ($icon)
<x-filament::icon
x-data="{}"
:icon="$icon"
:x-tooltip="filled($tooltip) ? '{ content: ' . \Illuminate\Support\Js::from($tooltip) . ', theme: $store.theme }' : null"
@class([
'fi-in-entry-wrp-hint-icon h-5 w-5',
match ($color) {
'gray' => 'text-gray-400 dark:text-gray-500',
default => 'text-custom-500 dark:text-custom-400',
},
])
@style([
\Filament\Support\get_color_css_variables(
$color,
shades: [400, 500],
alias: 'infolists::components.entry-wrapper.hint.icon',
),
])
/>
@endif
@if (count($actions))
<div class="fi-in-entry-wrp-hint-action flex items-center gap-3">
@foreach ($actions as $action)
{{ $action }}
@endforeach
</div>
@endif
</div>
?>
Did this file decode correctly?
Original Code
@props([
'actions' => [],
'color' => 'gray',
'icon' => null,
'tooltip' => null,
])
<div
{{
$attributes->class([
'fi-in-entry-wrp-hint flex items-center gap-x-3 text-sm',
])
}}
>
@if (! \Filament\Support\is_slot_empty($slot))
<span
@class([
'fi-in-entry-wrp-hint-label',
match ($color) {
'gray' => 'text-gray-500',
default => 'fi-color-custom text-custom-600 dark:text-custom-400',
},
is_string($color) ? "fi-color-{$color}" : null,
])
@style([
\Filament\Support\get_color_css_variables(
$color,
shades: [400, 600],
alias: 'infolists::components.entry-wrapper.hint.label',
),
])
>
{{ $slot }}
</span>
@endif
@if ($icon)
<x-filament::icon
x-data="{}"
:icon="$icon"
:x-tooltip="filled($tooltip) ? '{ content: ' . \Illuminate\Support\Js::from($tooltip) . ', theme: $store.theme }' : null"
@class([
'fi-in-entry-wrp-hint-icon h-5 w-5',
match ($color) {
'gray' => 'text-gray-400 dark:text-gray-500',
default => 'text-custom-500 dark:text-custom-400',
},
])
@style([
\Filament\Support\get_color_css_variables(
$color,
shades: [400, 500],
alias: 'infolists::components.entry-wrapper.hint.icon',
),
])
/>
@endif
@if (count($actions))
<div class="fi-in-entry-wrp-hint-action flex items-center gap-3">
@foreach ($actions as $action)
{{ $action }}
@endforeach
</div>
@endif
</div>
Function Calls
None |
Stats
MD5 | 2c266b5774f6ac9099305b1b0df42166 |
Eval Count | 0 |
Decode Time | 95 ms |