本文整理匯總了PHP中app\helpers\Helper::reports_total_on_item方法的典型用法代碼示例。如果您正苦於以下問題:PHP Helper::reports_total_on_item方法的具體用法?PHP Helper::reports_total_on_item怎麽用?PHP Helper::reports_total_on_item使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類app\helpers\Helper
的用法示例。
在下文中一共展示了Helper::reports_total_on_item方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: reports_search
public function reports_search(Request $request)
{
// dd($request);
$fee_element_id = $request->fee_element_id;
$search_by = $request->search_by;
$data['title'] = 'Reports';
$data['accounts_menu'] = 1;
$data['coa_elements'] = ChartOfAccount::where(['id_parent' => 52])->lists('item_title', 'account_code');
$data['search_dates'] = ['0' => 'Select Search Date', '1' => 'Last Week', '2' => 'Last Month', '3' => '3 Months Ago', '4' => '6 Months Ago', '5' => '1 Year Ago'];
$data['result'] = 1;
$data['total'] = Helper::reports_total_on_item($fee_element_id, $search_by);
$data['search_item'] = FeeElement::find($fee_element_id)->first()->name;
return view('accounts.reports.index', $data);
}