@extends('vendor.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;">Payout Status</h5>
            </div>
            <div class="card-body">
                <div class="table-responsive">
                    <table id="datatable" class="display table table-striped table-bordered" style="width: 100%;">
                        <thead style="background: #1f3740;">
                            <tr>
                                <th style="text-align: center; color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;">No.</th>
                                <th style="color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;min-width: 150px;">Issue Date</th>
                                <th style="text-align: center; color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;">Method</th>
                                <th style="text-align: center; color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;">Account</th>
                                <th style="color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;min-width: 90px;">Amount</th>
                                <th style="color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;min-width: 90px;">Charge</th>
                                <th style="color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;min-width: 90px;">TrxID</th>
                                <th style="text-align: center; color: #fff;padding-top: 3px;padding-bottom: 3px;font-size: 13px;min-width: 90px;">Status</th>

                            </tr>
                        </thead>
                        <tbody>
                            <?php $no=1; ?>
                            @foreach($payments as $pay)
                            <tr>
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;text-align: center; color: azure;">{{$no++}}</td>
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px; color: azure;">{{$pay->created_at}}</td>
                                
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;text-align: center; color: azure;">{{$pay->payment_method}}</td>
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;text-align: center; color: azure;">{{$pay->account}}</td>
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;color: #ffeb00;">{{$pay->amount}}</td>
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;color: #eba9ff;">{{$pay->charge}}</td>

                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;color: azure;">{{$pay->trx_id}}</td>


                                @if($pay->status == 0)
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;text-align: center; color: red;">Pending</td>
                                @else
                                <td style="padding-top: 3px;padding-bottom: 3px;font-size: 13px;text-align: center; color: #abfe17;">Paid</td>
                                @endif
                            </tr>
                            @endforeach
                        </tbody>                      
                       
                    </table>
                </div>
            </div>
        </div>
    </div>
     
</div>
@endsection