Exemple #1
0
  <!-- Start Row -->
  <div class="row">

    <!-- Start Panel -->
    <div class="col-md-12">
      <div class="panel">
        <div class="panel-title">
          Institution
        <a class="btn btn-default pull-right" style="position:relative;" href="<?php 
echo Url::to(['/institution/create']);
?>
"><i class="fa fa-plus"></i>Create</a>
        </div>
        <div class="panel-body table-responsive">

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-bordered table-striped'], 'columns' => ['id_institution', 'institution_id', 'institution_name', 'phone', ['class' => 'backend\\widgets\\ActionColumn', 'template' => '{view} {update} {delete}', 'width' => '18%', 'detailViewAttributes' => function ($model, $key) {
    return ['id_institution', 'institution_id', 'institution_name', 'phone', 'created_at:datetime', 'updated_at:datetime'];
}]]]);
?>

      </div>
    </div>
    <!-- End Panel -->
  </div>
  <!-- End Row -->
</div>
<!-- END CONTAINER -->
</div>

Exemple #2
0
        return Html::a('<span class="glyphicon glyphicon-pencil"></span>', "index.php?type=pool&id_pool=" . $model->id_pool . "&id_bank=" . $model->id_bank . "&r=bank-pool/update", ['class' => 'btn btn-light btn-icon']);
    }, 'deletes' => function ($url, $model, $key) {
        return Html::a('<span class="glyphicon glyphicon-trash"></span>', "index.php?type=pool&id_pool=" . $model->id_pool . "&id_bank=" . $model->id_bank . "&r=bank-pool/delete", ['class' => 'btn btn-light btn-icon']);
    }]]], 'showPageSummary' => 1]);
    ?>

            <?php 
} else {
    ?>

              <?php 
    echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-bordered table-striped'], 'columns' => [['label' => 'id_bank', 'header' => 'BANK ID', 'value' => function ($model) {
        return $model->bank ? $model->bank->bank_id : null;
    }], ['attribute' => 'id_pool', 'header' => 'POOL ID', 'value' => function ($model) {
        return $model->pool ? $model->pool->pool_id : null;
    }], ['attribute' => 'funding_amount', 'width' => '150px', 'hAlign' => 'right', 'pageSummary' => true], ['class' => 'backend\\components\\ActionColumn', 'template' => ' {updates}{deletes}', 'width' => '18%', 'buttons' => ['updates' => function ($url, $model, $key) {
        return Html::a('<span class="glyphicon glyphicon-pencil"></span>', "index.php?type=bank&id_pool=" . $model->id_pool . "&id_bank=" . $model->id_bank . "&r=bank-pool/update", ['class' => 'btn btn-light btn-icon']);
    }, 'deletes' => function ($url, $model, $key) {
        return Html::a('<span class="glyphicon glyphicon-trash"></span>', "index.php?type=bank&id_pool=" . $model->id_pool . "&id_bank=" . $model->id_bank . "&r=bank-pool/delete", ['class' => 'btn btn-light btn-icon']);
    }]]], 'showPageSummary' => 1]);
    ?>

            <?php 
}
?>




      	  </div>
      </div>
