@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;">Member Data</h5>
            </div>
            <div class="card-body" style="padding-bottom: 50px;">
                <div class="row">
                    <div class="col-md-4">
                        <p style="color: #d1faff;">
                            <a style="color: #fff;padding-right: 7px;">Username:</a> {{$member_data->username}}<br>
                            <a style="color: #fff;padding-right: 7px;">Name:</a> {{$member_data->name}}<br>
                            <a style="color: #fff;padding-right: 7px;">Mobile:</a> {{$member_data->mobile}}<br>
                            <a style="color: #fff;padding-right: 7px;">Email:</a> {{$member_data->email}}<br>
                            <a style="color: #fff;padding-right: 7px;">Join Date:</a> {{$member_data->created_at}}<br><a style="color: #fff;padding-right: 7px;">Account Status:</a> @if($member_data->status == 0) @if($member_data->activ_status == 1) <a style="color:#00dcff;">Active</a> @else <a style="color:red;">Inactive</a> @endif @else <a style="color:red;">Blocked</a> @endif <br>
                        </p>
                    </div> 

                    <div class="col-md-4">
                        <p style="color: #d1faff;">
                            <a style="color: #fff;padding-right: 7px;">Country:</a> {{$member_data->country}}<br>
                            <a style="color: #fff;padding-right: 7px;">Address:</a> {{$member_data->address}}<br>
                            <a style="color: #fff;padding-right: 7px;">Refer ID:</a> {{$member_data->sponsor}} <br>
                            <a style="color: #fff;padding-right: 7px;">Refers:</a> @if(is_null($member_data->sponsor_count)) 0 @else {{$member_data->sponsor_count}} @endif<br>
                            <a style="color: #fff;padding-right: 7px;">Refer Sales:</a> @if(is_null($member_data->refpak)) 0 @else {{$member_data->refpak}} @endif<br>
                        </p>
                    </div>

                    <div class="col-md-4">
                        <p style="color: #d1faff;">
                            <a style="color: #fff;padding-right: 7px;">Earning Wallet:</a> @if(is_null($member_data->balance)) 0 @else {{$member_data->balance}} @endif<br>
                            <a style="color: #fff;padding-right: 7px;">Buying Wallet:</a> @if(is_null($member_data->credit)) 0 @else {{$member_data->credit}} @endif<br>
                            <a style="color: #fff;padding-right: 7px;">Total Buy:</a> @if(is_null($member_data->total_buy)) 0 @else {{$member_data->total_buy}} @endif<br>
                            <a style="color: #fff;padding-right: 7px;">Total Earn:</a> @if(is_null($member_data->tearn)) 0 @else {{$member_data->tearn}} @endif<br>
                            <a style="color: #fff;padding-right: 7px;">Total Payout:</a> {{$pay}}
                            
                        </p>
                    </div>
                </div>

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