@if (is_a($model, "App\CalendarEvent") && $listedLocations)
    <fieldset class="form-fieldset">
        {!! Form::label('listed_location', trans('messages.location')) !!}
        <div class="small-help">
            <i class="fas fa-info-circle"></i>
            {{ trans('messages.listed_location_help') }}
        </div>
        {!! Form::select('listed_location', [''=> ' --- '] + $listedLocations + ['other' => trans('messages.other')],
	    $listedLocation,
	    ['id' => 'location_menu', 'class' => 'form-control mb-4', 'up-switch' => '.js-new-location'])
	!!}
    <p class="js-new-location" up-show-for="other"><strong>{{ trans('messages.location_other') }}</strong></p>
    </fieldset>
@endif

    @if (is_a($model, "App\CalendarEvent") && $listedLocations)<fieldset class="form-fieldset js-new-location" up-show-for="other">
      @else <fieldset class="form-fieldset">@endif
      <label class="form-label h3">{{trans('messages.location')}}</label>
        <div class="small-help mb-3">
            <i class="fas fa-info-circle"></i>
            {{ trans('messages.location_privacy_and_help') }}
        </div>
        {!! Form::label('location[street]', trans('Street Address') . ':') !!}
        {!! Form::text('location[street]', $model->location->street, ['class' => 'form-control mb-3', 'size' => '100']) !!}
        {!! Form::label('location[city]', trans('City') . ':') !!}
        {!! Form::text('location[city]', $model->location->city, ['class' => 'form-control mb-3', 'size' => '30']) !!}
        {!! Form::label('location[county]', trans('County') . ':') !!}
        <div class="small-help">
            <i class="fas fa-info-circle"></i>
            {{ trans('messages.county_help') }}
        </div>
        {!! Form::text('location[county]', $model->location->county, ['class' => 'form-control mb-3', 'size' => '30']) !!}
        {!! Form::label('location[country]', trans('Country') . ':') !!}
        {!! Form::text('location[country]', $model->location->country, ['class' => 'form-control mb-3', 'size' => '30']) !!}
        {!! Form::label('location[name]', trans('Location Name') . ':') !!}
        <div class="small-help">
            <i class="fas fa-info-circle"></i>
            {{ trans('messages.location_name_help') }}
            {!! Form::text('location[name]', $model->location->name, ['class' => 'form-control']) !!}
        </div>
    </fieldset>
