seat helper
This commit is contained in:
@@ -11,6 +11,7 @@ use Auth;
|
|||||||
use App\User;
|
use App\User;
|
||||||
use App\Libary\Finances;
|
use App\Libary\Finances;
|
||||||
use App\Library\Esi;
|
use App\Library\Esi;
|
||||||
|
use App\Library\SeatHelper;
|
||||||
use App\Models\CorpJournal;
|
use App\Models\CorpJournal;
|
||||||
|
|
||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
@@ -28,7 +29,8 @@ class FinancesController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function displayWallet() {
|
public function displayWallet() {
|
||||||
//
|
$helper = new SeatHelper();
|
||||||
|
$helper->GetCorpJournal(98287666);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function displayTaxes() {
|
public function displayTaxes() {
|
||||||
|
|||||||
@@ -25,6 +25,21 @@ class SeatHelper {
|
|||||||
]);
|
]);
|
||||||
dd($data);
|
dd($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private function DecodeDate($date) {
|
||||||
|
//Find the end of the date
|
||||||
|
$dateEnd = strpos($date, "T");
|
||||||
|
//Split the string up into date and time
|
||||||
|
$dateArr = str_split($date, $dateEnd);
|
||||||
|
//Trim the T and Z from the end of the second item in the array
|
||||||
|
$dateArr[1] = ltrim($dateArr[1], "T");
|
||||||
|
$dateArr[1] = rtrim($dateArr[1], "Z");
|
||||||
|
//Combine the date
|
||||||
|
$realDate = $dateArr[0] . " " . $dateArr[1];
|
||||||
|
|
||||||
|
//Return the combined date in the correct format
|
||||||
|
return $realDate;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user