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

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

        <h4 class='my-3 d-flex'>
            <div>Erx</div>
            <div class="ml-auto">
                <a class="btn btn-primary btn-sm" href="{{route('my_clients_SINGLE-ACTION_erxAddNew', ['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>Action Item Category</th>
<th>Content Detail</th>
<th>Content Text</th>
<th>Is Signed By Prescriber</th>
<th>Signed By Prescriber At</th>
<th>Status Category</th>
<th>Status Memo</th>
<th>Client Id</th>
<th>Prescriber Pro Id</th>
<th>Signed By Prescriber Session Id</th>
<th>To Facility Id</th>
<th>Created At</th>
<th>Uid</th>
<th>Created By Session Id</th>
<th>Type</th>
<th>Is Signed By Ally</th>
<th>Signed By Ally At</th>
<th>Ally Pro Id</th>
<th>Current Content Update Id</th>
<th>Current Status Update Id</th>
<th>Signed By Ally Session Id</th>
                </tr>
                </thead>
                <tbody>
                @foreach($subRecords as $subRecord)
                    <tr>
                        <td><?= $subRecord->id ?></td>
<td><?= $subRecord->action_item_category ?></td>
<td><?= $subRecord->content_detail ?></td>
<td><?= $subRecord->content_text ?></td>
<td><?= $subRecord->is_signed_by_prescriber ?></td>
<td><?= $subRecord->signed_by_prescriber_at ?></td>
<td><?= $subRecord->status_category ?></td>
<td><?= $subRecord->status_memo ?></td>
<td><?= $subRecord->client_id ?></td>
<td><?= $subRecord->prescriber_pro_id ?></td>
<td><?= $subRecord->signed_by_prescriber_session_id ?></td>
<td><?= $subRecord->to_facility_id ?></td>
<td><?= $subRecord->created_at ?></td>
<td><a href="/action_items/view/{{ $subRecord->uid }}"><?= $subRecord->uid ?></a></td>
<td><?= $subRecord->created_by_session_id ?></td>
<td><?= $subRecord->type ?></td>
<td><?= $subRecord->is_signed_by_ally ?></td>
<td><?= $subRecord->signed_by_ally_at ?></td>
<td><?= $subRecord->ally_pro_id ?></td>
<td><?= $subRecord->current_content_update_id ?></td>
<td><?= $subRecord->current_status_update_id ?></td>
<td><?= $subRecord->signed_by_ally_session_id ?></td>
                    </tr>
                @endforeach
                </tbody>
            </table>
        </div>

    </div>

@endsection
