@extends('layouts.adminapp')

@section('content')

<div class="card mb-4">
    <div class="card-header">
        <div class="d-flex">
            <div class="mr-auto p-2 align-self-center"><h4>Select User</h4></div>
        </div>
    </div>
    <div class="card-body">
    <form action="UserSelected" method="post" enctype="multipart/form-data">
    @csrf
        <div class="row">
            
            <div class="col-sm-6 form-group">
                
                <label for="cbProduct">User</label>
                <select class="form-control" id="cbUser" name="User_id" required>
                    <option value="0">Select User</option>
                    @php
                        
                            echo App\Http\Controllers\UserController::UserListForCombo($User_id);
            
                    @endphp
                </select>   
            </div>
        </div>
    
        <div class="d-flex justify-content-end font-weight-bold"><button type="submit" class="btn btn-brand-bg">Go <i class="fas fa-arrow-right"></i></button></div>
    </form>        
    </div>
</div>

@endsection