Files
w4rpservices/app/Http/Controllers/JumpBridgeController.php
drkthunder02 84e4fc2a4b database migrations for help desk tickets, and queues
models for help desk tickets and queues
model for EveMail
modified app config for queues
added new routes for jump bridges
composer updated for autoloader
modified JumpBridgeController
added new controllers for HelpDesk and HelpDeskAdmin
2018-12-23 22:08:30 -06:00

49 lines
1.2 KiB
PHP

<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Library\Finances\JumpBridgeTax;
class JumpBridgeController extends Controller
{
/**
* Displays all statistics on one page
*/
public function displayAll() {
//Create a helper class variable
$jbHelper30 = new JumpBridgeTax(30);
$jbHelper60 = new JumpBridgeTax(60);
$jbHelper90 = new JumpBridgeTax(90);
return view('jumpbridges.all');
}
/**
* Displays overall jump bridge usage based corporation data
*/
public function displayCorpUsage() {
return view('jumpbridges.corp.select');
}
public function ajaxCorpUsage() {
//Get the statistics for overall usage by corps and send back to webpage via ajax
return response()->json(array('data' => $data), 200);
}
/**
* Displays jump bridge usage based on structure
*/
public function displayStructureUsage() {
return view('jumpbridges.structure.select');
}
public function ajaxStructureUsage() {
//Get the statistics for overall usage by structure and send back to the webpage via ajax
return response()->json(array('data' => $data), 200);
}
}