Hello Kool Team, I am trying out the Progress card and will want to achieve the following from a query below
->query("select
to_char(coalesce(max(date_approved),current_date), 'MON,YYYY') as cur_year,
coalesce(sum(comp_amount),150000) as comp_value,
coalesce(sum(budget_value),1000000) as base_value
FROM
a
inner join b on a.la_project_id=b.la_project_id
inner join c on b.la_project_id=c.la_project_id
")->pipe($this->dataStore("crop_card"));
I want the query to supply the values for "title", "infoText" "value"=>7500 and "baseValue" as found in your sample below so that every thing is dynamic. How do I go about it from your sample below
\koolreport\amazing\ProgressCard::create(array(
"title"=>"April 2018",
"infoText"=>"The sale on April 2018 has completed {indicatorValue} of revenue target.",
"value"=>7500,
"preset"=>"primary",
"baseValue"=>10000,
"format"=>array(
"value"=>array(
"prefix"=>"$"
),
"indicator"=>array(
"decimals"=>0
)
),
"cssClass"=>array(
"icon"=>"fa fa-euro"
),
));