@ -35,15 +35,15 @@
< div class = " lg:pl-6 w-full lg:w-2/3 " >
< div class = " px-4 py-8 bg-white shadow sm:rounded-lg sm:px-10 space-y-6 " >
< x - input . group label = " { { __('user s.attributes.name') }} " for = " name " : error = " $errors->first ('name') " >
< x - input . group label = " { { __('associate s.attributes.name') }} " for = " name " : error = " $errors->first ('name') " >
< x - input . text wire : model . lazy = " name " id = " name " : state = " $errors->has ('name') ? false : null " required autofocus />
</ x - input . group >
< x - input . group label = " { { __('user s.attributes.birthday') }} " for = " birthday " : error = " $errors->first ('birthday') " >
< x - input . group label = " { { __('associate s.attributes.birthday') }} " for = " birthday " : error = " $errors->first ('birthday') " >
< x - input . text wire : model . lazy = " birthday " id = " birthday " mask = " date " placeholder = " dd/mm/yyyy " : state = " $errors->has ('birthday') ? false : null " required />
</ x - input . group >
< x - input . radio - group label = " { { __('user s.attributes.profile.gender') }} " : inline = " true " : error = " $errors->first ('profile.gender') " >
< x - input . radio - group label = " { { __('associate s.attributes.profile.gender') }} " : inline = " true " : error = " $errors->first ('profile.gender') " >
< x - input . radio wire : model . lazy = " profile.gender " name = " profile-gender " label = " Homem " value = " male " : state = " $errors->has ('profile.gender') ? false : null " required />
< x - input . radio wire : model . lazy = " profile.gender " name = " profile-gender " label = " Mulher " value = " female " : state = " $errors->has ('profile.gender') ? false : null " required />
< x - input . radio wire : model . lazy = " profile.gender " name = " profile-gender " label = " Outro " value = " other " : state = " $errors->has ('profile.gender') ? false : null " required />
@ -51,7 +51,7 @@
< div class = " flex flex-wrap -mx-2 " >
< x - input . group class = " px-2 w-full lg:w-1/2 mt-6 lg:mt-0 " label = " { { __('user s.attributes.document.type') }} " for = " document-type " : error = " $errors->first ('document.type') " >
< x - input . group class = " px-2 w-full lg:w-1/2 mt-6 lg:mt-0 " label = " { { __('associate s.attributes.document.type') }} " for = " document-type " : error = " $errors->first ('document.type') " >
< x - input . select wire : model . lazy = " document.type " id = " document-type " >
< option value = " cpf " > CPF </ option >
< option value = " identity " > Carteira de Identidade </ option >
@ -59,17 +59,17 @@
</ x - input . select >
</ x - input . group >
< x - input . group class = " px-2 w-full lg:w-1/2 mt-6 lg:mt-0 " label = " { { __('user s.attributes.document.number') }} " for = " document-number " : error = " $errors->first ('document.number') " >
< x - input . group class = " px-2 w-full lg:w-1/2 mt-6 lg:mt-0 " label = " { { __('associate s.attributes.document.number') }} " for = " document-number " : error = " $errors->first ('document.number') " >
< x - input . text wire : model . lazy = " document.number " id = " document-number " : state = " $errors->has ('document.number') ? false : null " required />
</ x - input . group >
</ div >
< x - input . group label = " { { __('user s.attributes.profile.occupation') }} " for = " profile-occupation " : error = " $errors->first ('profile.occupation') " >
< x - input . group label = " { { __('associate s.attributes.profile.occupation') }} " for = " profile-occupation " : error = " $errors->first ('profile.occupation') " >
< x - input . text wire : model . lazy = " profile.occupation " id = " profile-occupation " placeholder = " Profissão ou ocupação principal " : state = " $errors->has ('profile.occupation') ? false : null " required />
</ x - input . group >
< x - input . radio - group label = " { { __('user s.attributes.profile.scholarity') }} " : error = " $errors->first ('profile.scholarity') " >
< x - input . radio - group label = " { { __('associate s.attributes.profile.scholarity') }} " : error = " $errors->first ('profile.scholarity') " >
< x - input . radio wire : model . lazy = " profile.scholarity " name = " profile-scholarity " label = " Ensino fundamental " value = " primary-school " : state = " $errors->has ('profile.scholarity') ? false : null " required />
< x - input . radio wire : model . lazy = " profile.scholarity " name = " profile-scholarity " label = " Ensino médio " value = " high-school " : state = " $errors->has ('profile.scholarity') ? false : null " required />
< x - input . radio wire : model . lazy = " profile.scholarity " name = " profile-scholarity " label = " Graduação " value = " bachelor " : state = " $errors->has ('profile.scholarity') ? false : null " required />
@ -101,7 +101,7 @@
< div x - data = " { } " class = " flex flex-wrap -mx-2 " >
< x - input . group class = " px-2 w-full lg:w-1/2 " label = " { { __('user s.attributes.address.country') }} " for = " address-country " : error = " $errors->first ('address.country') " >
< x - input . group class = " px-2 w-full lg:w-1/2 " label = " { { __('associate s.attributes.address.country') }} " for = " address-country " : error = " $errors->first ('address.country') " >
< x - input . select wire : model = " address.country " @ input = " document.getElementById('address-postcode').dispatchEvent(new Event('refreshMask', { detail: { mask: null}})) " id = " address-country " : state = " $errors->has ('address.country') ? false : null " required >
@ foreach ( \App\Country :: all () as $country )
< option value = " { { $country->code }} " > {{ __ ( 'countries.' . $country -> code ) }} </ option >
@ -110,32 +110,32 @@
</ x - input . group >
@ if ( $address [ 'country' ] === 'BR' )
< x - input . group class = " px-2 w-full lg:w-1/2 " label = " { { __('user s.attributes.address.postcode') }} " for = " address-postcode-masked " : error = " $errors->first ('address.postcode') " >
< x - input . group class = " px-2 w-full lg:w-1/2 " label = " { { __('associate s.attributes.address.postcode') }} " for = " address-postcode-masked " : error = " $errors->first ('address.postcode') " >
< x - input . text wire : model . lazy = " address.postcode " id = " address-postcode-masked " mask = " postcode " : state = " $errors->has ('address.postcode') ? false : null " required />
</ x - input . group >
@ else
< x - input . group class = " px-2 w-full lg:w-1/2 " label = " { { __('user s.attributes.address.postcode') }} " for = " address-postcode " : error = " $errors->first ('address.postcode') " >
< x - input . group class = " px-2 w-full lg:w-1/2 " label = " { { __('associate s.attributes.address.postcode') }} " for = " address-postcode " : error = " $errors->first ('address.postcode') " >
< x - input . text wire : model . lazy = " address.postcode " id = " address-postcode " : state = " $errors->has ('address.postcode') ? false : null " required />
</ x - input . group >
@ endif
</ div >
< x - input . group label = " { { __('user s.attributes.address.street') }} " for = " address-street " : error = " $errors->first ('address.street') " >
< x - input . group label = " { { __('associate s.attributes.address.street') }} " for = " address-street " : error = " $errors->first ('address.street') " >
< x - input . text wire : model . lazy = " address.street " wire : target = " address.postcode " wire : loading . attr = " disabled " id = " address-street " : state = " $errors->has ('address.street') ? false : null " required />
</ x - input . group >
< div class = " flex flex-wrap -mx-2 " >
< x - input . group x - data = " { } " class = " px-2 w-full lg:w-1/4 mt-6 lg:mt-0 " label = " { { __('user s.attributes.address.number') }} " for = " address-number " : error = " $errors->first ('address.number') " >
< x - input . group x - data = " { } " class = " px-2 w-full lg:w-1/4 mt-6 lg:mt-0 " label = " { { __('associate s.attributes.address.number') }} " for = " address-number " : error = " $errors->first ('address.number') " >
< x - input . text wire : model . lazy = " address.number " @ address - autofilled . window = " $refs .addressNumber.focus() " x - ref = " addressNumber " id = " address-number " : state = " $errors->has ('address.number') ? false : null " required />
</ x - input . group >
< x - input . group class = " px-2 w-full lg:w-1/4 " label = " { { __('user s.attributes.address.complement') }} " for = " address-complement " : error = " $errors->first ('address.complement') " >
< x - input . group class = " px-2 w-full lg:w-1/4 " label = " { { __('associate s.attributes.address.complement') }} " for = " address-complement " : error = " $errors->first ('address.complement') " >
< x - input . text wire : model . lazy = " address.complement " id = " address-complement " : state = " $errors->has ('address.complement') ? false : null " />
</ x - input . group >
< x - input . group class = " px-2 w-full lg:w-1/2 mt-6 lg:mt-0 " label = " { { __('user s.attributes.address.neighbourhood') }} " for = " address-neighbourhood " : error = " $errors->first ('address.neighbourhood') " >
< x - input . group class = " px-2 w-full lg:w-1/2 mt-6 lg:mt-0 " label = " { { __('associate s.attributes.address.neighbourhood') }} " for = " address-neighbourhood " : error = " $errors->first ('address.neighbourhood') " >
< x - input . text wire : model . lazy = " address.neighbourhood " wire : target = " address.postcode " wire : loading . attr = " disabled " id = " address-neighbourhood " : state = " $errors->has ('address.neighbourhood') ? false : null " required />
</ x - input . group >
@ -143,33 +143,33 @@
< div class = " flex flex-wrap -mx-2 " >
< x - input . group class = " px-2 w-full lg:w-1/2 " label = " { { __('user s.attributes.address.city') }} " for = " address-city " : error = " $errors->first ('address.city') " >
< x - input . group class = " px-2 w-full lg:w-1/2 " label = " { { __('associate s.attributes.address.city') }} " for = " address-city " : error = " $errors->first ('address.city') " >
< x - input . text wire : model . lazy = " address.city " wire : target = " address.postcode " wire : loading . attr = " disabled " id = " address-city " : state = " $errors->has ('address.city') ? false : null " required />
</ x - input . group >
< x - input . group class = " px-2 w-full lg:w-1/2 mt-6 lg:mt-0 " label = " { { __('user s.attributes.address.state') }} " for = " address-state " : error = " $errors->first ('address.state') " >
< x - input . group class = " px-2 w-full lg:w-1/2 mt-6 lg:mt-0 " label = " { { __('associate s.attributes.address.state') }} " for = " address-state " : error = " $errors->first ('address.state') " >
< x - input . text wire : model . lazy = " address.state " wire : target = " address.postcode " wire : loading . attr = " disabled " id = " address-state " : state = " $errors->has ('address.state') ? false : null " required />
</ x - input . group >
</ div >
< x - input . group label = " { { __('user s.attributes.profile.phone') }} " for = " profile-phone " : error = " $errors->first ('profile.phone') " >
< x - input . group label = " { { __('associate s.attributes.profile.phone') }} " for = " profile-phone " : error = " $errors->first ('profile.phone') " >
< x - input . text wire : model . lazy = " profile.phone " id = " profile-phone " mask = " phone " : state = " $errors->has ('profile.phone') ? false : null " required />
</ x - input . group >
< x - input . group label = " { { __('user s.attributes.email') }} " for = " email " : error = " $errors->first ('email') " >
< x - input . group label = " { { __('associate s.attributes.email') }} " for = " email " : error = " $errors->first ('email') " >
< x - input . email wire : model . lazy = " email " id = " email " : state = " $errors->has ('email') ? false : null " required />
</ x - input . group >
< x - input . group label = " { { __('user s.attributes.profile.secondary_emails') }} " for = " profile-secondary_emails " : error = " $errors->first ('profile.secondary_emails') " >
< x - input . group label = " { { __('associate s.attributes.profile.secondary_emails') }} " for = " profile-secondary_emails " : error = " $errors->first ('profile.secondary_emails') " >
< x - input . textarea wire : model . lazy = " profile.secondary_emails " id = " profile-secondary_emails " : state = " $errors->has ('profile.secondary_emails') ? false : null " />
</ x - input . group >
< x - input . group label = " { { __('user s.attributes.profile.website') }} " for = " profile-website " : error = " $errors->first ('profile.website') " >
< x - input . group label = " { { __('associate s.attributes.profile.website') }} " for = " profile-website " : error = " $errors->first ('profile.website') " >
< x - input . text wire : model . lazy = " profile.website " id = " profile-website " : state = " $errors->has ('profile.website') ? false : null " />
</ x - input . group >
< x - input . group label = " { { __('user s.attributes.profile.social') }} " for = " profile-social " : error = " $errors->first ('profile.social') " >
< x - input . group label = " { { __('associate s.attributes.profile.social') }} " for = " profile-social " : error = " $errors->first ('profile.social') " >
< x - input . text wire : model . lazy = " profile.social " id = " profile-social " : state = " $errors->has ('profile.social') ? false : null " />
</ x - input . group >
@ -195,32 +195,32 @@
< div class = " lg:pl-6 w-full lg:w-2/3 " >
< div class = " px-4 py-8 bg-white shadow sm:rounded-lg sm:px-10 space-y-6 " >
< x - input . radio - group label = " { { __('user s.attributes.discussion') }} " : error = " $errors->first ('discussion') " >
< x - input . radio - group label = " { { __('associate s.attributes.discussion') }} " : error = " $errors->first ('discussion') " >
< x - input . radio wire : model . lazy = " discussion " name = " discussion " label = " Participar da discussão (todos os e-mails) " value = " all " : state = " $errors->has ('discussion') ? false : null " required />
< x - input . radio wire : model . lazy = " discussion " name = " discussion " label = " Compilação da discussão (1 e-mail por dia) " value = " daily " : state = " $errors->has ('discussion') ? false : null " required />
< x - input . radio wire : model . lazy = " discussion " name = " discussion " label = " Notificações ocasionais da diretoria " value = " occasional " : state = " $errors->has ('discussion') ? false : null " required />
</ x - input . radio - group >
< x - input . group label = " { { __('user s.attributes.profile.expectation') }} " for = " profile-expectation " : error = " $errors->first ('profile.expectation') " >
< x - input . group label = " { { __('associate s.attributes.profile.expectation') }} " for = " profile-expectation " : error = " $errors->first ('profile.expectation') " >
< x - input . textarea wire : model . lazy = " profile.expectation " id = " profile-expectation " placeholder = " O que você espera que UCB consiga ou faça: atuação, conquistas, pautas (descreva brevemente)? " : state = " $errors->has ('profile.expectation') ? false : null " />
</ x - input . group >
< x - input . group label = " { { __('user s.attributes.profile.bike_use') }} " for = " profile-bike_use " : error = " $errors->first ('profile.bike_use') " >
< x - input . group label = " { { __('associate s.attributes.profile.bike_use') }} " for = " profile-bike_use " : error = " $errors->first ('profile.bike_use') " >
< x - input . textarea wire : model . lazy = " profile.bike_use " id = " profile-bike_use " placeholder = " Por quê e para quê usa a bicicleta? Descreva brevemente " : state = " $errors->has ('profile.bike_use') ? false : null " />
</ x - input . group >
< x - input . group label = " { { __('user s.attributes.profile.org_participation') }} " for = " profile-org_participation " : error = " $errors->first ('profile.org_participation') " >
< x - input . group label = " { { __('associate s.attributes.profile.org_participation') }} " for = " profile-org_participation " : error = " $errors->first ('profile.org_participation') " >
< x - input . textarea wire : model . lazy = " profile.bike_use " id = " profile-bike_use " placeholder = " Você participa em associações ou coletivos de ciclistas que promovem a bicicleta? Quais? " : state = " $errors->has ('profile.bike_use') ? false : null " />
</ x - input . group >
< x - input . group label = " { { __('user s.attributes.profile.bike_activities') }} " for = " profile-bike_activities " : error = " $errors->first ('profile.bike_activities') " >
< x - input . group label = " { { __('associate s.attributes.profile.bike_activities') }} " for = " profile-bike_activities " : error = " $errors->first ('profile.bike_activities') " >
< x - input . textarea wire : model . lazy = " profile.bike_use " id = " profile-bike_use " placeholder = " Realiza atividades ou participa para promover a bicicleta (descreva brevemente)? " : state = " $errors->has ('profile.bike_use') ? false : null " />
</ x - input . group >
< x - input . radio - group
x - data = " { custom_contribution: false } "
@ click = " custom_contribution = false "
label = " { { __('user s.attributes.contribution') }} "
label = " { { __('associate s.attributes.contribution') }} "
for = " contribution "
: error = " $errors->first ('contribution') "
>