<div class="form-group required">
    <label class="col-sm-2 control-label" for="description">Description</label>
    <div class="col-sm-10">
        <input type="text" name="description" placeholder="Enter Role Description"
               id="description" class="form-control"/>
    </div>
</div>
<div class="form-group required">
    <label class="col-sm-2 control-label" for="storeId">Select Store</label>
    <div class="col-sm-10">
        <select name="storeId" id="storeId" onselect=""
                onchange="" class="form-control">
            <option value="-1">
                Select Store
            </option>
            @foreach ($stores as $store)
                <option value="{!! $store->id !!}" <?php if ($store->user_id === $users[0]['id']) echo 'selected'; ?>>{!! $store->name!!}</option>
            @endforeach
        </select>
    </div>
</div>
<div class="form-group required">
    <label class="col-sm-2 control-label" for="department">Department</label>
    <div class="col-sm-10">
        <select name="department" id="department" onselect=""
                onchange="" class="form-control">
            <option>
                Select Department
            </option>

            @foreach ($departments as $department)
                <option value="{!! $department->id !!}" <?php if (isset($role)) {
                    if ($department->id === $role->department_id) {
                        echo 'selected';
                    }
                }   ?>
                >{!! $department->name !!}
                </option>
            @endforeach
        </select>
    </div>
</div>

<div class="form-group required">
    <label class="col-sm-2 control-label" for="email">Email</label>

    <div class="col-sm-10">
        <input type="text" name="email" placeholder="Enter Email"
               id="email" class="form-control" value="{{$user->email}}"/>
    </div>
</div>


<div class="form-group required">
    <div class="col-md-2">
        <label class="checkbox" for="status">Status</label>
    </div>

    <div class="col-md-10">
        <div class="checkbox ct_issue">
            <label id="">
                <input type="checkbox" name="status" id="status">
            </label>
        </div>
    </div>
</div>

<div class="form-group">
    <div class="col-md-2"></div>
    <div class="col-md-10 ">
        <button type="submit" id="assignBtn" class="btn btn-success clear-fix">Assign</button>
    </div>
</div>