@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;">Admin Info Edit</h5>
            </div>

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


                    <input type="hidden" name="admin_id" value="{{$admin_data->id}}">
                
                    <div class="row">
                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="text" name="name" value="{{$admin_data->name}}" placeholder="Admin Name" required>
                        </div>

                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="text" name="mobile" value="{{$admin_data->mobile}}" placeholder="Mobile Number" required>
                        </div> 

                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="text" name="email" value="{{$admin_data->email}}" placeholder="Email Address" required>
                        </div>

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

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

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

    
    <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;">Admin Password Update</h5>
            </div>

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

                
                    <div class="row">
                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="password" name="current_pass" id="current_pass" placeholder="Enter Exist Password" required>
                        </div>

                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="password" name="password" id="password" placeholder="Enter New Password" required>
                        </div>

                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="password" name="conf_password" id="conf_password" placeholder="Enter Again" required>
                        </div>

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

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

    <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;">Admin PIN Update</h5>
            </div>

            <div class="card-body" style="padding-bottom: 50px;">
                <form action="{{url('admin/updatepin')}}" method="post">@csrf
                    
                    <div class="row">
                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="password" name="current_pin" id="current_pin" placeholder="Enter Exist PIN" required>
                        </div>

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

                        <div class="col-md-6">
                            <input style="margin-bottom: 10px;height: 38px;" class="form-control" type="password" name="conf_pin" id="conf_pin" placeholder="Enter Again" required>
                        </div>

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

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

    <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;">Profit ON/OFF</h5>
            </div>

            <div class="card-body" style="padding-bottom: 50px;">
                <form action="{{url('admin/ponoff')}}" method="post">@csrf                   
                    <p>Status: @if($wallet->payon == 1) <span style="color: #c0fff5;">Online</span> @else <span style="color: red;">Offline</span> @endif</p>
                    <div class="row">
                        <div class="col-md-6">
                            <select class="form-control" name="ponoff" style="margin-bottom: 10px;height: 38px;">
                                <option value="1">Profit ON</option>
                                <option value="2">Profit OFF</option>
                            </select>
                        </div>

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

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

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