Example #1
0
        ?>
                                </div>
                            <?php 
    }
    ?>

                            <?php 
    if ($site->finished) {
        ?>
                                <?php 
        if ($site->sheet->pilots->where('paid', '0')->count() == 0) {
            ?>
                                    <div>
                                        <?php 
            echo Modal::named('mark_paid')->withTitle('Pay Corp Cut
                                            ')->withButton(Button::success('Pay Corp Cut')->block())->withBody(view('modals.mark_as_paid')->with('id', $site->id)->render());
            ?>
                                    </div>
                                <?php 
        } else {
            ?>
                                    <h4>Pay all pilots to contiune</h4>
                                <?php 
        }
        ?>
                            <?php 
    }
    ?>
                        </div>
                    <?php 
}
Example #2
0
    <thead>
    <tr>
        <th>Name</th>
        <th>Value</th>
        <th></th>
    </tr>
    </thead>
    <tbody>
    <?php 
foreach ($options as $option) {
    ?>
        <tr>
            <td><?php 
    echo $option->name;
    ?>
</td>
            <td><?php 
    echo $option->value;
    ?>
</td>
            <td><?php 
    echo Modal::named('edit_option_' . $option->id)->withTitle('Edit Option')->withButton(Button::success('edit')->setSize('btn-xs'))->withBody(view('modals.edit_option')->with('option', $option)->render());
    ?>
</td>
        </tr>
    <?php 
}
?>
    </tbody>
</table>