@extends('admin.layouts.layout') @section('css') @endsection @section('main')
{{$moduleName}}
@if($id) {!! Form::model($data, [ 'method' => 'PATCH', 'route' => [$route, $id], 'class' => 'form-horizontal', 'id'=>'userForm', 'enctype'=>'multipart/form-data' ]) !!} @else {!! Form::open(array('route' => $route,'method'=>'POST', 'enctype'=>'multipart/form-data','id'=>'userForm')) !!} @endif
{!! Form::label('location', 'Location *:',array('class'=>'col-md-3 col-form-label','for'=>'location'),false) !!}
{!! Form::text('location',null,['class'=>'form-control','placeholder'=>'Enter location','id'=>'location']) !!} @if ($errors->has('location')) {{ $errors->first('location') }} @endif
{!! Form::label('status', 'Status *:',array('class'=>'col-md-3 col-form-label','for'=>'status'),false) !!} @php($sta = (isset($data->status) && $data->status==1)?'checked':'') @php($std = (isset($data->status) && $data->status!=1)?'checked':'') @php($default_chk = (empty($sta) && empty($std))?'checked':'')
{!! Form::close() !!}
@endsection @section('scripts') @endsection