<form action="{{$action_url}}" method="post" enctype="multipart/form-data">
    <div>
        @php
    isset($avatar) ? $avi = $avatar : $avi = '';
        @endphp
        <img class="your-avatar" src='{{$avi}}'>
        <br />
        <label>Handle</label><br />
        @php
    isset($member->handle) ? $handle = $member->handle : $handle = '';
        @endphp
        <input type="text" name="handle" value="{{$handle}}" />
        <br />
        @php
    isset($member->email) ? $email = $member->email : $email = '';
        @endphp
        <label>Email</label><br />
        <input type="text" name="email" value="{{$email}}" />
        <br />
        @php
    isset($member->pronoun) ? $pronoun = $member->pronoun : $pronoun = '';
        @endphp
        <label>Pronouns</label><br />
        <input type="text" name="pronouns" value="{{$pronoun}}" />
        <br />
        @php
            isset($member->role) ? $role = $member->role : $role = 2;
            //for creation of initial admin account
            if($mode == 'admin-create')
            {
                $role = 0;
            }
        @endphp

        @if($mode != 'admin-create')
            <label>Role</label><br />
            <input type="text" name="role" value="{{$role}}" />
            <br />
        @endif

        @if($mode == 'member-create' || $mode == 'admin-create')
            <label>Fresh Password</label><br />
            <input type="password" id="fresh_pass" name="fresh_pass" value="" />
            <br />
            <label>Confirm Fresh Password</label><br />
            <input type="password" id="fresh_pass_confirm" name="fresh_pass_confirm" value="" />
            <br />
        @endif
        @php
    isset($member->active) ? $status = $member->active : $status = false;
        @endphp

        @if($mode != 'admin-create')
            <label>Status</label><br />
            <select name="status">
                @if($status)
                    <option value="true" selected>Active</option>
                    <option value="false">Not Active</option>
                @else
                    <option value="true">Active</option>
                    <option value="false" selected>Not Active</option>
                @endif
            </select>
            <br />
        @endif

    </div>
    @csrf
    @php
  isset($member->uuid) ? $uuid = $member->uuid : $uuid = 0;
    @endphp
    <input type="hidden" name="id" value="{{$uuid}}" />
    <input type="submit" value="Edit Member" name="submit_button">
</form>