Exemple #3
0
        <div class="panel-body table-responsive">
		   <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-bordered table-striped'], 'columns' => ['id_client', ['attribute' => 'id_group', 'header' => 'Group Name', 'value' => function ($model) {
    return $model->group ? $model->group->group_id : null;
}], 'client_id', ['attribute' => 'Email', 'value' => function ($model) {
    if ($model->user) {
        return empty($model->user->new_email) ? $model->user->email : $model->user->new_email;
    } else {
        return 'Unknown';
    }
}], ['attribute' => 'First Name', 'value' => function ($model) {
    if ($model->user) {
        return $model->user->first_name;
    } else {
        return 'Unknown';
    }
}], 'cell_phone', ['class' => '\\backend\\widgets\\ActionColumn', 'template' => '{invite}{view}{update}{delete}', 'buttons' => ['invite' => function ($url, $model, $key) {
    if ($model->user) {
        if ($model->user->status == 0) {
            $options = ['class' => 'btn btn-light btn-icon', 'title' => Yii::t('yii', 'Invite'), 'aria-label' => Yii::t('yii', 'Invite'), 'data-confirm' => Yii::t('yii', 'Are you sure invite this client to email?'), 'data-pjax' => '0'];
            return Html::a('<span class="glyphicon">&#xe621;</span>', $url, $options);
        }
    }
}, 'cancelinvite' => function ($url, $model, $key) {
    $options = ['class' => 'btn btn-light btn-icon', 'title' => Yii::t('yii', 'Cancel Invition'), 'aria-label' => Yii::t('yii', 'Cancel Invition'), 'data-confirm' => Yii::t('yii', 'Are you sure you want to cancel invition?'), 'data-pjax' => '0'];
    return Html::a('<span class="fa fa-mail-reply"></span>', $url, $options);
}], 'width' => '18%', 'detailViewAttributes' => function ($model, $key) {
    return ['id_client', ['label' => 'Group Name', 'value' => $model->group ? $model->group->group_id : null], 'client_id', ['label' => 'First Name', 'value' => $model->user ? $model->user->first_name : null], ['label' => 'Mid Name', 'value' => $model->user ? $model->user->mid_name : null], ['label' => 'Last Name', 'value' => $model->user ? $model->user->last_name : null], ['label' => 'Email', 'value' => $model->user ? $model->user->email : null], ['label' => 'Address', 'value' => $model->address_street . ',' . $model->address_city . ',' . (empty($model->state) ? '' : $model->state->name)], 'address_zip_code', 'cell_phone', 'work_phone', 'home_phone', 'social_security_number', 'date_of_birth:datetime', ['attribute' => 'is_united_states_citizen', 'value' => empty($model->is_united_states_citizen) ? '' : DictApplicant::$americanCitizen[$model->is_united_states_citizen]], ['attribute' => 'identification_type', 'value' => empty($model->identification_type) ? '' : DictApplicant::$identificationType[$model->identification_type]], 'identification_number', 'identification_state', 'identification_expiration_date:datetime', 'occupation', 'employer', ['attribute' => 'total_annual_income', 'value' => empty($model->total_annual_income) ? '' : $model->total_annual_income], ['attribute' => 'marital_status', 'value' => empty($model->marital_status) ? '' : DictApplicant::$maritalStatus[$model->marital_status]], ['attribute' => 'years_with_advisor', 'value' => empty($model->years_with_advisor) ? '' : $model->years_with_advisor], ['attribute' => 'net_worth', 'value' => empty($model->net_worth) ? '' : $model->net_worth], ['attribute' => 'total_value_with_advisor', 'value' => empty($model->total_value_with_advisor) ? '' : $model->total_value_with_advisor], 'created_at:datetime', 'updated_at:datetime'];
}]]]);
?>
Exemple #4
0
  <div class="row">
    <!-- Start Panel -->
    <div class="col-md-12">
      <div class="panel">
        <div class="panel-title">
          Pool
        <a class="btn btn-default pull-right" style="position:relative;" href="<?php 
echo Url::to(['/pool/create']);
?>
"><i class="fa fa-plus"></i>Create</a>
        </div>
        <div class="panel-body table-responsive">

		    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-bordered table-striped'], 'columns' => ['pool_id', 'name', ['attribute' => 'id_pool_type', 'value' => function ($model) {
    return PoolType::find()->where(["id_pool_type" => $model->id_pool_type])->one()->name;
}], 'capital_size', ['class' => '\\backend\\widgets\\ActionColumn', 'template' => '{view}{update}{delete}{banks}', 'width' => '12%', 'detailViewAttributes' => ['id_pool_type', 'name', 'pool_id', 'capital_size', 'description'], 'buttons' => ['banks' => function ($url, $model, $key) {
    return Html::a('<span class="glyphicon glyphicon-list-alt"></span>', "index.php?id=" . $model->id_pool . "&r=bank-pool/index", ["target" => "_blank", 'class' => 'btn btn-light btn-icon']);
}]]]]);
?>
      	  </div>
      </div>
    <!-- End Panel -->
    </div>
  <!-- End Row -->
  </div>
<!-- END CONTAINER -->
</div>


Exemple #5
0
use yii\helpers\Html;
use backend\widgets\GridView;
/* @var $this yii\web\View */
/* @var $searchModel common\models\search\Custodian */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Custodians';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="container-padding">
  <!-- Start Row -->
  <div class="row">
    <!-- Start Panel -->
    <div class="col-md-12">
      <div class="panel">
        <div class="panel-title">
          Custodian
        </div>
        <div class="panel-body table-responsive">
        <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'id_custodian', 'name']]);
