Skip to content

Instantly share code, notes, and snippets.

@cursosdesarrolloweb
Created July 19, 2021 13:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cursosdesarrolloweb/be4e896c35579251bc940998445dead4 to your computer and use it in GitHub Desktop.
Save cursosdesarrolloweb/be4e896c35579251bc940998445dead4 to your computer and use it in GitHub Desktop.
<div class="px-15">
<form wire:submit.prevent="submit">
<div class="form-row mx-n15">
<div class="col-md-3 col-sm-6 mb-3 select-px-15 pl-30 pr-15">
<label for="user_id" class="il-gray fs-14 fw-500 align-center">{{ __("Usuario") }}</label>
<select
wire:model="user_id"
id="user_id"
class="form-control ih-medium ip-light radius-xs b-light {{ ($errors->has('user_id') ? ' is-invalid' : null) }}"
>
<option value="">{{ __("Selecciona un usuario") }}</option>
@if(count($users) > 0)
@foreach ($users as $id => $name)
<option value="{{ $id }}">{{ $name }}</option>
@endforeach
@endif
</select>
@error("user_id")<div class="invalid-feedback">{{ $errors->first("user_id") }}</div>@enderror
</div>
<div class="col-md-3 col-sm-6 mb-3 select-px-15 px-15">
<label for="name" class="il-gray fs-14 fw-500 align-center">{{ __("Nombre") }}</label>
{!! FormFacade::text(
'name',
old('name'),
[
'wire:model.debounce.1s' => 'name',
'class' => 'form-control ih-medium ip-light radius-xs b-light' . ($errors->has('name') ? ' is-invalid' : null),
'id' => 'name',
'required' => true,
])
!!}
@error("name")<div class="invalid-feedback">{{ $errors->first("name") }}</div>@enderror
</div>
</div>
<div class="d-flex">
{!! FormFacade::submit(__("Guardar"), ["class" => "btn btn-primary btn-default btn-squared px-30 ml-2"]) !!}
</div>
</form>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment