@extends('layouts.master') @section('title', 'PetroERP- An ERP for Petrol Pumps') @section('content')
Leave Type

New Leave Type

{!! Form::open(['action' => 'LeaveTypesController@search', 'method' => 'GET', 'class' => 'form-horizontal']) !!} {!! Form::close() !!} {!! Form::open(['action' => 'LeaveTypesController@store', 'method' => 'POST', 'class' => 'form-horizontal space-top','data-parsley-validate']) !!}
{{Form::label('companyId', 'Company Name', ['class'=>'required col-md-2'])}}
{{Form::select('companyId', $companies, null, ['placeholder' => 'Pick a company Name...', 'id'=>'companyId', 'required'])}}
{{Form::label('name', 'Name', ['class'=>'required col-md-2'])}}
{{Form::text('name', '', ['class'=>'form-control', 'placeholder'=>'Leave Type Name','required'])}}
{{Form::label('maxLimit', 'Max Limit', ['class'=>'required col-md-2'])}}
{{Form::text('maxLimit', '', ['class'=>'form-control', 'min'=>'1','placeholder'=>'Max Limit'])}}
{{Form::label('shortCode', 'Short Code', ['class'=>'col-md-2'])}}
{{Form::text('shortCode', '', ['class'=>'form-control', 'placeholder'=>'Short Code', 'maxlength'=>'2'])}}
{{Form::label('lapses', 'Lapses Y/N', ['class'=>'col-md-2'])}}
{{Form::select('lapses', ['0'=>'No', '1'=>'Yes'], '', ['class'=>'required form-control'])}}
{{Form::submit('Submit', ['class'=>'btn btn-primary col-md-offset-2'])}} {{Form::reset('Reset', ['class'=>'btn btn-primary col-md-offset-2'])}}
{!! Form::close() !!}
@endsection