HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux ip-172-31-42-149 5.15.0-1084-aws #91~20.04.1-Ubuntu SMP Fri May 2 07:00:04 UTC 2025 aarch64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/vhost/disk-apps/agile-selling-wpb/resources/views/integrationProviders/form.blade.php
@csrf
<div class="card-body">
    <div class="form-row">
        <div class="form-group col-md-12">
            <label for="name_provider" class="ul-form__label">@lang('messages.integrations.title_3'):</label>
            <input type="text" class="form-control" id="name_provider" name="name_provider" placeholder=""
                value="{{ $integration->name_provider ?? old('name_provider') }}" required>
        </div>
        <div class="form-group col-md-12">
            <label for="ecommerce_type_id">@lang('messages.integrations.title_4')</label>
            <select class="form-control" id="ecommerce_type_id" name="ecommerce_type_id"
                value="{{ $integration->ecommerce_type_id ?? old('ecommerce_type_id') }}">
                <option value="0" disabled {{isset($integration) ? '' : 'selected'}}>
                    @lang('messages.select')
                </option>
                @foreach ($ecommerceTypes as $ecommerceType)
                <option value="{{ $ecommerceType->id }}"
                    {{ isset($integration) && $integration->ecommerce_type_id == $ecommerceType->id ? 'selected' : '' }}>
                    {{ $ecommerceType->name }}
                </option>
                @endforeach
            </select>
        </div>
        <div class="form-group col-md-12">
            <label for="endpoint" class="ul-form__label">@lang('messages.integrations.title_5'):</label>
            <input type="text" class="form-control" id="endpoint" name="endpoint" placeholder=""
                value="{{ $integration->endpoint ?? old('endpoint') }}">
        </div>
        <div class="form-group col-md-12">
            <label for="username" class="ul-form__label">@lang('messages.integrations.title_7'):</label>
            <input type="text" class="form-control" id="username" name="username" placeholder=""
                value="{{ $integration->username ?? old('username') }}">
        </div>
        <div class="form-group col-md-12">
            <label for="password" class="ul-form__label">@lang('messages.integrations.title_17'):</label>
            <input type="text" class="form-control" id="password" name="password" placeholder=""
                value="{{ $integration->password ?? old('password') }}">
        </div>
        <div class="form-group col-md-12">
            <label for="key_public" class="ul-form__label">@lang('messages.integrations.title_18'):</label>
            <input type="text" class="form-control" id="key_public" name="key_public" placeholder=""
                value="{{ $integration->key_public ?? old('key_public') }}">
        </div>
        <div class="form-group col-md-12">
            <label for="key_private" class="ul-form__label">@lang('messages.integrations.title_19'):</label>
            <input type="text" class="form-control" id="key_private" name="key_private" placeholder=""
                value="{{ $integration->key_private ?? old('key_private') }}">
        </div>
        <div class="form-group col-md-12">
            <label for="last_load_date" class="ul-form__label">@lang('messages.integrations.title_6'):</label>
            <input type="datetime-local" class="form-control" id="last_load_date" name="last_load_date" placeholder=""
                value="{{  isset($integration) ? str_replace(" ", "T", $integration->last_load_date) : old('last_load_date') }}">
        </div>
        <div class="form-group col-md-12">
            <label for="active">@lang('messages.integrations.title_14')</label>
            <select class="form-control" id="active" name="active" value="{{ $integration->active ?? old('active') }}">
                <option value="1" {{isset($integration) && $integration->active ? 'selected' : ''}}>
                    @lang('messages.active')
                </option>
                <option value="0" {{isset($integration) && !$integration->active ? 'selected' : ''}}>
                    @lang('messages.inactive')
                </option>
            </select>
        </div>
    </div>
</div>