@extends('layouts.frontend') @section('content')
{{ trans('global.edit') }} {{ trans('cruds.spaceUnit.title_singular') }}
id]) }}" enctype="multipart/form-data"> @method('PUT') @csrf
@if($errors->has('tower'))
{{ $errors->first('tower') }}
@endif {{ trans('cruds.spaceUnit.fields.tower_helper') }}
@foreach(App\Models\SpaceUnit::TYPE_RADIO as $key => $label)
type) === (string) $key ? 'checked' : '' }} required>
@endforeach @if($errors->has('type'))
{{ $errors->first('type') }}
@endif {{ trans('cruds.spaceUnit.fields.type_helper') }}
@foreach(App\Models\SpaceUnit::STATUS_RADIO as $key => $label)
status) === (string) $key ? 'checked' : '' }} required>
@endforeach @if($errors->has('status'))
{{ $errors->first('status') }}
@endif {{ trans('cruds.spaceUnit.fields.status_helper') }}
@if($errors->has('sensor'))
{{ $errors->first('sensor') }}
@endif {{ trans('cruds.spaceUnit.fields.sensor_helper') }}
@if($errors->has('lat'))
{{ $errors->first('lat') }}
@endif {{ trans('cruds.spaceUnit.fields.lat_helper') }}
@if($errors->has('long'))
{{ $errors->first('long') }}
@endif {{ trans('cruds.spaceUnit.fields.long_helper') }}
@endsection