@extends('frontend.layouts.app') @section('title', app_name() . ' | ' . __('labels.frontend.auth.register_box_title')) @section('content')
{{--
--}} {{--
--}}
About you {{-- @lang('labels.frontend.auth.register_box_title')--}}
{{ html()->form('POST', route('frontend.user.firstlogin.post'))->open() }}
{{ html()->label('Prefix')->for('prefix_lookup_id') }} {{ html()->select('prefix_lookup_id') ->class('form-control') ->options($prefix_lookup->pluck('text', 'id')) ->placeholder('Prefix') ->value(old('prefix_lookup_id')) ->required()}}
{{ html()->label(__('validation.attributes.frontend.first_name'))->for('first_name') }} {{ html()->text('first_name') ->class('form-control') ->placeholder(__('validation.attributes.frontend.first_name')) ->attribute('maxlength', 191) ->disabled($logged_in_user->providers->count()) ->value($logged_in_user->providers->count()?$logged_in_user->first_name:old('first_name')) ->required()}}
{{ html()->label(__('validation.attributes.frontend.last_name'))->for('last_name') }} {{ html()->text('last_name') ->class('form-control') ->placeholder(__('validation.attributes.frontend.last_name')) ->disabled($logged_in_user->providers->count()) ->value($logged_in_user->providers->count()?$logged_in_user->last_name:old('last_name')) ->attribute('maxlength', 191) ->required() }}
{{ html()->label('Phone')->for('phone') }} {{ html()->text('phone') ->class('form-control') ->placeholder('Phone number') ->value(old('phone')) ->attribute('maxlength', 11) ->attribute('type', 'tel') ->required() }}
{{ html()->label('Institution')->for('institution_lookup_id') }} {{ html()->select('institution_lookup_id') ->class('form-control') ->options($institution_lookup->pluck('text', 'id')) ->value(old('institution_lookup_id')) }}
{{ html()->label('Position')->for('position_lookup_id') }} {{ html()->select('position_lookup_id') ->class('form-control') ->options($position_lookup->pluck('text', 'id')) ->value(old('position_lookup_id')) }}
{{ html()->label('Research focus')->for('research_focus_lookup_id[]') }} {{ html()->select('research_focus_lookup_id[]') ->class('form-control') ->attribute('multiple', 'multiple') ->options($research_lookup->pluck('text', 'id')) ->value(old('research_focus_lookup_id[]')) }}
@if(!$invited)
Subscription
{{ html()->label('Subscription level')->for('subscription_level') }}
{{html()->radio('subscription_level')->class('custom-control-input')->id('radio1')->value('free')->required() ->attribute('onchange', "$('#payment_freq_group').hide();$('#radio5').removeAttr('required')")}}
{{html()->radio('subscription_level')->class('custom-control-input')->id('radio2')->value('student') ->attribute('onchange', "$('#payment_freq_group').show();$('#radio5').attr('required', 'required')")}}
{{html()->radio('subscription_level')->class('custom-control-input')->id('radio3')->value('researcher') ->attribute('onchange', "$('#payment_freq_group').show();$('#radio5').attr('required', 'required')")}}
{{html()->radio('subscription_level')->class('custom-control-input')->id('radio4')->value('lab') ->attribute('onchange', "$('#payment_freq_group').show();$('#radio5').attr('required', 'required')")}}
{{-- onchange="$('#payment_freq_group').show();$('#payment_freq_group').attr('required', '')"/>--}}
{{ html()->label('Payment frequency')->for('payment_frequency') }}
{{html()->radio('payment_frequency')->class('custom-control-input')->id('radio5')->required()->value('yearly')}}
{{html()->radio('payment_frequency')->class('custom-control-input')->id('radio6')->value('monthly')}}
@endif
{{ form_submit('Continue...')->style(['width'=>'100%']) }}
{{ html()->form()->close() }} {{--
--}} {{--
--}} {{--
--}} {{-- @include('frontend.auth.includes.socialite')--}} {{--
--}} {{--
--}} {{--
--}}
{{--
--}}
@endsection @push('after-scripts') @endpush @push('after-styles') @endpush