@extends('admin.pros.view')
@section('content-inner')

    <div class="pb-3">

        <h5 class='my-3 d-flex stag-heading stag-heading-sub'>
            <div>Payment Schedule</div>
            <div class="ml-auto">
                <!-- _ADD_NEW_LINK_ -->
            </div>
        </h5>

        <div class="table-responsive p-0 bg-white border stag-table stag-table-sub">
            <table class="table table-hover text-nowrap">
                <thead>
                <tr>
                    <th>&nbsp;</th>
<th>Created At</th>
<th>Type</th>
<th>Deactivated At</th>
<th>Deactivation Memo</th>
<th>Is Active</th>
<th>Reactivated At</th>
<th>Reactivation Memo</th>
<th>Amount</th>
<th>Code</th>
<th>Amount</th>
<th>Responsibility</th>
                </tr>
                </thead>
                <tbody>
                @foreach($subRecords as $subRecord)
                    <tr>
<<<<<<< HEAD
                        <td><a href="/pro_rates/view/{{ $subRecord->uid }}"><?= $subRecord->uid ?></a></td>
=======
                        <td><a href="/pro_rates/view/{{ $subRecord->uid }}"><i class="fas fa-share-square"></i></a></td>
<td><?= friendly_date_time($record->created_at) ?></td>
<td><?= $subRecord->type ?></td>
<td><?= friendly_date_time($record->deactivated_at) ?></td>
<td><?= $subRecord->deactivation_memo ?></td>
<td><?= $subRecord->is_active ?></td>
<td><?= friendly_date_time($record->reactivated_at) ?></td>
<td><?= $subRecord->reactivation_memo ?></td>
<td><?= $subRecord->amount ?></td>
>>>>>>> f18f1950c1c00e1cf4b28c759c8297a5c34bbab6
<td><?= $subRecord->code ?></td>
<td><?= $subRecord->amount ?></td>
<td><?= $subRecord->responsibility ?></td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>

    </div>

@endsection
