<x-app-layout :assets="$assets ?? []">
    <div>
        <div class="row">
            <div class="col-xl-12 col-lg-12">
                <div class="card">
                    <div class="card-header d-flex justify-content-between">
                        <div class="header-title">
                            <h4 class="card-title">Upload Documents</h4>
                        </div>
                    </div>
                    <div class="card-body">
                        <form action="{{ route('admin.users.storedocadmin') }}" method="POST" role="form text-left" class="needs-validation" enctype="multipart/form-data">
                            @csrf
                            <div class="new-user-info">
                                <div class="row">
                                    <div class="form-group col-md-6">
                                        <label class="form-label" for="userid">Select Client:</label>
                                        <select class="form-control" name="userid" id="userid" >
                                            @if (count($users) > 0)
                                                @foreach ($users as $user)
                                                    <option value="{{ $user->id }}">{{ $user->name }} ({{ $user->email }})
                                                    </option>
                                                @endforeach
                                            @endif
                                        </select>
                                    </div>
                                </div>
                                <div class="row">
                                    <div class="form-group col-md-6">
                                        <label class="form-label" for="mobile"><b>Identity Proof:</b> <span class="text-danger">*</span></label>
                                        <ul>
                                            <li>Passport</li>
                                            <li>Driving License</li>
                                            <li>Goverment Issued Photo ID</li>
                                        </ul>
                                        <input class="form-control" type="file" id="identity" name="identity" accept="image/*,application/pdf" required />
                                    </div>
                                    <div class="form-group col-md-6">
                                        <label class="form-label" for="mobile"><b>Residential Proof:</b> <span class="text-danger">*</span></label>
                                        <ul>
                                            <li>Utility Bill(Phone,Electricity,Gas)</li>
                                            <li>Bank Statement</li>
                                            <li>Goverment Tax Document</li>
                                        </ul>
                                        <input class="form-control" type="file" id="residential" name="residential" accept="image/*,application/pdf" required />
                                    </div>
                                </div>
                                <button type="submit" class="btn btn-sm btn-primary">Save</button>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</x-app-layout>
