{{-- {{ __('Dashboard') }} --}}
  1. {{ __('Admin') }}
  2. {{ __('Locations') }}
  3. {{--
  4. {{ __($location->name) }}
  5. --}}
  6. {{ __('Create') }}

Create Location

{!!Form::open(['route' => 'admin.locations.store', 'method' => 'post'])!!}
{{Form::label('name', 'Name*', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}} {{Form::text('name', null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900'])}}
{{Form::label('room', 'Room', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}} {{Form::text('room', null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900'])}}
{{Form::label('location_type_id', 'Location Type*', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::select('location_type_id', $location_types, null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900' .($errors->has('location_id') ? 'is-invalid' : null), 'placeholder' => 'Select'])}} @if($errors->has('location_type_id'))

{{$errors->first('state_id')}}

@endif
{{Form::label('description', 'Description*', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::textarea('description', "Desc", ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900', 'required' => true, $errors->has('description') ? 'is-invalid' : null])}} @if($errors->has('description'))

{{$errors->first('description')}}

@endif
{{Form::label('address', 'Address', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}} {{Form::text('address', null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900'])}}
{{Form::label('address2', 'Address 2', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}} {{Form::text('address2', null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900'])}}
{{Form::label('city', 'City', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}} {{Form::text('city', null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900'])}}
{{Form::label('state_id', 'State*', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::select('state_id', $states, null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900' .($errors->has('location_id') ? 'is-invalid' : null), 'placeholder' => 'Select'])}} @if($errors->has('state_id'))

{{$errors->first('state_id')}}

@endif
{{Form::label('postal_code', 'Postal Code', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}} {{Form::text('postal_code', null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900'])}}
{{Form::label('country_id', 'Country*', ['class'=>'control-label dark:text-slate-300 text-l'])}} {{Form::select('country_id', $countries, null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900' .($errors->has('location_id') ? 'is-invalid' : null), 'placeholder' => 'Select'])}} @if($errors->has('country_id'))

{{$errors->first('country_id')}}

@endif
{{Form::label('Longitude', 'Longitude', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}} {{Form::text('longitude', null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900'])}}
{{Form::label('latitude', 'Latitude', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}} {{Form::text('latitude', null, ['class' => 'text-l dark:bg-slate-800 dark:text-slate-300 dark:border-slate-900'])}}
{{--
{{Form::checkbox('is_active', 1, $location->is_active)}} {{Form::label('is_active', 'Is active?', ['class'=>'control-label dark:bg-gray-800 dark:text-gray-300'])}}
--}}
{!!Form::close()!!}