<?php $__env->startSection('content'); ?>
    <div class="container-fluid">
        <div class="row page-titles">
            <ol class="breadcrumb">
                <li class="breadcrumb-item"><a href="<?php echo e(route('dashboard')); ?>">Dashboard</a></li>
                <li class="breadcrumb-item active"><a href="javascript:void(0)">Courseware Partners</a></li>
            </ol>
        </div>
        <?php echo $__env->make('iqec.partials.flash', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
        <div class="card">
            <div class="card-header d-flex justify-content-between align-items-center">
                <h4 class="card-title mb-0">Courseware Partners</h4>
                <a href="<?php echo e(route('courseware-partners.create')); ?>" class="btn btn-primary btn-sm">Add Courseware Partner</a>
            </div>
            <div class="card-body">
                <div class="table-responsive">
                    <table class="table table-responsive-md">
                        <thead>
                            <tr>
                                <th>Name</th>
                                <th>Email</th>
                                <th>Authorised Partner</th>
                                <th>Status</th>
                                <th class="text-end">Actions</th>
                            </tr>
                        </thead>
                        <tbody>
                            <?php $__empty_1 = true; $__currentLoopData = $partners; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $partner): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
                                <tr>
                                    <td><?php echo e($partner->applicant_name); ?></td>
                                    <td><?php echo e($partner->email); ?></td>
                                    <td><?php echo e($partner->authorisedPartner?->applicant_name); ?></td>
                                    <td><span class="badge <?php echo e($partner->user->status->badgeClass()); ?>"><?php echo e($partner->user->status->label()); ?></span></td>
                                    <td class="text-end">
                                        <?php echo $__env->make('iqec.partials.table-actions', [
                                            'resource' => 'courseware-partners',
                                            'record' => $partner,
                                            'label' => 'courseware partner',
                                        ], array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?>
                                    </td>
                                </tr>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
                                <tr><td colspan="5">No courseware partners yet.</td></tr>
                            <?php endif; ?>
                        </tbody>
                    </table>
                </div>
                <?php echo e($partners->links()); ?>

            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('iqec.layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /Users/fasil/Sites/iqec/admin/resources/views/iqec/courseware-partners/index.blade.php ENDPATH**/ ?>