Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
@php $gridDirection = $getGridDirection() ?? 'column'; $hasInlineLabel = $hasInlin..
Decoded Output download
<? @php
$gridDirection = $getGridDirection() ?? 'column';
$hasInlineLabel = $hasInlineLabel();
$id = $getId();
$isDisabled = $isDisabled();
$isInline = $isInline();
$isMultiple = $isMultiple();
$statePath = $getStatePath();
@endphp
<x-dynamic-component
:component="$getFieldWrapperView()"
:field="$field"
:has-inline-label="$hasInlineLabel"
>
<x-slot
name="label"
@class([
'sm:pt-1.5' => $hasInlineLabel,
])
>
{{ $getLabel() }}
</x-slot>
<x-filament::grid
:default="$getColumns('default')"
:sm="$getColumns('sm')"
:md="$getColumns('md')"
:lg="$getColumns('lg')"
:xl="$getColumns('xl')"
:two-xl="$getColumns('2xl')"
:is-grid="! $isInline"
:direction="$gridDirection"
:attributes="
\Filament\Support\prepare_inherited_attributes($attributes)
->merge($getExtraAttributes(), escape: false)
->class([
'fi-fo-radio gap-3',
'-mt-3' => (! $isInline) && ($gridDirection === 'column'),
'flex flex-wrap' => $isInline,
])
"
>
@foreach ($getOptions() as $value => $label)
@php
$inputId = "{$id}-{$value}";
$shouldOptionBeDisabled = $isDisabled || $isOptionDisabled($value, $label);
@endphp
<div
@class([
'break-inside-avoid pt-3' => (! $isInline) && ($gridDirection === 'column'),
])
>
<input
@disabled($shouldOptionBeDisabled)
id="{{ $inputId }}"
@if (! $isMultiple)
name="{{ $id }}"
@endif
type="{{ $isMultiple ? 'checkbox' : 'radio' }}"
value="{{ $value }}"
wire:loading.attr="disabled"
{{ $applyStateBindingModifiers('wire:model') }}="{{ $statePath }}"
{{ $getExtraInputAttributeBag()->class(['peer pointer-events-none absolute opacity-0']) }}
/>
<x-filament::button
:color="$getColor($value)"
:disabled="$shouldOptionBeDisabled"
:for="$inputId"
:icon="$getIcon($value)"
tag="label"
>
{{ $label }}
</x-filament::button>
</div>
@endforeach
</x-filament::grid>
</x-dynamic-component>
?>
Did this file decode correctly?
Original Code
@php
$gridDirection = $getGridDirection() ?? 'column';
$hasInlineLabel = $hasInlineLabel();
$id = $getId();
$isDisabled = $isDisabled();
$isInline = $isInline();
$isMultiple = $isMultiple();
$statePath = $getStatePath();
@endphp
<x-dynamic-component
:component="$getFieldWrapperView()"
:field="$field"
:has-inline-label="$hasInlineLabel"
>
<x-slot
name="label"
@class([
'sm:pt-1.5' => $hasInlineLabel,
])
>
{{ $getLabel() }}
</x-slot>
<x-filament::grid
:default="$getColumns('default')"
:sm="$getColumns('sm')"
:md="$getColumns('md')"
:lg="$getColumns('lg')"
:xl="$getColumns('xl')"
:two-xl="$getColumns('2xl')"
:is-grid="! $isInline"
:direction="$gridDirection"
:attributes="
\Filament\Support\prepare_inherited_attributes($attributes)
->merge($getExtraAttributes(), escape: false)
->class([
'fi-fo-radio gap-3',
'-mt-3' => (! $isInline) && ($gridDirection === 'column'),
'flex flex-wrap' => $isInline,
])
"
>
@foreach ($getOptions() as $value => $label)
@php
$inputId = "{$id}-{$value}";
$shouldOptionBeDisabled = $isDisabled || $isOptionDisabled($value, $label);
@endphp
<div
@class([
'break-inside-avoid pt-3' => (! $isInline) && ($gridDirection === 'column'),
])
>
<input
@disabled($shouldOptionBeDisabled)
id="{{ $inputId }}"
@if (! $isMultiple)
name="{{ $id }}"
@endif
type="{{ $isMultiple ? 'checkbox' : 'radio' }}"
value="{{ $value }}"
wire:loading.attr="disabled"
{{ $applyStateBindingModifiers('wire:model') }}="{{ $statePath }}"
{{ $getExtraInputAttributeBag()->class(['peer pointer-events-none absolute opacity-0']) }}
/>
<x-filament::button
:color="$getColor($value)"
:disabled="$shouldOptionBeDisabled"
:for="$inputId"
:icon="$getIcon($value)"
tag="label"
>
{{ $label }}
</x-filament::button>
</div>
@endforeach
</x-filament::grid>
</x-dynamic-component>
Function Calls
None |
Stats
MD5 | 6a91bf8017797ef4b9c076bc60729930 |
Eval Count | 0 |
Decode Time | 118 ms |