Exemplo n.º 1
0
?>
">
        <label>Telefon</label>
        <input name="phone" type="tel" value="<?php 
echo old('phone', $order->phone);
?>
" class="form-control">
    </div>
    <div class="col-xs-12 form-group<?php 
echo $errors->has('status') ? ' has-error' : '';
?>
">
        <label>Stare</label>
        <select name="status" class="form-control">
            <?php 
$availableStatuses = Order::getStatusValues();
foreach ($availableStatuses as $status => $display) {
    ?>
                <option value="<?php 
    echo $status;
    ?>
"<?php 
    echo $status == $order->status ? ' selected' : '';
    ?>
><?php 
    echo $display;
    ?>
</option>
                        <?php 
}
?>