@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;">Add Fund Manage</h5>
            </div>
            <div class="card-body" style="padding-bottom: 50px;">
               
                <div class="col-md-6">
                    <p>
                        <a style="color: azure;padding-right: 7px;">Username:</a> {{$pay_data->username}}<br> 
                        <a style="color: azure;padding-right: 7px;">Name:</a> {{$pay_data->user_name}}<br> 
                        <a style="color: azure;padding-right: 7px;">Mobile:</a> {{$pay_data->user_mobile}}<br>
                        <a style="color: azure;padding-right: 7px;">Payment Method:</a> {{$pay_data->payment_method}}<br> 
                        <a style="color: azure;padding-right: 7px;">Account:</a> {{$pay_data->account}}<br> 
                        <a style="color: azure;padding-right: 7px;">Amount:</a> {{$pay_data->amount}}<br> 
                        <a style="color: azure;padding-right: 7px;">Status:</a> @if($pay_data->status == 0) Pending @elseif($pay_data->status == 1) Paid @else Rejected @endif<br>
                    </p>
                </div> 

                @if($pay_data->status == 0)
                <form method="post" action="{{url('admin/afmng/paid')}}">@csrf
                    <input type="hidden" name="pay_id" value="{{$pay_data->id}}">

                    <div class="col-md-4" style="padding-top: 20px">
                        <label class="form-label">Select Status*</label>
                        <select style="background: transparent;color: #c3c3c3;width: 100%;" class="form-control" id="status" name="status" required>
                            <option value="1">Confirm Payment</option>
                            <option value="2">Reject Payment</option>
                        </select>
                    </div>

                    <div class="col-md-4" style="padding-top: 20px">
                        <label class="form-label">Amount*</label>
                        <input style="margin-bottom: 10px;height: 38px;" style="background: transparent;color: #c3c3c3;" type="number" class="form-control" id="amount" name="amount" value="{{$pay_data->amount}}" required>
                    </div>

                    <div class="col-md-4" style="padding-top: 20px">
                        <label class="form-label">Admin PIN*</label>
                        <input style="margin-bottom: 10px;height: 38px;" style="background: transparent;color: #c3c3c3;" type="password" class="form-control" id="pin" name="pin" required>
                    </div>

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

                </form>
                @endif
            </div>
        </div>
    </div>   
</div>
@endsection