<table class="manage-items">
    <tr>
        <th>ID</th>
        <th>Assigned To</th>
        <th>Status</th>
        <th>Due Date</th>
        <th>Patient</th>
        <th>Medium</th>
        <th>Type</th>
        <th>Assessment Form</th>
        <th>Category</th>
        <th>Notes</th>
        <th class="center">Edit</th>
    </tr>
    <tbody class="tabular">
    {% for review in reviews %}
        <tr>
            <td>
                <a href="{{ route('admin-reviews-edit', {
                    'id': review.id
                }) }}">
                    {{ review.id }}
                </a>
            </td>
            <td>
                {{ review.user_id ? review.user.name : '-' }}
            </td>
            <td {{ review.statusRed ? 'class="red"' : '' }}>
                {{ statuses[review.status] }}
            </td>
            <td {{ review.dateRed ? 'class="red"' : '' }}>
                {{ review.due_date }}
            </td>
            <td>
                <a href="{{ route('admin-patients-profile', {
                    id: review.member_id
                }) }}">
                    {{ review.member.addressBilling.firstname }} {{ review.member.addressBilling.lastname }}
                </a>
            </td>
            <td>
                {{ review.medium ? mediums[review.medium] : '-' }}
            </td>
            <td>
                {{ review.type ? types[review.type] : '-' }}
            </td>
            <td>
                {{ review.form_id ? review.form.name : '-' }}
            </td>
            <td>
                {{ review.category_id ? review.category.name : '-' }}
            </td>
            <td>
                {{ review.notes }}
            </td>

            <td class="center">
                <a href="{{ route('admin-reviews-edit', {
                    'id': review.id
                }) }}" class="edit">
                    <i class="fa fa-pencil"></i>
                </a>
            </td>
        </tr>
    {% endfor %}
    </tbody>
</table>