<?php $__env->startSection('title', $teacher->name); ?>

<?php $__env->startSection('content'); ?>
    <div class="container">
        <div class="col-md-10">
            <div class="h1 text-center">
                <?php echo e($teacher->name); ?>

            </div>

            <div class="d-flex justify-content-end mb-3">
                <a class="btn btn-secondary px-3 mr-1" href="<?php echo e(route('admin.teachers.edit', $teacher->id)); ?>">Измени</a>
            </div>

            <div class="h2 text-center">
                Предмети
            </div>

            <table class="table">
                <thead class="thead-dark">
                    <th scope="col">
                        Предмет
                    </th>
                    <th scope="col">
                        Смер
                    </th>
                    <th scope="col">
                        Улога
                    </th>
                </thead>
                <tbody>
                    <?php $__currentLoopData = $subjects; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $subject): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                        <tr>
                            <th>
                                <?php echo e($subject->name); ?>

                            </th>
                            <td>
                                <?php echo e($subject->department->name); ?>

                            </td>
                            <td>
                                <?php echo e($subject->role); ?>

                            </td>
                        </tr>
                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                </tbody>
            </table>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php echo $__env->make('layouts.admin', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/akademij/public_html/anketaov/resources/views/admin/teachers/show.blade.php ENDPATH**/ ?>