jump bridge all blade
This commit is contained in:
@@ -17,7 +17,13 @@ class JumpBridgeController extends Controller
|
||||
$jbHelper60 = new JumpBridgeTax(60);
|
||||
$jbHelper90 = new JumpBridgeTax(90);
|
||||
|
||||
return view('jumpbridges.all');
|
||||
$data = [
|
||||
'30days' => $jbHelper30->OverallTax(),
|
||||
'60days' => $jbHelper60->OverallTax(),
|
||||
'90days' => $jbHelper90->OverallTax(),
|
||||
];
|
||||
|
||||
return view('jumpbridges.all')->with('data', $data);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -126,11 +126,6 @@ class JumpBridgeTax {
|
||||
* Returns the overall usage for statistics
|
||||
*/
|
||||
public function OverallTax() {
|
||||
//Initalize the date
|
||||
$dateInit = Carbon::now();
|
||||
//Subtract the days from now
|
||||
$date = $dateInit->subDays($days);
|
||||
|
||||
//Get the total usage
|
||||
$usage = DB::table('jump_bridge_journal')
|
||||
->select('amount')
|
||||
|
||||
Reference in New Issue
Block a user