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>