removed taxes controller
This commit is contained in:
@@ -1,82 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
use Auth;
|
||||
use DB;
|
||||
use Carbon\Carbon;
|
||||
|
||||
use App\Library\Taxes\TaxesHelper;
|
||||
|
||||
class TaxesController extends Controller
|
||||
{
|
||||
public function __construct() {
|
||||
$this->middleware('auth');
|
||||
$this->middleware('role:Admin');
|
||||
$this->middleware('permission:admin.finance');
|
||||
}
|
||||
|
||||
public function displayTaxSummary() {
|
||||
$months = 3;
|
||||
$pi = array();
|
||||
$industry = array();
|
||||
$reprocessing = array();
|
||||
$office = array();
|
||||
$corpId = 98287666;
|
||||
|
||||
//Declare the tax helper class
|
||||
$tHelper = new TaxesHelper();
|
||||
|
||||
//Get the dates we are working with
|
||||
$dates = $tHelper->GetTimeFrameInMonths($months);
|
||||
|
||||
foreach($dates as $date) {
|
||||
|
||||
$pis[] = [
|
||||
'date' => $date['start']->toFormattedDateString(),
|
||||
'gross' => number_format($tHelper->GetPIGross($date['start'], $date['end']), 2, ".", ","),
|
||||
];
|
||||
|
||||
$industrys[] = [
|
||||
'date' => $date['start']->toFormattedDateString(),
|
||||
'gross' => number_format($tHelper->GetIndustryGross($date['start'], $date['end']), 2, ".", ","),
|
||||
];
|
||||
|
||||
$reprocessings[] = [
|
||||
'date' => $date['start']->toFormattedDateString(),
|
||||
'gross' => number_format($tHelper->GetReprocessingGross($date['start'], $date['end']), 2, ".", ","),
|
||||
];
|
||||
|
||||
$offices[] = [
|
||||
'date' => $date['start']->toFormattedDateString(),
|
||||
'gross' => number_format($tHelper->GetOfficeGross($date['start'], $date['end']), 2, ".", ","),
|
||||
];
|
||||
|
||||
$markets[] = [
|
||||
'date' => $date['start']->toFormattedDateString(),
|
||||
'gross' => number_format($tHelper->GetMarketGross($date['start'], $date['end']), 2, ".", ","),
|
||||
];
|
||||
|
||||
$jumpgates[] = [
|
||||
'date' => $date['start']->toFormattedDateString(),
|
||||
'gross' => number_format($tHelper->GetJumpGateGross($date['start'], $date['end']), 2, ".", ","),
|
||||
];
|
||||
|
||||
$pigross[] = [
|
||||
'date' => $date['start']->toFormattedDateString(),
|
||||
'gross' => number_format($tHelper->GetPiSalesGross($date['start'], $date['end']), 2, ".", ","),
|
||||
];
|
||||
}
|
||||
|
||||
//Return the view with the compact variable list
|
||||
return view('/taxes/admin/displaystreams')->with('pis', $pis)
|
||||
->with('industrys', $industrys)
|
||||
->with('reprocessings', $reprocessings)
|
||||
->with('offices', $offices)
|
||||
->with('markets', $markets)
|
||||
->with('jumpgates', $jumpgates)
|
||||
->with('pigross', $pigross);
|
||||
}
|
||||
}
|
||||
@@ -1,186 +0,0 @@
|
||||
@extends('layouts.b4')
|
||||
@section('content')
|
||||
|
||||
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
PI Taxes
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>Month</th>
|
||||
<th>PI Taxes</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($pis as $pi)
|
||||
<tr>
|
||||
<td>{{ $pi['date'] }}</td>
|
||||
<td>{{ $pi['gross'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Office Taxes
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>Month</th>
|
||||
<th>Office Taxes</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($offices as $office)
|
||||
<tr>
|
||||
<td>{{ $office['date'] }}</td>
|
||||
<td>{{ $office['gross'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Industry Taxes
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>Month</th>
|
||||
<th>Industry Taxes</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($industrys as $industry)
|
||||
<tr>
|
||||
<td>{{ $industry['date'] }}</td>
|
||||
<td>{{ $industry['gross'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Reprocessing Taxes
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>Month</th>
|
||||
<th>Reprocessing Taxes</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($reprocessings as $reprocessing)
|
||||
<tr>
|
||||
<td>{{ $reprocessing['date'] }}</td>
|
||||
<td>{{ $reprocessing['gross'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Market Taxes
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>Month</th>
|
||||
<th>Market Taxes</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($markets as $market)
|
||||
<tr>
|
||||
<td>{{ $market['date'] }}</td>
|
||||
<td>{{ $market['gross'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
Jump Gate Taxes
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>Month</th>
|
||||
<th>Jump Gate Taxes</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($jumpgates as $jumpgate)
|
||||
<tr>
|
||||
<td>{{ $jumpgate['date'] }}</td>
|
||||
<td>{{ $jumpgate['gross'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
<div class="container-fluid">
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
PI Transactions
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<th>Month</th>
|
||||
<th>PI Transactions</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($pigross as $pi)
|
||||
<tr>
|
||||
<td>{{ $pi['date'] }}</td>
|
||||
<td>{{ $pi['gross'] }}</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
|
||||
</div>
|
||||
<div class="col">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
@@ -69,9 +69,6 @@ Route::group(['middleware' => ['auth']], function(){
|
||||
Route::get('/structures/admin/taxes/reprocessing', 'StructureController@displayReprocessingTaxes');
|
||||
Route::get('/structures/admin/display', 'StructureController@displayAdminPanel');
|
||||
|
||||
//Taxes Controller display pages
|
||||
Route::get('/taxes/display', 'TaxesController@displayTaxSummary');
|
||||
|
||||
//Scopes Controller display pages
|
||||
Route::get('/scopes/select', 'EsiScopeController@displayScopes');
|
||||
Route::post('redirectToProvider', 'EsiScopeController@redirectToProvider');
|
||||
|
||||
Reference in New Issue
Block a user