@extends('layouts/default') {{-- Page title --}} @section('title') @if ($location->id) {{ trans('admin/locations/table.update') }} @else {{ trans('admin/locations/table.create') }} @endif @parent @stop @section('header_right') {{ trans('general.back') }} @stop {{-- Page content --}} @section('content')
@if ($location->id)

{{ $location->name }}

@endif
{!! $errors->first('name', ' :message') !!}
{!! Form::select('parent_id', $location_options , Input::old('parent_id', $location->parent_id), array('class'=>'select2 parent', 'style'=>'width:350px')) !!} {!! $errors->first('parent_id', ' :message') !!}
{{ Form::text('currency', Input::old('currency', $location->currency), array('class' => 'form-control','placeholder' => 'USD', 'maxlength'=>'3', 'style'=>'width: 60px;')) }} {!! $errors->first('currency', ':message') !!}
{!! $errors->first('address', ' :message') !!}
{!! $errors->first('address2', ' :message') !!}
{!! $errors->first('city', ' :message') !!}
{!! $errors->first('state', ' :message') !!}
{!! $errors->first('zip', ' :message') !!}
{!! Form::countries('country', Input::old('country', $location->country), 'select2 country') !!} {!! $errors->first('country', ' :message') !!}
@if (!$location->id) @section('moar_scripts') @stop @endif @stop