<?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-warning px-3 mr-1" href="<?php echo e(route('admin.teachers.edit', $teacher->id)); ?>">Izmeni</a>
            </div>

            <div class="h2 text-center">
                Predmeti
            </div>

            <table class="table">
                <thead class="thead-dark">
                    <th scope="col">
                        Predmet
                    </th>
                    <th scope="col">
                        Uloga
                    </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->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 /Users/misakovic1/Projekti/anketa/resources/views/admin/teachers/show.blade.php ENDPATH**/ ?>