?>
        </div>
      </div>
    <!-- End Panel -->
    </div>
  <!-- End Row -->
   </div>
<!-- END CONTAINER -->
</div>
Exemple #6
0
<!-- START CONTAINER -->
<div class="container-padding">
  <!-- Start Row -->
  <div class="row">
    <!-- Start Panel -->
    <div class="col-md-12">
      <div class="panel">

        <div class="panel-body table-responsive">

		    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => ['id_config', 'config_name', 'config_value', ['class' => '\\backend\\widgets\\ActionColumn', 'template' => '{update}', 'width' => '12%', 'buttons' => ['update' => function ($url, $model) {
    if ($model->config_name == 'libor' || $model->config_name == 'libor_updated_at') {
        return false;
    } else {
        $options = ['class' => 'btn btn-light btn-icon', 'title' => Yii::t('yii', 'Update'), 'aria-label' => Yii::t('yii', 'Update'), 'data-pjax' => '0'];
        return Html::a('<span class="glyphicon">&#xe61f</span>', $url, $options);
    }
}]]]]);
?>
      	  </div>
      </div>
    <!-- End Panel -->
    </div>
  <!-- End Row -->
  </div>
<!-- END CONTAINER -->
</div>


Exemple #7
0
<!-- START CONTAINER -->
<div class="container-padding">
  <!-- Start Row -->
  <div class="row">
    <!-- Start Panel -->
    <div class="col-md-12">
      <div class="panel">
        <div class="panel-title">
          Admin
        <a class="btn btn-default pull-right" style="position:relative;" href="<?php 
echo Url::to(['/admin/create']);
?>
"><i class="fa fa-plus"></i>Create</a>
        </div>
        <div class="panel-body table-responsive">

		    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => ['id', 'username', 'status', ['class' => '\\backend\\widgets\\ActionColumn', 'template' => '{view}{delete}', 'width' => '12%', 'detailViewAttributes' => ['id', 'username', 'created_at:datetime', 'updated_at:datetime']]]]);
?>
      	  </div>
      </div>
    <!-- End Panel -->
    </div>
  <!-- End Row -->
  </div>
<!-- END CONTAINER -->
</div>


Exemple #8
0
      <div class="panel">
        <div class="panel-title">
          Bank user
        <a class="btn btn-default pull-right" style="position:relative;" href="<?php 
echo Url::to(['/bank-user/create']);
?>
"><i class="fa fa-plus"></i>Create</a>
        </div>
        <div class="panel-body table-responsive">

            <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-bordered table-striped'], 'columns' => [['attribute' => 'id_user', 'header' => 'FIRST NAME', 'value' => function ($model) {
    return $model->user ? $model->user->first_name : null;
}], ['attribute' => 'id_bank', 'header' => 'BANK NAME', 'value' => function ($model) {
    return $model->bank ? $model->bank->name : null;
}], ['class' => 'backend\\widgets\\ActionColumn', 'template' => '{invite}{view}{update}{delete}', 'width' => '18%', 'detailViewAttributes' => ['id_user', 'id_bank'], 'buttons' => ['invite' => function ($url, $model, $key) {
    if ($model->user->status == 0) {
        $options = ['class' => 'btn btn-light btn-icon', 'title' => Yii::t('yii', 'Invite'), 'aria-label' => Yii::t('yii', 'Invite'), 'data-confirm' => Yii::t('yii', 'Are you sure invite this advisor to email?'), 'data-pjax' => '0'];
        return Html::a('<span class="glyphicon glyphicon-envelope"></span>', $url, $options);
    }
}]]]]);
?>

      	  </div>
      </div>
    <!-- End Panel -->
    </div>
  <!-- End Row -->
  </div>
