{!! Form::label('name', __('models/locations.fields.name').':') !!} {!! Form::text('name', null, ['class' => 'form-control']) !!}
{!! Form::label('description', __('models/locations.fields.description').':') !!} {!! Form::text('description', null, ['class' => 'form-control']) !!}
{!! Form::label('latitude', __('models/locations.fields.latitude').':') !!} {!! Form::text('latitude', null, ['class' => 'form-control']) !!}
{!! Form::label('longitude', __('models/locations.fields.longitude').':') !!} {!! Form::text('longitude', null, ['class' => 'form-control']) !!}
{!! Form::label('photos', __('models/locations.fields.photos').':') !!}
{!! Form::file('photos[]', ['multiple'=>'multiple','class' => 'custom-file-input']) !!} {!! Form::label('photos', 'Choose file', ['class' => 'custom-file-label']) !!}
@if(isset($location->photos))
@foreach(json_decode($location->photos) as $photo) @endforeach
@endif
{!! Form::label('score', __('models/locations.fields.score').':') !!} {!! Form::text('score', null, ['class' => 'form-control']) !!}
{!! Form::hidden('cost', 0) !!} {!! Form::checkbox('cost', 1, null, ['id'=>'cost','class' => 'custom-control-input']) !!} {!! Form::label('cost', __('models/locations.fields.cost').':', ['class' => 'custom-control-label']) !!}
{!! Form::label('cost_description', __('models/locations.fields.cost_description').':') !!} {!! Form::text('cost_description', null, ['class' => 'form-control']) !!}
{!! Form::label('access', __('models/locations.fields.access').':') !!} {!! Form::number('access', null, ['class' => 'form-control']) !!}
{!! Form::label('icon', __('models/locations.fields.icon').':') !!}
{!! Form::file('icon', ['class' => 'custom-file-input']) !!} {!! Form::label('icon', 'Choose file', ['class' => 'custom-file-label']) !!}
{{--
--}} {{-- {!! Form::label('icon_type', __('models/locations.fields.icon_type').':') !!}--}} {{-- {!! Form::text('icon_type', null, ['class' => 'form-control']) !!}--}} {{--
--}}
{!! Form::label('phone', __('models/locations.fields.phone').':') !!} {!! Form::text('phone', null, ['class' => 'form-control']) !!}
{!! Form::label('address', __('models/locations.fields.address').':') !!} {!! Form::text('address', null, ['class' => 'form-control']) !!}
{{--
--}} {{-- {!! Form::label('pwps_version', __('models/locations.fields.pwps_version').':') !!}--}} {{-- {!! Form::text('pwps_version', null, ['class' => 'form-control']) !!}--}} {{--
--}} {{--
--}} {{-- {!! Form::label('poi_name', __('models/locations.fields.poi_name').':') !!}--}} {{-- {!! Form::text('poi_name', null, ['class' => 'form-control']) !!}--}} {{--
--}}
{!! Form::label('parking_type_name', __('models/locations.fields.parking_type_name').':') !!} {!! Form::text('parking_type_name', null, ['class' => 'form-control']) !!}
{!! Form::label('locale', __('models/locations.fields.locale').':') !!} {!! Form::text('locale', null, ['class' => 'form-control']) !!}
{!! Form::label('opening_date', __('models/locations.fields.opening_date').':') !!} {!! Form::date('opening_date', null, ['class' => 'form-control','id'=>'opening_date']) !!}
@push('page_scripts') @endpush
{!! Form::label('hours', __('models/locations.fields.hours').':') !!} {!! Form::text('hours', null, ['class' => 'form-control']) !!}
{!! Form::label('access_restrictions', __('models/locations.fields.access_restrictions').':') !!} {!! Form::select('access_restrictions', ['CUSTOMERS_ONLY' => 'CUSTOMERS_ONLY', 'GUESTS_ONLY' => 'GUESTS_ONLY', 'EMPLOYEES_ONLY' => 'EMPLOYEES_ONLY', 'STUDENTS_ONLY' => 'STUDENTS_ONLY', 'RESIDENTS_ONLY' => 'RESIDENTS_ONLY'], null, ['class' => 'form-control custom-select']) !!}
{!! Form::label('parking_attributes', __('models/locations.fields.parking_attributes').':') !!} {!! Form::select('parking_attributes', ['PULL_THROUGH' => 'PULL_THROUGH', 'PULL_IN' => 'PULL_IN', 'TRAILER_PARKING' => 'TRAILER_PARKING', 'TRAILER_FRIENDLY' => 'TRAILER_FRIENDLY', 'GARAGE' => 'GARAGE', 'HANDICAPPED' => 'HANDICAPPED', 'WHEELCHAIR_ACCESS' => 'WHEELCHAIR_ACCESS', 'ILLUMINATED' => 'ILLUMINATED'], null, ['class' => 'form-control custom-select']) !!}
{{--region_id--}}
{!! Form::label('amenity_ids', __('models/locations.fields.amenity_ids').':') !!} {!! Form::select('amenity_ids[]', \App\Models\Admin\Amenity::pluck('name','id')->toArray(), isset($location)?$location->amenities->pluck('id')->toArray():null, ['multiple'=>'multiple','class' => 'form-control form-select '. ($errors->has('amenity_ids')?' is-invalid ':'')]) !!} @if ($errors->has('amenity_ids')) {{ $errors->first('amenity_ids') }} @endif
{!! Form::label('parking_level', __('models/locations.fields.parking_level').':') !!} {!! Form::text('parking_level', null, ['class' => 'form-control']) !!}
{!! Form::label('overhead_clearance_meters', __('models/locations.fields.overhead_clearance_meters').':') !!} {!! Form::text('overhead_clearance_meters', null, ['class' => 'form-control']) !!}
{!! Form::hidden('qr_enabled', 0) !!} {!! Form::checkbox('qr_enabled', 1, null, ['id'=>'qr_enabled','class' => 'custom-control-input']) !!} {!! Form::label('qr_enabled', __('models/locations.fields.qr_enabled').':', ['class' => 'custom-control-label']) !!}
{!! Form::hidden('open247', 0) !!} {!! Form::checkbox('open247', 1, null, ['id'=>'open247','class' => 'custom-control-input']) !!} {!! Form::label('open247', __('models/locations.fields.open247').':', ['class' => 'custom-control-label']) !!}
{!! Form::hidden('coming_soon', 0) !!} {!! Form::checkbox('coming_soon', 1, null, ['id'=>'coming_soon','class' => 'custom-control-input']) !!} {!! Form::label('coming_soon', __('models/locations.fields.coming_soon').':', ['class' => 'custom-control-label']) !!}
{!! Form::hidden('under_repair', 0) !!} {!! Form::checkbox('under_repair', 1, null, ['id'=>'under_repair','class' => 'custom-control-input']) !!} {!! Form::label('under_repair', __('models/locations.fields.under_repair').':', ['class' => 'custom-control-label']) !!}
{!! Form::hidden('is_active', 0) !!} {!! Form::checkbox('is_active', 1, null, ['id'=>'is_active','class' => 'custom-control-input']) !!} {!! Form::label('is_active', __('models/clients.fields.is_active').':', ['class' => 'custom-control-label']) !!}
{{--
--}} {{-- {!! Form::label('plugshare_location_id', __('models/locations.fields.plugshare_location_id').':') !!}--}} {{-- {!! Form::text('plugshare_location_id', null, ['class' => 'form-control']) !!}--}} {{--
--}}