jump bridge all blade

This commit is contained in:
2018-12-26 21:46:34 -06:00
parent e478ef0694
commit 3fbd0899b0
3 changed files with 24 additions and 6 deletions

View File

@@ -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);
}
/**

View File

@@ -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')

View File

@@ -0,0 +1,17 @@
@extends('layouts.b4')
@section('content')
<div class="container">
<div class="row">
<div class="card col-md-6">
<div class="card-header">
<h2>Overall Jump Bridge Usage</h2>
</div>
<div class="card-body">
Last 30 Days: {{ $data['30days'] }}
Last 60 Days: {{ $data{'60days'} }}
Last 90 Days: {{ $data['90days'] }}
</div>
</div>
</div>
</div>
@endsection