@extends('layouts.app')


@section('title')
Add Employee Attendace schedual plan 
@stop

@section('breadcrumb')
<ol class="breadcrumb pull-right">
        <li><a href="{{route('home')}}"><i class="fa fa-dashboard"></i> Home</a></li>
        {{-- @permission('list-dealer')
        <li ><a href="{{route('dealer.all')}}">Attendace schedual plan</a></li>
        @endpermission --}}
        <li class="active">Add Newtork</li>
      </ol>
@stop

@section('content')

<div class="container-fluid">
                <!--.row-->
                <div class="row">

                    <div class="col-md-12">
                         @if(Session::has('error')) <div id="successMessage" class="alert alert-success" role="alert">
                            {{ Session::get('error') }}
                          </div> @endif
                        
                        <div class="white-box">
                            <h3 class="box-title m-b-0"><i class="icon-user fa-fw"></i> Add Attendace schedual plan</h3>
                          
                            <form class="form-horizontal" action="{{route('schedual-plan.insert')}}" method="post" autocomplete="off">
                               {{csrf_field()}}
                                <div class="form-group">
                                    <label for="exampleInputuname" class="col-sm-2 control-label">Medical Leave <span style="color: red">*</span></label>
                                    <div class="col-sm-10" style="width: 40%;";>
                                        <div class="input-group">
                                            <div class="input-group-addon"><i class="ti-user"></i></div>
                                            <input  type="integer" class="form-control" name="medical_leave" value="{{old('medical_leave')}}" id="exampleInputuname" placeholder="Enter Medical Leave">
                                        @if ($errors->has('medical_leave'))
                                    <span class="help-block">
                                        <strong>{{ $errors->first('medical_leave') }}</strong>
                                    </span>
                                @endif
                                        </div>
                                    </div>
                                </div>
                                  <div class="form-group">
                                    <label for="exampleInputuname" class="col-sm-2 control-label">Anual Leave <span style="color: red">*</span></label>
                                    <div class="col-sm-10" style="width: 40%;">
                                        <div class="input-group">
                                            <div class="input-group-addon"><i class="ti-user"></i></div>
                                            <input  type="integer" class="form-control" name="anual_leave" value="{{old('anual_leave')}}" id="exampleInputuname" placeholder="Enter Anual Leave">
                                        @if ($errors->has('anual_leave'))
                                    <span class="help-block">
                                        <strong>{{ $errors->first('anual_leave') }}</strong>
                                    </span>
                                @endif
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label for="exampleInputuname" class="col-sm-2 control-label">Special Leave <span style="color: red">*</span></label>
                                    <div class="col-sm-10" style="width: 40%;">
                                        <div class="input-group">
                                            <div class="input-group-addon"><i class="ti-user"></i></div>
                                            <input  type="integer" class="form-control" name="special_leave" value="{{old('special_leave')}}" id="exampleInputuname" placeholder="Enter Special Leave">
                                        @if ($errors->has('special_leave'))
                                    <span class="help-block">
                                        <strong>{{ $errors->first('special_leave') }}</strong>
                                    </span>
                                @endif
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label for="exampleInputuname" class="col-sm-2 control-label">Other Leave <span style="color: red">*</span></label>
                                    <div class="col-sm-10" style="width: 40%;">
                                        <div class="input-group">
                                            <div class="input-group-addon"><i class="ti-user"></i></div>
                                            <input  type="integer" class="form-control" name="other_leave" value="{{old('other_leave')}}" id="exampleInputuname" placeholder="Enter Other Leave">
                                        @if ($errors->has('other_leave'))
                                    <span class="help-block">
                                        <strong>{{ $errors->first('other_leave') }}</strong>
                                    </span>
                                @endif
                                        </div>
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label for="exampleInputuname" class="col-sm-2 control-label">Weekend Leave <span style="color: red">*</span></label>
                                    <div class="col-sm-10" style="width: 40%;">
                                        <div class="input-group">
                                            <div class="input-group-addon"><i class="ti-user"></i></div>
                                            <input  type="integer" class="form-control" name="weekend_leave" value="{{old('weekend_leave')}}" id="exampleInputuname" placeholder="Enter Weekend Leave">
                                        @if ($errors->has('weekend_leave'))
                                    <span class="help-block">
                                        <strong>{{ $errors->first('weekend_leave') }}</strong>
                                    </span>
                                @endif
                                        </div>
                                    </div>
                                </div>
                              

                               
                                <div class=" col-sm-4">&nbsp;</div>
                                <div class=" col-sm-4">
                                 <div class="form-group">
                                        <button type="submit" class="btn btn-info waves-effect waves-light m-t-10" style="width: 40%">Save</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </div>
                </div>
                <!--./row-->
            </div>
            <!-- /.container-fluid -->

@stop


@section('js')

    <script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/jquery.inputmask.bundle.js"></script>

    

@stop