<?php

use yii\helpers\Html;
use myretail\models\SyncConfig;

$this->title = 'Update Account Configuration: ';
$this->params['breadcrumbs'][] = ['label' => 'Account Configuration', 'url' => ['index']];
// $this->params['breadcrumbs'][] = ['label' => $model->payment_fpkey, 'url' => ['view', 'id' => $model->payment_fpkey]];
$this->params['breadcrumbs'][] = 'Update';
?>
<div class="sync-account-to-jurnal-update">

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

    <?php
    if (SyncConfig::isEmpty()) {
    ?>
    	<div>Please fill the configuration before updating account configuration.</div>
    <?php
    } else {
    ?>

	    <?= $this->render('_form-sync', [
	        'model' => $model,
	    ]) ?>

	<?php
    }
    ?>
</div>
