@extends('Layout.Payslipmaster')

@section('title', 'Create relief')

@section('content')

    <section id="content">
        <form method="POST" action="/relief" role="form" class="vbox form-horizontal clearfix">
            {{ csrf_field() }}
            <section class="scrollable padder">
                <ul class="breadcrumb no-border no-radius b-b b-light pull-in">
                    <li><a href="."><i class="fa fa-home"></i> Home</a></li>
                    <li><a href="/relief">Relief</a></li>
                    <li class="active">Create a relief</li>
                </ul>
                <section class="panel panel-default col-md-6 no-padder" style="margin-right:30px;">
                    <header class="panel-heading font-semibold">
                        Create and configure a relief
                    </header>
                    <div class="panel-body pull-in">
                        @include('Layout.errors')
                        <div class="col-md-6">
                            <label class="control-label">Relief name</label>
                            <input type="text" class="form-control {{ ($errors->has('relief-name'))?'input-danger':'' }}" name="relief-name" value="{{ old('relief-name') }}">
                        </div>
                        <div class="col-md-12" style="margin-top:10px;">
                            <div class="pull-right">
                                <a href="/relief"  class="btn btn-default"><i class="fa fa-close"></i>Cancel</a>
                                <button type="submit" class="btn btn-success"><i class="fa fa-save"></i>Save</button>
                            </div>
                        </div>
                    </div>
                </section>
            </section>
            <a href="#" class="hide nav-off-screen-block" data-toggle="class:nav-off-screen, open" data-target="#nav,html"></a>
        </form>
    </section>
    <aside class="bg-light lter b-l aside-md hide" id="notes">
        <div class="wrapper">Notification</div>
    </aside>

@endsection

@section('footer-include')
    <!-- fuelux -->
    <script src="/js/libs/underscore-min.js"></script>
    <script src="/js/fuelux/fuelux.js"></script>
    {{--<script src="js/fuelux/demo.datagrid.js"></script>--}}
    <!-- select2 -->
    <script src="/js/select2/select2.min.js"></script>
@endsection

@section('j-script')
    <!-- Jquery -->
    <script>
        $(document).on('ready', function(){
        });
    </script>
@endsection