{!! Form::open(['action'=>['UserController@storeUpdatedUserEdits', 'id'=>$id], 'method'=>'POST', 'id'=>'update-user-edits']) !!}
<div class="error" style="text-align: center;"><b>On this Window, You can Update what the User can Edit in the System</b></div><br>
<div class="guestDetails_inputDivider"></div>
<div  style="text-align: center;">
    Update what can be Edited by: <b class="error">{!! $user->firstName." ".$user->lastName !!}</b>
</div><br>
<button type="submit" disabled style="display: none" aria-hidden="true"></button>
<div class="guestDetails_input">
    <div class="guestDetails_inputLabel">
        Edit Direct Payment Voucher
        @if($userEdits->edit_direct_pv == 1)
            <input type="checkbox" name="direct-pv" value="1" checked>
        @else
            <input type="checkbox" name="direct-pv" value="1">
        @endif |
    </div>
</div>
<div class="guestDetails_input">
    <div class="guestDetails_inputLabel">
        Approve Credit Notes
        @if($userEdits->approve_credits == 1)
            <input type="checkbox" name="approve-credit-notes" value="1" checked>
        @else
            <input type="checkbox" name="approve-credit-notes" value="1">
        @endif |
    </div>
</div>
<div class="guestDetails_input">
    <div class="guestDetails_inputLabel">
        Approve Projects
        @if($userEdits->approve_plcy == 1)
            <input type="checkbox" name="approve-policy" value="1" checked>
        @else
            <input type="checkbox" name="approve-policy" value="1">
        @endif |
    </div>
</div>
<div class="guestDetails_inputDivider"></div>
<div class="guestDetails_input">
    <div class="guestDetails_inputLabel">
        Approve Your Own Projects
        @if($userEdits->approve_own_plcy == 1)
            <input type="checkbox" name="approve-own-policy" value="1" checked>
        @else
            <input type="checkbox" name="approve-own-policy" value="1">
        @endif |
    </div>
</div>
<div class="guestDetails_input">
    <div class="guestDetails_inputLabel">
        Approve Client Accounts
        @if($userEdits->approve_client == 1)
            <input type="checkbox" name="approve-client" value="1" checked>
        @else
            <input type="checkbox" name="approve-client" value="1">
        @endif |
    </div>
</div>
<div class="guestDetails_input">
    <div class="guestDetails_inputLabel">
        Unauthorize Rights
        @if($userEdits->disapprove == 1)
            <input type="checkbox" name="disapprove" value="1" checked>
        @else
            <input type="checkbox" name="disapprove" value="1">
        @endif |
    </div>
</div>
{!! Form::close() !!}
