-
-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release0.7
- Loading branch information
Showing
179 changed files
with
21,894 additions
and
3,777 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,32 @@ | ||
### Features | ||
|
||
- PayPal Integration | ||
- Email Verification | ||
- Audit Log | ||
- Admin Dashboard | ||
- User/Server Management | ||
- Store (credit system) | ||
- Vouchers | ||
- and so much more! | ||
- PayPal Integration | ||
- Stripe Integration | ||
- Email Verification | ||
- Audit Log | ||
- Admin Dashboard | ||
- User/Server Management | ||
- Store (credit system) | ||
- Vouchers | ||
- and so much more! | ||
|
||
# ControlPanel-gg | ||
![controlpanel](https://user-images.githubusercontent.com/45005889/123518824-06b05000-d6a8-11eb-91b9-d1ed36bd2317.png) | ||
|
||
![](https://img.shields.io/github/stars/ControlPanel-gg/dashboard) ![](https://img.shields.io/github/forks/ControlPanel-gg/dashboard) ![](https://img.shields.io/github/tag/ControlPanel-gg/dashboard) ![](https://img.shields.io/github/issues/ControlPanel-gg/dashboard) ![](https://img.shields.io/github/license/ControlPanel-gg/dashboard) ![](https://img.shields.io/discord/787829714483019826) | ||
![controlpanel](https://user-images.githubusercontent.com/45005889/123518824-06b05000-d6a8-11eb-91b9-d1ed36bd2317.png) | ||
|
||
![](https://img.shields.io/github/stars/ControlPanel-gg/dashboard) ![](https://img.shields.io/github/forks/ControlPanel-gg/dashboard) ![](https://img.shields.io/github/tag/ControlPanel-gg/dashboard) [![Crowdin](https://badges.crowdin.net/controlpanelgg/localized.svg)](https://crowdin.com/project/controlpanelgg) ![](https://img.shields.io/github/issues/ControlPanel-gg/dashboard) ![](https://img.shields.io/github/license/ControlPanel-gg/dashboard) ![](https://img.shields.io/discord/787829714483019826) | ||
## About | ||
|
||
ControlPanel's Dashboard is a dashboard application designed to offer clients a management tool to manage their pterodactyl servers. This dashboard comes with a credit-based billing solution that credits users hourly for each server they have and suspends them if they run out of credits. | ||
|
||
This dashboard offers an easy to use and free billing solution for all starting and experienced hosting providers. This dashboard has many customization options and added discord 0auth verification to offer a solid link between your discord server and your dashboard. | ||
|
||
### [Installation](https://controlpanel.gg/docs/intro "Installation") | ||
|
||
### [Updating](https://controlpanel.gg/docs/Installation/updating "Updating") | ||
|
||
### [Discord](https://discord.gg/4Y6HjD2uyU "discord") | ||
|
||
### [Contributing](https://controlpanel.gg/docs/Contributing/contributing "Contributing") | ||
|
||
### [Donating](https://controlpanel.gg/docs/Contributing/donating "Donating") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
namespace App\Classes\Settings; | ||
|
||
use App\Models\Settings; | ||
use Illuminate\Http\Request; | ||
use Illuminate\Support\Facades\Cache; | ||
|
||
class Invoices | ||
{ | ||
public function __construct() | ||
{ | ||
return; | ||
} | ||
|
||
|
||
public function updateSettings(Request $request) | ||
{ | ||
$request->validate([ | ||
'logo' => 'nullable|max:10000|mimes:jpg,png,jpeg', | ||
]); | ||
|
||
$values = [ | ||
//SETTINGS::VALUE => REQUEST-VALUE (coming from the html-form) | ||
"SETTINGS::INVOICE:COMPANY_NAME" => "company-name", | ||
"SETTINGS::INVOICE:COMPANY_ADDRESS" => "company-address", | ||
"SETTINGS::INVOICE:COMPANY_PHONE" => "company-phone", | ||
"SETTINGS::INVOICE:COMPANY_MAIL" => "company-mail", | ||
"SETTINGS::INVOICE:COMPANY_VAT" => "company-vat", | ||
"SETTINGS::INVOICE:COMPANY_WEBSITE" => "company-web", | ||
"SETTINGS::INVOICE:PREFIX" => "invoice-prefix", | ||
"SETTINGS::INVOICE:ENABLED" => "enable-invoices", | ||
]; | ||
|
||
foreach ($values as $key => $value) { | ||
$param = $request->get($value); | ||
|
||
Settings::where('key', $key)->updateOrCreate(['key' => $key], ['value' => $param]); | ||
Cache::forget("setting" . ':' . $key); | ||
} | ||
|
||
|
||
if ($request->hasFile('logo')) { | ||
$request->file('logo')->storeAs('public', 'logo.png'); | ||
} | ||
|
||
|
||
return redirect(route('admin.settings.index') . '#invoices')->with('success', __('Invoice settings updated!')); | ||
} | ||
} |
Oops, something went wrong.