<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;
//Models
use backend\models\Accounts;
use backend\models\Attributesvalues;

/**
 * @var yii\web\View $this
 * @var PortalPeople\shippingcosts\models\Shippingcosts $model
 */

$this->title = 'Create Shippingcosts';
$this->params['breadcrumbs'][] = ['label' => 'Shippingcosts', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="shippingcosts-create">

    <h1><?= Html::encode($this->title) ?></h1>


    <div class="shippingcosts-form">
        <?php $form = ActiveForm::begin(); ?>
            <div class="card">
                <div class="card-header">
                </div>
                <div class="card-body">
                    <div class="row">
                        <div class="col-md-8 col-12">
                            <?= $form->field($model, 'postcodes')->textarea(['rows' => 6]) ?>

                            <p class="font-weight-light">
                                note, if you Encounter a +, then remove the number and the plus, you will need to remove the numbers codes less than this on update. 
                            </p>
                        </div>
                    
                        <div class="col-md-4 col-12">
                            <div class="row">
                                <div class="col-12">
                                    <?= $form->field($model, 'status')->dropdownlist(Attributesvalues::formArray('sys_status'), ['prompt' => 'Please Select']) ?>
                                    <?= $form->field($model, 'type')->checkboxList(Attributesvalues::formArray('shipping_types'), ['prompt' => 'Please Select']) ?>
                                    <?= $form->field($model, 'haulierid')->dropdownlist(Accounts::intids('haulier'), ['prompt' => 'Please Select']); ?>
                                    <?= $form->field($model, 'no_of_prices')->dropdownlist([0,1,2,3,4,5,6,7,8,9,10], ['prompt' => 'Please Select']); ?>
                                    
                                </div>
                            </div>
                        </div>
                    </div>
                  

                    <div class="form-group">
                        <?= Html::submitButton('Save', ['class' => 'btn btn-primary']) ?>
                    </div>
                </div>
            </div>
        <?php ActiveForm::end(); ?>
    </div>
</div>