<?= $this->extend('web_layout/admin/preview_layout') ?>

<?= $this->section('content') ?>

<div class="row">
    <div class="col-12">
        <div class="row">
            <div class="col-md-4 mb-4">
                <?= printText(["value" => $data->name, "label" => str("sysuseraccess_name")]) ?>
            </div>
            <div class="col-md-4 mb-4">
                <?= printText(["value" => $data->notes, "label" => str("sysuseraccess_notes")]) ?>
            </div>    
        </div>
    </div> 
    <div class="col-12">
        <div class="row">
            <div class="col-md-12 mt-3 border-left">   
                <ul class="nav nav-tabs" role="tablist">
                    <li class="nav-item"><a class="nav-link active" data-bs-toggle="tab" href="#table_access" role="tab">Access</a></li>
                    <li class="nav-item"><a class="nav-link" data-bs-toggle="tab" href="#data_modified" role="tab"><?= str("data_modified") ?></a></li>
                </ul>
                <div class="tab-content pt-3">
                    <div class="tab-pane active" id="table_access" role="tabpanel">
                        <?= $table_access ?>  
                    </div>
                    <div class="tab-pane" id="data_modified" role="tabpanel">
                         <div class="tab-box">
                            <div class="col-12">
                                <div class="row">                
                                    <div class="col-md-3 mb-4">
                                        <?= printDatetime(["value" => $data->created_date, "label" => str("created_date")]) ?>
                                    </div>
                                    <div class="col-md-3 mb-4">
                                        <?= printText(["value" => $data->created_by, "label" => str("created_by")]) ?>
                                    </div>
                                    <div class="col-md-3 mb-4">
                                        <?= printDatetime(["value" => $data->modified_date, "label" => str("modified_date")]) ?>
                                    </div>
                                    <div class="col-md-3 mb-4">
                                        <?= printText(["value" => $data->modified_by, "label" => str("modified_by")]) ?>
                                    </div>
                                </div>
                            </div> 
                        </div>
                    </div>
                </div>           
            </div>
        </div>
    </div>  
</div>  

<?= $this->endSection() ?>
