<script type="text/javascript">
    $(".modal-title").text("Edit Event type");
</script>
{!! Form::model($result,['url'=>['event-type',$result->id],'id'=>'myForm','novalidate'=>'','method'=>'PUT']) !!}
<div class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="form-group">
                <label class="control-label">Title</label>
                <input class="form-control" name="title" value="{{$result->title}}" type="text"  placeholder="Leave type Title"/>
            </div>
            <div class="form-group">
                <label class="control-label">Office Status</label>
                {!! Form::select('office_status',['Close','Open'],$result->office_status,['class'=>'form-control']) !!}
            </div>
            <div class="form-group">
                <label class="control-label">Effect on employee's holiday ?</label>
                <div class="form-group">
                    <input type="radio" @if($result->holiday_count) checked @endif name="holiday_count" value="1" id="yes"><label for="yes">Yes</label>
                    <input type="radio" @if(!$result->holiday_count) checked @endif name="holiday_count" value="0" id="no"><label for="no">No</label>
                </div>
            </div>
        </div>

    </div>
</div>

<div class="footer">
    <button type="submit" class="btn btn-info btn-fill pull-right">UPDATE</button>
    <button type="button" class="btn btn-default btn-simple pull-right" data-dismiss="modal">Close</button>
    <div class="clearfix"></div>
</div>
{!! Form::close() !!}
<script type="text/javascript">
    $().ready(function() {

        $('#myForm').validate();
    });
</script>