@extends('admin.layout.main')
@section('content')
<div class="row">
    <div class="col-lg-12" style="padding-left: 4px;padding-right: 4px;">
        <div class="card m-b-30" style="border-radius: 5px;">
            <div class="card-header">
                <h5 class="card-title" style="font-weight: bold; padding-top: 15px; font-size: 20px;">Point Transfer</h5>
            </div>

            <div class="card-body" style="padding-bottom: 50px;">
                <form action="{{url('admin/point/send')}}" method="post">@csrf

                    @if ($errors->any())
                    <div class="alert alert-danger">
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    </div>
                    @endif
                
                    <div class="row">
                        <div class="col-md-4">
                            <select style="margin-bottom: 5px;height: 38px;" class="select2-single" id="username" name="username" required> 
                                <option value="">Select Vendor</option>
                                @foreach($vendors as $vend)
                                <option value="{{$vend->username}}">{{$vend->username}}</option>
                                @endforeach
                            </select>
                        </div>

                        <div class="col-md-4">
                            <input style="margin-bottom: 5px;height: 38px;margin-top: 10px;" type="number" class="form-control" id="amount" name="amount" placeholder="Amount" required>
                        </div>

                        <div class="col-md-4">
                            <input style="margin-bottom: 5px;height: 38px;margin-top: 10px;" type="password" class="form-control" id="pin" name="pin" placeholder="Admin PIN" required>
                        </div>

                        <div class="col-md-4">
                            <button style="height: 38px;margin-top: 10px;background: #ec1666;color: #fff;" type="submit" class="btn">Confirm Now</button>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div> 

          
</div>
@endsection