@if (Auth::User()->perm('poi', 'edit')) @endif
{!!Form::open(['route' => 'map_icons.store', 'method' => 'POST', 'id' => 'map_icon_create'])!!}
{!!trans('front.please_click_on_map')!!}
{!!Form::hidden('id')!!} {!!Form::hidden('coordinates')!!}
{!!Form::label('name', trans('validation.attributes.name').':')!!} {!!Form::text('name', null, ['class' => 'form-control'])!!}
{!!Form::label('description', trans('validation.attributes.description').':')!!} {!!Form::textarea('description', null, ['class' => 'form-control', 'rows' => 3])!!}
{!!Form::label('map_icon_idd', trans('validation.attributes.map_icon_id').':')!!} {!!Form::hidden('map_icon_id')!!}
@foreach($mapIcons->toArray() as $key=>$value)
{!!Form::radio('map_icon_id', $value['id'], null, ['data-width' => $value['width'], 'data-height' => $value['height']])!!}
@endforeach
{!!Form::close()!!}
{!!Form::open(['route' => 'map_icons.update', 'method' => 'PUT', 'id' => 'map_icon_update'])!!}
{!!Form::hidden('id')!!} {!!Form::hidden('coordinates')!!}
{!!Form::label('name', trans('validation.attributes.name').':')!!} {!!Form::text('name', null, ['class' => 'form-control'])!!}
{!!Form::label('description', trans('validation.attributes.description').':')!!} {!!Form::textarea('description', null, ['class' => 'form-control', 'rows' => 3])!!}
{!!Form::label('map_icon_idd', trans('validation.attributes.map_icon_id').':')!!} {!!Form::hidden('map_icon_id')!!}
@foreach($mapIcons->toArray() as $key=>$value)
{!!Form::radio('map_icon_id', $value['id'], null, ['data-width' => $value['width'], 'data-height' => $value['height']])!!}
@endforeach
{!!Form::close()!!}