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

<?php $__env->startSection('content'); ?>
<div class="pagetitle">
      <h1>Structures</h1>
      <nav>
        <ol class="breadcrumb">
			<li class="breadcrumb-item"><a href="">Acceuil</a></li>
			<a href="<?php echo e(route('actions.show', $actionid)); ?>"> Action </a>
        </ol>
      </nav>
    </div><!-- End Page Title -->
 <section class="section">
      <div class="row">
        <div class="col-lg-12">

          <div class="card">
            <div class="card-body">
              <!-- Table with stripped rows -->
              <table class="table datatable">
                <thead>
                  <tr>
                    <th>Structure</th>
                    <th>Ministère</th>
                    <th>Action</th>
                   <th></th>
                  </tr>
                </thead>
                <tbody>
				<?php $__currentLoopData = $structures; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $structure): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
				<tr>
                    <td><?php echo e($structure->code); ?> : <?php echo e($structure->nom); ?></td>
                    <td><?php echo e($structure->ministere->code); ?> : <?php echo e($structure->ministere->nom); ?></td>
                    <td>
                        <a href="<?php echo e(route('structureactions.attach', ['structureid' => $structure->id,'actionid' => $actionid, 'actionstate' => $actionstate])); ?>" class="btn btn-info">
							<i class="bi bi-plus"></i>
						</a>
                    </td>
                </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </tbody>
  </table>
              <!-- End Table with stripped rows -->

            </div>
          </div>

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

<?php echo $__env->make('layouts.app', array_diff_key(get_defined_vars(), ['__data' => 1, '__path' => 1]))->render(); ?><?php /**PATH /var/www/html/phaso/resources/views/structures/addtoaction.blade.php ENDPATH**/ ?>