@extends('layouts.master') @section('title', 'PetroERP- An ERP for Petrol Pumps') @section('content')
@include('partials.heading', ['heading1' => 'Apply for', 'heading2' => 'Leave'])
{!! Form::open(['action' => 'LeavesController@store', 'method' => 'POST', 'class' => 'form-horizontal']) !!}
{{Form::label('fromDate', 'From Date', ['class'=>'col-md-2'])}}
{{Form::date('fromDate', \Carbon\Carbon::now(), ['class'=>'form-control', 'placeholder'=>'Select Date'])}}
{{Form::label('toDate', 'To Date', ['class'=>'col-md-2'])}}
{{Form::date('toDate', '', ['class'=>'form-control', 'placeholder'=>'Select Date', 'id' => 'toDate'])}}
{{Form::label('leaveTypeId', 'Select Leave Type', ['class'=>'col-md-2'])}}
{{Form::select('leaveTypeId', $leavetypes, null, ['placeholder' => 'Pick Leave Type', 'class'=>'form-control'])}}
{{Form::label('noOfDays', 'noOfDays', ['class'=>'col-md-2'])}}
{{Form::text('noOfDays', '', ['class'=>'form-control', 'placeholder'=>'No Of Days', 'readonly' => 'true'])}}
{{Form::submit('Submit', ['class'=>'btn btn-primary col-md-offset-2'])}}
{!! Form::close() !!}
@endsection