@extends('layouts.pro-logged-in')
@section('content')

    <h3 class="d-flex my-3 px-3 stag-heading stag-heading-index">
        <div>My Payment Schedule: List</div>
        <div class="ml-auto">
            <!-- _ADD_NEW_LINK_ -->
        </div>
    </h3>

    <div class="table-responsive p-0 bg-white border stag-table stag-table-index">
        <table class="table table-hover text-nowrap table-striped">
            <thead>
            <tr>
<th>&nbsp;</th>
<th>Code</th>
<th>Description (HCP/Ally)</th>
<th>Amount</th>
<th>Earnings</th>
            </tr>
            </thead>
            <tbody>
            @foreach($records as $record)
                <tr>
<td><a href="/my_payment_schedule/view/<?= $record->uid ?>"><i class="fas fa-share-square"></i></a></td>
<td><?= $record->code ?></td>
<td><?= $record->as_hcp_or_ally ?></td>
<td><?= $record->amount ?></td>
<td><?php $_r = \Illuminate\Support\Facades\DB::select("select '- TODO -' as result");
echo ($_r && count($_r)) ? $_r[0]->result : '-'; ?></td>
                </tr>
            @endforeach
            </tbody>
        </table>
    </div>

@endsection