<!-- END CONTAINER -->
</div>
Exemple #9
0
        </div>
        <div class="panel-body">

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => ['id_group', ['attribute' => 'id_custodian', 'value' => function ($model) {
    if ($model->custodian) {
        return $model->custodian->name;
    } else {
        return 'Unknown';
    }
}], 'group_id', 'name', 'created_at:datetime', 'updated_at:datetime', ['label' => 'Advisor Count', 'value' => function ($model) {
    if ($model->advisorGroups) {
        return count($model->advisorGroups);
    } else {
        return '0';
    }
}], ['class' => 'backend\\widgets\\ActionColumn', 'width' => '18%', 'template' => '{view} {update} {delete}', 'detailViewAttributes' => function ($model, $key) {
    $arrays_advisor = AdvisorGroup::find()->andWhere(['id_group' => $model->id_group])->all();
    if (!empty($arrays_advisor)) {
        $result = [];
        foreach ($arrays_advisor as $v) {
            $advisor_u = advisor::find()->Where(['id_advisor' => $v['id_advisor']])->asArray()->one();
            $res = User::find()->andWhere(['id_user' => $advisor_u['id_user']])->asArray()->one();
            $result[] = $res['first_name'] . ' ' . $res['last_name'];
        }
    }
    return ['id_group', ['label' => 'Custodian', 'value' => $model->custodian ? $model->custodian->name : 'Unknown'], ['label' => 'advisor', 'value' => empty($result) ? 'No' : implode('/', $result)], 'group_id', 'created_at:datetime', 'updated_at:datetime'];
}]]]);
?>
      </div>
    </div>
    <!-- End Panel -->
Exemple #10
0
  <div class="row">
    <!-- Start Panel -->
    <div class="col-md-12">
      <div class="panel">
        <div class="panel-title">
          Bank
        <a class="btn btn-default pull-right" style="position:relative;" href="<?php 
echo Url::to(['/bank/create']);
?>
"><i class="fa fa-plus"></i>Create</a>
        </div>
        <div class="panel-body table-responsive">

		    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-bordered table-striped'], 'columns' => ['bank_id', 'name', ['class' => '\\backend\\widgets\\ActionColumn', 'template' => '{details}{view}{update}{delete}{banks}', 'width' => '15%', 'detailViewAttributes' => ['id_bank', 'bank_id', 'name', 'contact_first_name', 'contact_last_name', 'email', 'phone'], 'buttons' => ['details' => function ($url, $model, $key) {
    return Html::a('<span class="glyphicon glyphicon-user"></span>', "index.php?BankUserSearch[id_bank]=" . $model->name . "&r=bank-user/index", ["target" => "_blank", 'class' => 'btn btn-light btn-icon']);
}, 'banks' => function ($url, $model, $key) {
    return Html::a('<span class="glyphicon glyphicon-list-alt"></span>', "index.php?id_bank=" . $model->id_bank . "&r=bank-pool/index", ["target" => "_blank", 'class' => 'btn btn-light btn-icon']);
}]]]]);
?>
      	  </div>
      </div>
    <!-- End Panel -->
    </div>
  <!-- End Row -->
  </div>
<!-- END CONTAINER -->
</div>


Exemple #11
0
$this->params['breadcrumbs'][] = $this->title;
?>
<!-- START CONTAINER -->
<div class="container-padding">
	<!-- Start Row -->
	<div class="row">
		<!-- Start Panel -->
		<div class="col-md-12">
			<div class="panel">
				<div class="panel-title">Application</div>
				<div class="panel-body table-responsive">
				    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'tableOptions' => ['class' => 'table table-bordered table-striped'], 'columns' => [['class' => 'yii\\grid\\SerialColumn'], 'id_application', 'application_name', ['attribute' => 'id_group', 'value' => function ($model) {
    return $model->group ? $model->group->group_id : '';
}], ['attribute' => 'is_joint_application', 'value' => function ($model) {
    // return Application::item ( 'is_joint_application', $model->is_joint_application );
    return DictApplication::$applicationJoint[$model->is_joint_application];
}, 'filter' => DictApplication::$applicationJoint], ['attribute' => 'have_existing_loan', 'value' => function ($model) {
    // return Application::item ( 'have_existing_loan', $model->have_existing_loan );
    return DictApplication::$hasExistingLoan[$model->have_existing_loan];
}, 'filter' => DictApplication::$hasExistingLoan], 'created_at:datetime', 'updated_at:datetime']]);
?>
      			</div>
			</div>
			<!-- End Panel -->
		</div>
		<!-- End Row -->
	</div>
	<!-- END CONTAINER -->
</div>