<script type="text/javascript">
    $(".modal-title").text("Add new Role");
</script>
{!! Form::open(['url'=>'roleUpdate','id'=>'myForm','novalidate'=>'']) !!}
<div class="content">
    <div class="row">
        <div class="col-md-12">
            <div class="form-group">
                <label class="control-label">Role Name <star>*</star></label>
                <input class="form-control" name="role_title" value="{{$role->title}}" type="text" required="true"  placeholder="Start typing here"/>
            </div>
            <div class="form-group">
                <label class="control-label">Summary</label>
                <textarea class="form-control" maxlength="250" name="summary" rows="4" placeholder="write the responsibility of this role (optional). max: 250 char">{{$role->summary}}</textarea>
            </div>
        </div>
    </div>
</div>

<div class="footer">
    {!! Form::hidden('id',$role->id) !!}
    <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>
