@extends('vendor.socialite.layouts.default') @section('content')
@include('socialite::partials/usermenu-settings')

{{ trans('users.personal_beer_experience.create') }}

@if(isset($message))
{{ $message }}
@endif {!! Form::model($beerPersonalXP, ['route' => [($isNew ? 'personal_beer_experience.create.post' : 'personal_beer_experience.update.post'), Auth::user()->username], 'class' => 'margin-right', 'method' => 'post']) !!}
{{ trans('users.personal_beer_experience.tasting') }}
{{ Form::label('favoriteBeers', trans('users.personal_beer_experience.favorite_beers'), ['class' => 'control-label']) }} {{ Form::select('favoriteBeers[]', old('favoriteBeers', []) ? old('favoriteBeers', []) : !$isNew ? $beerPersonalXP->favoriteBeers->pluck('name','id') : [], null, ['multiple' => 'multiple', 'class' => 'form-control select2-multiple-beer hidden','data-max-selections' => '3','data-ajax-beer-route' => route('beers.list.json')]) }} @if ($errors->has('favoriteBeers')) {{ $errors->first('favoriteBeers') }} @endif
{{ Form::label('types', trans('users.personal_beer_experience.favorite_beer_styles'), ['class' => 'control-label']) }} {{ Form::select('types[]', $types, null, ['multiple' => 'multiple', 'class' => 'form-control select2-multiple hidden']) }} @if ($errors->has('types')) {{ $errors->first('types') }} @endif
{{ Form::label('beerPlaces', trans('users.personal_beer_experience.best_place_to_drink'), ['class' => 'control-label']) }} {{ Form::select('beerPlaces[]', $beerPlaces, null, ['multiple' => 'multiple', 'class' => 'form-control select2-multiple hidden']) }} @if ($errors->has('beerPlaces')) {{ $errors->first('beerPlaces') }} @endif
{{ Form::label('enjoyWith', trans('users.personal_beer_experience.best_relationship'), ['class' => 'control-label']) }} {{ Form::select('enjoyWith[]', $enjoyWith, null, ['multiple' => 'multiple', 'class' => 'form-control select2-multiple hidden']) }} @if ($errors->has('enjoyWith')) {{ $errors->first('enjoyWith') }} @endif
{{ Form::label('accompaniments', trans('users.personal_beer_experience.accompaniment'), ['class' => 'control-label']) }} {{ Form::select('accompaniments[]', $accompaniments, null, ['multiple' => 'multiple', 'class' => 'form-control select2-multiple hidden']) }} @if ($errors->has('accompaniments')) {{ $errors->first('accompaniments') }} @endif
{{ Form::label('best_time_to_drink', trans('users.personal_beer_experience.best_time_to_drink'), ['class' => 'control-label']) }} {{ Form::select('best_time_to_drink', array_merge(['' => 'Please Select'], $beerBestTime), null, ['class' => 'form-control']) }} @if ($errors->has('best_time_to_drink')) {{ $errors->first('best_time_to_drink') }} @endif
{{ Form::label('beer_webshop', trans('users.personal_beer_experience.favorite_beer_webshop'), ['class' => 'control-label']) }} {{ Form::text('beer_webshop', $beerPersonalXP ? $beerPersonalXP->beer_webshop : null, ['class' => 'form-control']) }} @if ($errors->has('beer_webshop')) {{ $errors->first('beer_webshop') }} @endif
{{ Form::label('beer_dishes', trans('users.personal_beer_experience.beer_dishes'), ['class' => 'control-label']) }}
@foreach($beerDishes as $key => $beerDishe)
{!! Form::radio('interest_to_beer_dishes', $key, null, ['id' => 'beerDishe_' . $key]) !!}
@endforeach
{{--
    --}} {{--
  • {{ Form::radio('interest_to_beer_dishes', $key) }}{{ trans($beerDishe) }}
  • --}} {{--
  • {{ Form::radio('beer_dishes', 'yes') }}{{ trans($beerDishes['yes']) }}
  • --}} {{--
  • {{ Form::radio('beer_dishes', 'no') }}{{ trans($beerDishes['no']) }}
  • --}} {{--
  • {{ Form::radio('beer_dishes', 'i_dont_know') }}{{ trans($beerDishes['i_dont_know']) }}
  • --}} {{--
--}}
{{ trans('users.personal_beer_experience.collection') }}
{{ Form::label('is_collector', trans('users.personal_beer_experience.is_collector'), ['class' => 'control-label']) }}
{{ Form::radio('is_collector', 1,null,['id' => 'is_collector_1']) }}
{{ Form::radio('is_collector', 0,null,['id' => 'is_collector_0']) }}
{{--
    --}} {{--
  • {{ Form::radio('is_collector', 1) }}{{trans('users.personal_beer_experience.yes')}}
  • --}} {{--
  • {{ Form::radio('is_collector', 0) }}{{trans('users.personal_beer_experience.no')}}
  • --}} {{--
--}}
{{ Form::label('collections', trans('users.personal_beer_experience.beer_collection'), ['class' => 'control-label']) }} {{ Form::select('collections[]', $collections, null, ['multiple' => 'multiple', 'class' => 'form-control select2-multiple hidden']) }} @if ($errors->has('collections')) {{ $errors->first('collections') }} @endif
{{ trans('users.personal_beer_experience.brewing') }}
{{ Form::label('is_collector', trans('users.personal_beer_experience.create_your_own_beer'), ['class' => 'control-label']) }}
{{ Form::radio('create_your_own_beer', 1,null,['id' => 'create_your_own_beer_1' ]) }}
{{ Form::radio('create_your_own_beer', 0,null,['id' => 'create_your_own_beer_0' ]) }}
{{--
    --}} {{--
  • {{ Form::radio('create_your_own_beer', 1) }}{{trans('users.personal_beer_experience.yes')}}
  • --}} {{--
  • {{ Form::radio('create_your_own_beer', 0) }}{{trans('users.personal_beer_experience.no')}}
  • --}} {{--
--}}
{{ Form::label('is_collector', trans('users.personal_beer_experience.brewing_your_own_beer'), ['class' => 'control-label']) }}
{{ Form::radio('brewing_your_own_beer', 1,null,['id' => 'brewing_your_own_beer_1' ]) }}
{{ Form::radio('brewing_your_own_beer', 0,null,['id' => 'brewing_your_own_beer_0' ]) }}
{{--
    --}} {{--
  • {{ Form::radio('brewing_your_own_beer', 1) }}{{trans('users.personal_beer_experience.yes')}}
  • --}} {{--
  • {{ Form::radio('brewing_your_own_beer', 0) }}{{trans('users.personal_beer_experience.no')}}
  • --}} {{--
--}}
{{ Form::label('brewedBeers', trans('users.personal_beer_experience.brewed_beer'), ['class' => 'control-label']) }} {{ Form::select('brewedBeers[]', old('brewedBeers', []) ? old('brewedBeers', []) : !$isNew ? $beerPersonalXP->brewedBeers->pluck('name','id') : [], null, ['multiple' => 'multiple', 'class' => 'form-control select2-multiple-beer hidden','data-ajax-beer-route' => route('beers.list.json')]) }} @if ($errors->has('brewedBeers')) {{ $errors->first('brewedBeers') }} @endif
{{ Form::label('website', trans('users.personal_beer_experience.site_forum_recommended'), ['class' => 'control-label']) }} {{ Form::text('website', null, ['class' => 'form-control']) }} @if ($errors->has('website')) {{ $errors->first('website') }} @endif
{{ trans('users.personal_beer_experience.other_experiences') }}
{{ Form::label('association', trans('users.personal_beer_experience.in_association'), ['class' => 'control-label']) }} {{ Form::text('association', null, ['class' => 'form-control']) }} @if ($errors->has('association')) {{ $errors->first('association') }} @endif
{{ Form::label('specialized_journal', trans('users.personal_beer_experience.specialized_journal'), ['class' => 'control-label']) }} {{ Form::text('specialized_journal', null, ['class' => 'form-control']) }} @if ($errors->has('specialized_journal')) {{ $errors->first('specialized_journal') }} @endif
{{ Form::label('placesToDrink', trans('users.personal_beer_experience.places_related_to_beer'), ['class' => 'control-label']) }} {{ Form::select('placesToDrink[]', $placesToDrink, null, ['multiple' => 'multiple', 'class' => 'form-control select2-multiple hidden']) }} @if ($errors->has('placesToDrink')) {{ $errors->first('placesToDrink') }} @endif
{{ Form::label('active_in_beer_community', trans('users.personal_beer_experience.active_in_beer_community'), ['class' => 'control-label']) }}
{{ Form::radio('active_in_beer_community', 1,null,['id' => 'active_in_beer_community_1' ]) }}
{{ Form::radio('active_in_beer_community', 0,null,['id' => 'active_in_beer_community_0' ]) }}
{{--
    --}} {{--
  • {{ Form::radio('active_in_beer_community', 1) }}{{trans('users.personal_beer_experience.yes')}}
  • --}} {{--
  • {{ Form::radio('active_in_beer_community', 0) }}{{trans('users.personal_beer_experience.no')}}
  • --}} {{--
--}}
{{ Form::submit(trans('users.personal_beer_experience.create'), ['class' => 'btn btn-success']) }}
{{ Form::close() }}
@endsection @section('bottom_js') @parent @endsection