[Back]
@extends('index')
@section("body")
<h1>Delete User</h1>
<form method ="POST" action="listuser-action" onsubmit="return confirm('Are you sure you want to delete this user?');">
    Fullname: <input type="text" name="fullname" value='{{$data->fullname}}' disabled><br>
    Username: <input type="text" name="username" value='{{$data->username}}' disabled><br>
    Password: <input type="password" name="password" value='{{$data->password}}' disabled><br>
    Level:
        <select name=" level" disabled>
            <option value=''>Choose</option>
            <option value='admin'
            @if ($data->userlevel=='admin')
            selected
            @endif
            >Admin</option>
            <option value='Staff'
            @if ($data->userlevel=='Staff')
            selected
            @endif
            >Staff</option>
            <option value='user'
            @if ($data->userlevel=='user')
            selected
            @endif
            >User</option>
        </select>
        <input type='hidden' name='id' value="{{$data->id}}">
        <input type='submit' name= "btnDeleteUser" value='Delete' >
        
    @csrf


</form>
@endsection