本文整理汇总了PHP中Helpers::getinvestorDetails方法的典型用法代码示例。如果您正苦于以下问题:PHP Helpers::getinvestorDetails方法的具体用法?PHP Helpers::getinvestorDetails怎么用?PHP Helpers::getinvestorDetails使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Helpers
的用法示例。
在下文中一共展示了Helpers::getinvestorDetails方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
$investor = Helpers::getinvestorDetails($transaction->user_id);
?>
{{ HTML::link('wallet/'.$transaction->user_id, @strtoupper($investor->firstname . " " . $investor->lastname), array("class" => "")) }}
</td>
<td>{{ $amount = $transaction->credit > 0 ? number_format($transaction->credit,2) . " (+)" : number_format($transaction->debit,2) . " (-)" }}</td>
<td>{{ number_format($transaction->balance,2) }}</td>
<td>{{ $transaction->updated_at }}</td>
@else
<td>{{ $transaction->id }}</td>
<td>{{ $transaction->mraditransactiontype['desc'] }}</td>
<td>{{ $transaction->order_id }}</td>
@if(strtolower(Session::get('account_type')) == 'entrepreneur')
<td> @if($transaction->mraditransactiontype['id'] == '2')
<?php
$investor = Helpers::getinvestorDetails($transaction->mradicampaignbid['investor_id']);
?>
{{ @strtoupper($investor->firstname . " " . $investor->lastname) }}
@endif </td>
@else
<td> @if($transaction->mraditransactiontype['id'] == '1')
{{ $transaction->mraditransactionlog['trx_id'] }}
@endif </td>
<td>@if($transaction->mraditransactiontype['id'] == '1')
{{ $transaction->mraditransactionlog['currency'] }}
@endif</td>
<td>@if($transaction->mraditransactiontype['id'] == '1')
{{ $transaction->mraditransactionlog['channel'] }}
@endif</td>
@endif
示例2: getTotalInvestorBid
public static function getTotalInvestorBid($account_id, $status = false, $isadmin = false)
{
if ($status) {
if (strtolower(session::get('account_type')) == 'investor' || strtolower(session::get('account_type')) == 'entrepreneur') {
$res = DB::select("select count(mradicampaignbids.id) AS 'count', sum(Amount) as 'amount', tbl_campaigns.campaignstatus from tbl_campaigns inner join mradicampaignbids on tbl_campaigns.uniqueid = mradicampaignbids.campaign_id where mradicampaignbids." . strtolower(session::get('account_type')) . "_id = ? AND LOWER(tbl_campaigns.campaignstatus) = ? GROUP BY tbl_campaigns.campaignstatus", array($account_id, 'ongoing'));
} else {
$res = DB::select("select count(mradicampaignbids.id) AS 'count', sum(Amount) as 'amount', tbl_campaigns.campaignstatus from tbl_campaigns inner join mradicampaignbids on tbl_campaigns.uniqueid = mradicampaignbids.campaign_id where LOWER(tbl_campaigns.campaignstatus) = ? GROUP BY tbl_campaigns.campaignstatus", array('ongoing'));
}
$bidded = $res;
} else {
if ($account_id != "guest" && (strtolower(session::get('account_type')) == 'investor' || strtolower(session::get('account_type')) == 'entrepreneur')) {
$bidded = Mradicampaignbid::Where(strtolower(session::get('account_type')) . '_id', $account_id)->Where('mraditransactiontype_id', '2');
} else {
if ($isadmin) {
$acctType = Helpers::getinvestorDetails($account_id)->account_type;
$bidded = Mradicampaignbid::Where(strtolower($acctType) . '_id', $account_id)->Where('mraditransactiontype_id', '2');
} else {
$bidded = Mradicampaignbid::Where('mraditransactiontype_id', '2');
}
}
}
return $bidded;
}
示例3: array
</tr>
</thead>
<tbody>
@foreach($mytransactions as $transaction)
<tr>
<td>{{ $transaction->id }}</td>
<td><?php
$hLink = URL::route('campaigns_grid_info', array('campaign' => $transaction->campaign_id));
?>
{{
HTML::link($hLink, strtoupper(Helpers::getCampaignID($transaction->campaign_id, true)), array("class" => ""));
}}
</td>
<?php
$investor = Helpers::getinvestorDetails($transaction->investor_id);
?>
<td>{{ @strtoupper($investor->firstname . " " . $investor->lastname) }}</td>
<td>{{ $transaction->order_id }}</td>
<td>{{ number_format($transaction->amount,2) }}</td>
<td>{{ number_format($transaction->total_bidded,2) }}</td>
<td>{{
number_format((Helpers::getCampaignProposal($transaction->campaign_id)[0]->total_investment - $transaction->total_bidded),2)
}}</td>
<td>{{ strtoupper(Helpers::getCampaignID($transaction->campaign_id, '', true)->campaignstatus) }}</td>
<td>{{ $transaction->updated_at }}</td>
</tr>
@endforeach
</tbody>
</table>