@extends('layouts/edit-form', [ 'createText' => trans('admin/locations/table.create') , 'updateText' => trans('admin/locations/table.update'), 'helpTitle' => trans('admin/locations/table.about_locations_title'), 'helpText' => trans('admin/locations/table.about_locations'), 'formAction' => ($item) ? route('locations.update', ['location' => $item->id]) : route('locations.store'), ]) {{-- Page content --}} @section('inputFields') @include ('partials.forms.edit.name', ['translated_name' => trans('admin/locations/table.name')])
{!! Form::select('parent_id', $location_options , Input::old('parent_id', $item->parent_id), array('class'=>'select2 parent', 'style'=>'width:350px')) !!} {!! $errors->first('parent_id', ' :message') !!}
{!! Form::select('manager_id', $manager_list , Input::old('manager_id', $item->manager_id), array('class'=>'select2 parent', 'style'=>'width:350px')) !!} {!! $errors->first('manager_id', ' :message') !!}
{{ Form::text('currency', Input::old('currency', $item->currency), array('class' => 'form-control','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} {!! $errors->first('currency', ':message') !!}
@include ('partials.forms.edit.address') @if ($snipeSettings->ldap_enabled == 1)
{{ Form::text('ldap_ou', Input::old('ldap_ou', $item->ldap_ou), array('class' => 'form-control')) }} {!! $errors->first('ldap_ou', ':message') !!}
@endif @if ($item->image)
{{ Form::checkbox('image_delete') }} {!! $errors->first('image_delete', ':message') !!}
@endif
{{ Form::file('image') }} {!! $errors->first('image', ':message') !!}
@stop @if (!$item->id) @section('moar_scripts') @stop @endif