@extends('Layout.Payslipmaster')

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

@section('header-include')
    <link rel="stylesheet" href="/js/fuelux/fuelux.css" type="text/css"/>
@endsection

@section('content')

    <section id="content">
        <form method="POST" action="/relief/{{ $relief->id }}" role="form" class="vbox form-horizontal clearfix">
            {{ method_field('PATCH') }}
            {{ csrf_field() }}
            <section class="vbox">
                <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"><i class="fa fa-home"></i> Relief</a></li>
                        <li class="active">Edit relief</li>
                    </ul>
                    <section class="panel panel-default col-md-6 no-padder" style="margin-right:30px;">
                        <header class="panel-heading font-semibold">
                            Edit 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="{{ $relief->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>
            </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>--}}
@endsection

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