@extends('pro.my_clients.view')
@section('content-inner')

    <div class="mr-3 pb-3">

        <h4 class='my-3 d-flex'>
            <div>Pro Access</div>
            <div class="ml-auto">
                <a class="btn btn-primary btn-sm" href="{{route('my_clients_SINGLE-ACTION_pro_accessAddNew', ['uid' => $record->uid])}}"><i class='fa fa-plus-circle' aria-hidden='true'></i> Add New</a>
            </div>
        </h4>

        <div class="table-responsive p-0 bg-white border">
            <table class="table table-hover text-nowrap">
                <thead>
                <tr>
                    <th>Id</th>
<th>Reason Category</th>
<th>Reason Memo</th>
<th>Client Id</th>
<th>Pro Id</th>
<th>Created At</th>
<th>Uid</th>
<th>Created By Session Id</th>
<th>Deactivated At</th>
<th>Deactivation Memo</th>
<th>Is Active</th>
<th>Reactivated At</th>
<th>Reactivation Memo</th>
<th>Deactivated By Id</th>
<th>Reactivated By Id</th>
<th>Type</th>
<th>Deactivated By Session Id</th>
<th>Reactivated By Session Id</th>
                </tr>
                </thead>
                <tbody>
                @foreach($subRecords as $subRecord)
                    <tr>
                        <td><?= $subRecord->id ?></td>
<td><?= $subRecord->reason_category ?></td>
<td><?= $subRecord->reason_memo ?></td>
<td><?= $subRecord->client_id ?></td>
<td><?= $subRecord->pro_id ?></td>
<td><?= $subRecord->created_at ?></td>
<td><a href="/pro_access/view/{{ $subRecord->uid }}"><?= $subRecord->uid ?></a></td>
<td><?= $subRecord->created_by_session_id ?></td>
<td><?= $subRecord->deactivated_at ?></td>
<td><?= $subRecord->deactivation_memo ?></td>
<td><?= $subRecord->is_active ?></td>
<td><?= $subRecord->reactivated_at ?></td>
<td><?= $subRecord->reactivation_memo ?></td>
<td><?= $subRecord->deactivated_by_id ?></td>
<td><?= $subRecord->reactivated_by_id ?></td>
<td><?= $subRecord->type ?></td>
<td><?= $subRecord->deactivated_by_session_id ?></td>
<td><?= $subRecord->reactivated_by_session_id ?></td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>

    </div>

@endsection
