@extends('layouts.admin.master') @section('title', !empty($locations) ? 'Edit Location' : 'Add Location') @section('content') @include('layouts.admin.flash.alert')

Manage Location Here you can add locations

{{ Breadcrumbs::render('common',['append' => [['label'=> $getController,'route'=> 'admin.locations.index'],['label' => !empty($locations) ? 'Edit Location' : 'Add Location' ]]]) }}

{{ !empty($locations) ? 'Edit Location' : 'Add Location' }}

Back
@if(isset($locations)) {{ Form::model($locations, ['route' => ['admin.locations.update', $locations->id], 'method' => 'patch']) }} @else {{ Form::open(['route' => 'admin.locations.store']) }} @endif
{{ Form::text('name', old('name'), ['class' => 'form-control','placeholder' => 'Name']) }} @if($errors->has('name')) {{ $errors->first('name') }} @endif
{{ Form::text('latitude', old('latitude'), ['class' => 'form-control','placeholder' => 'Latitude']) }} @if($errors->has('latitude')) {{ $errors->first('latitude') }} @endif
{{ Form::text('longitude', old('longitude'), ['class' => 'form-control','placeholder' => 'Longitude']) }} @if($errors->has('longitude')) {{ $errors->first('longitude') }} @endif
{{ Form::select('status', [1 => 'Active', 0 => 'Inactive'], old("status"), ['class' => 'form-control']) }}
{{ Form::close() }}
@stop