<div class="detail-pane-body col-lg-12"> <table class="tabular table-striped"> <thead> <th class="col-lg-4">Product</th> <th class="col-lg-1">Qty Trans</th> <?php if (!$model->isNewRecord) { ?> <th class="col-lg-1">Issued</th> <th class="col-lg-1">Received</th> <?php } ?> <th class="col-lg-2">Uom</th> <th class="col-lg-1"> </th> </thead> <?php echo TabularInput::widget(['id' => 'detail-grid', 'allModels' => $details, 'modelClass' => TransferDtl::className(), 'options' => ['tag' => 'tbody'], 'itemOptions' => ['tag' => 'tr'], 'itemView' => '_item_detail', 'clientOptions' => []]); ?> </table> </div> </div> <div class="tab-pane col-lg-12" id="delivery-pane"> <div class="box box-solid"> <?php echo ListView::widget(['dataProvider' => $gmovement, 'layout' => '{items}', 'itemView' => '_gissue']); ?> </div> </div> </div> </div>
public function getTransferDtls() { return $this->hasMany(TransferDtl::className(), ['transfer_id' => 'id']); }