<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-md-9">
            <?php if($bannerImage): ?>
                <img  class="business-banner__image" src="<?php echo e(URL::asset($bannerImage->src)); ?>" alt="<?php echo e($bannerImage->name); ?>">
            <?php endif; ?>

            <h1><?php echo e($business->name); ?></h1>

            <div class="business-content">
                <div class="business-content__description">
                    <?php echo $business->details; ?>

                </div>
            </div>
        </div>

        <div class="col-md-3">
            <h3>Business profile</h3>
            <?php echo $business->introduction; ?>

        </div>
    </div>

    <?php if(count($business->actions)): ?>
        <div class="row">
            <div class="col-md-12">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>Specific actions</th>
                            <?php /* This row needs to span all the outputs in the body */ ?>
                            <th colspan="<?php echo e((2 + count($outputs)) -2); ?>">Positive outcomes</th>
                            <th>Inputs</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($business->actions as $action): ?>
                            <?php if($action->pivot->specifics): ?>
                                <tr data-toggle="popover" data-placement="top" title="Action specifics" data-content="<?php echo e($action->pivot->specifics); ?>">
                            <?php else: ?>
                                <tr>
                            <?php endif; ?>
                                <td><?php echo e($action->name); ?></td>
                                <?php foreach($outputs as $output): ?>
                                    <?php if($action->outputs->contains($output)): ?>
                                        <td class="output output--active"><strong><?php echo e(trim(str_replace('Positive', '', $output->name))); ?></strong></td>
                                    <?php else: ?>
                                        <td class="output"><span class="text-muted"><?php echo e(trim(str_replace('Positive', '', $output->name))); ?></span></td>
                                    <?php endif; ?>
                                <?php endforeach; ?>
                                <td><?php echo e($action->pivot->modifier); ?></td>
                            </tr>
                        <?php endforeach; ?>
                    </tbody>
                </table>
            </div>
        </div>
    <?php endif; ?>

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

<?php echo $__env->make('layouts.main', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>