Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<div @attributes([ 'with-validation-colors' => $withValidationColors, ..

Decoded Output download

<?  <div
    @attributes([
        'with-validation-colors' => $withValidationColors,
        'group-invalidated'      => $invalidated,
        'aria-disabled'          => $disabled,
        'aria-readonly'          => $readonly,
    ])
    {{ $attributes
        ->merge(['form-wrapper' => $id ?: 'true'])
        ->class([
            'aria-disabled:pointer-events-none aria-disabled:select-none',
            'aria-disabled:opacity-60 aria-disabled:cursor-not-allowed',
            'aria-readonly:pointer-events-none aria-readonly:select-none',
            'relative',
        ])
        ->only(['wire:key', 'form-wrapper', 'x-data', 'class', 'x-props']) }}
>
    <div class="flex items-center gap-x-2">
        @if ($leftLabel)
            <x-wireui-wrapper::form.label
                :attributes="WireUi::extractAttributes($leftLabel)"
                :for="$id"
            >
                {{ $leftLabel }}
            </x-wireui-wrapper::form.label>
        @endif

        {{ $slot }}

        @if ($label)
            <x-wireui-wrapper::form.label
                :attributes="WireUi::extractAttributes($label)"
                :for="$id"
            >
                {{ $label }}
            </x-wireui-wrapper::form.label>
        @endif
    </div>

    @if ($description && !$invalidated)
        <x-wireui-wrapper::form.description
            class="mt-2"
            :for="$id"
            name="form.wrapper.description"
        >
            {{ $description }}
        </x-wireui-wrapper::form.description>
    @elseif (!$errorless && $invalidated)
        <x-wireui-wrapper::form.error
            class="mt-2"
            :for="$id"
            :message="$errors->first($name)"
            name="form.wrapper.error"
        />
    @endif
</div>
 ?>

Did this file decode correctly?

Original Code

<div
    @attributes([
        'with-validation-colors' => $withValidationColors,
        'group-invalidated'      => $invalidated,
        'aria-disabled'          => $disabled,
        'aria-readonly'          => $readonly,
    ])
    {{ $attributes
        ->merge(['form-wrapper' => $id ?: 'true'])
        ->class([
            'aria-disabled:pointer-events-none aria-disabled:select-none',
            'aria-disabled:opacity-60 aria-disabled:cursor-not-allowed',
            'aria-readonly:pointer-events-none aria-readonly:select-none',
            'relative',
        ])
        ->only(['wire:key', 'form-wrapper', 'x-data', 'class', 'x-props']) }}
>
    <div class="flex items-center gap-x-2">
        @if ($leftLabel)
            <x-wireui-wrapper::form.label
                :attributes="WireUi::extractAttributes($leftLabel)"
                :for="$id"
            >
                {{ $leftLabel }}
            </x-wireui-wrapper::form.label>
        @endif

        {{ $slot }}

        @if ($label)
            <x-wireui-wrapper::form.label
                :attributes="WireUi::extractAttributes($label)"
                :for="$id"
            >
                {{ $label }}
            </x-wireui-wrapper::form.label>
        @endif
    </div>

    @if ($description && !$invalidated)
        <x-wireui-wrapper::form.description
            class="mt-2"
            :for="$id"
            name="form.wrapper.description"
        >
            {{ $description }}
        </x-wireui-wrapper::form.description>
    @elseif (!$errorless && $invalidated)
        <x-wireui-wrapper::form.error
            class="mt-2"
            :for="$id"
            :message="$errors->first($name)"
            name="form.wrapper.error"
        />
    @endif
</div>

Function Calls

None

Variables

None

Stats

MD5 b3b24234fc3d7651c6601d78e8d2ecf7
Eval Count 0
Decode Time 90 ms