@extends('layouts/gnr_layout') @section('title', '| Add Area') @section('content')
Lowest Level Branch Assign
{!! Form::open(array('url' => '', 'role' => 'form', 'class' => 'form-horizontal form-groups')) !!}
{!! Form::label('name', 'Level:', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::text('name', @$layer->title, ['class' => 'form-control', 'id' => 'name', 'type' => 'text', 'placeholder' => 'Enter area name', 'readonly' => 'readonly']) !!}
{!! Form::label('layer_objects', 'Level Objects:', ['class' => 'col-sm-2 control-label']) !!}
{!! Form::label('branch', 'Branch:', ['class' => 'col-sm-2 control-label']) !!}
@foreach($branchList as $branch) {{-- BRANCH LISTING EXCEPT HEAD OFFICE --}} @if($branch->id==1) @continue @endif
{!! Form::checkbox('branchId[]', ($branch->id), false, array('class' => 'branchId ')) !!} {!! Form::label(Illuminate\Support\Str::lower($branch->name), (str_pad($branch->branchCode, 4, '0', STR_PAD_LEFT) . ' - ' . $branch->name)) !!}
@endforeach
{!! Form::submit('Submit', ['id' => 'submit', 'class' => 'btn btn-info']) !!} Close
{!! Form::close() !!}
@endsection @include("gnr.tools.managementLevel.assignLevelWiseLayerObject.script")