Merge branch 'Ctrlpanel-gg:development' into development
This commit is contained in:
commit
1515615507
13 changed files with 32 additions and 32 deletions
|
@ -4,10 +4,6 @@ use Illuminate\Support\Facades\Route;
|
|||
use App\Extensions\PaymentGateways\Mollie\MollieExtension;
|
||||
|
||||
Route::middleware(['web', 'auth'])->group(function () {
|
||||
Route::get('payment/MolliePay/{shopProduct}', function (MollieExtension $mollieExtension) {
|
||||
$mollieExtension->pay(request());
|
||||
})->name('payment.MolliePay');
|
||||
|
||||
Route::get(
|
||||
'payment/MollieSuccess',
|
||||
function () {
|
||||
|
|
|
@ -4,10 +4,6 @@ use Illuminate\Support\Facades\Route;
|
|||
use App\Extensions\PaymentGateways\PayPal\PayPalExtension;
|
||||
|
||||
Route::middleware(['web', 'auth'])->group(function () {
|
||||
Route::get('payment/PayPalPay/{shopProduct}', function (PayPalExtension $payPalExtension) {
|
||||
$payPalExtension->PaypalPay(request());
|
||||
})->name('payment.PayPalPay');
|
||||
|
||||
Route::get(
|
||||
'payment/PayPalSuccess',
|
||||
function () {
|
||||
|
|
|
@ -4,10 +4,6 @@ use Illuminate\Support\Facades\Route;
|
|||
use App\Extensions\PaymentGateways\Stripe\StripeExtension;
|
||||
|
||||
Route::middleware(['web', 'auth'])->group(function () {
|
||||
Route::get('payment/StripePay/{shopProduct}', function (StripeExtension $stripeExtension) {
|
||||
$stripeExtension->StripePay(request());
|
||||
})->name('payment.StripePay');
|
||||
|
||||
Route::get(
|
||||
'payment/StripeSuccess',
|
||||
function () {
|
||||
|
|
|
@ -37,7 +37,9 @@ class OverViewController extends Controller
|
|||
//Get counters
|
||||
$counters = collect();
|
||||
//Set basic variables in the collection
|
||||
$counters->put('users', User::query()->count());
|
||||
$counters->put('users', collect());
|
||||
$counters['users']->active = User::where("suspended", 0)->count();
|
||||
$counters['users']->total = User::query()->count();
|
||||
$counters->put('credits', number_format(User::query()->whereHas("roles", function($q){ $q->where("id", "!=", "1"); })->sum('credits'), 2, '.', ''));
|
||||
$counters->put('payments', Payment::query()->count());
|
||||
$counters->put('eggs', Egg::query()->count());
|
||||
|
|
|
@ -203,7 +203,7 @@ class RoleController extends Controller
|
|||
})
|
||||
|
||||
->editColumn('name', function (Role $role) {
|
||||
return "<span style=\"color: $role->color\">$role->name</span>";
|
||||
return "<span style='background-color: $role->color' class='badge'>$role->name</span>";
|
||||
})
|
||||
->editColumn('usercount', function ($query) {
|
||||
return $query->users_count;
|
||||
|
|
|
@ -245,10 +245,10 @@ class VoucherController extends Controller
|
|||
})
|
||||
->editColumn('expires_at', function (Voucher $voucher) {
|
||||
if (! $voucher->expires_at) {
|
||||
return '';
|
||||
return __("Never");
|
||||
}
|
||||
|
||||
return $voucher->expires_at ? $voucher->expires_at->diffForHumans() : '';
|
||||
return $voucher->expires_at ? $voucher->expires_at->diffForHumans() : __("Never");
|
||||
})
|
||||
->editColumn('code', function (Voucher $voucher) {
|
||||
return "<code>{$voucher->code}</code>";
|
||||
|
|
|
@ -19,7 +19,7 @@ $required_extensions = ['openssl', 'gd', 'mysql', 'PDO', 'mbstring', 'tokenizer'
|
|||
|
||||
$requirements = [
|
||||
'minPhp' => '8.1',
|
||||
'maxPhp' => '8.2', // This version is not supported
|
||||
'maxPhp' => '8.3', // This version is not supported
|
||||
'mysql' => '5.7.22',
|
||||
];
|
||||
|
||||
|
|
|
@ -58,7 +58,12 @@
|
|||
<span class="info-box-icon bg-info elevation-1"><i class="fas fa-server"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{{__('Servers')}}</span>
|
||||
<span class="info-box-text">{{__('Servers')}}
|
||||
<i class="fas fa-info-circle mr-4" data-toggle="popover"
|
||||
data-trigger="hover" data-placement="top"
|
||||
data-html="true"
|
||||
data-content="{{ __("This shows the total active servers and the total servers. Total active servers are all servers which are not suspended") }}"></i>
|
||||
</span>
|
||||
<span class="info-box-number">{{$counters['servers']->active}}/{{$counters['servers']->total}}</span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
|
@ -71,8 +76,13 @@
|
|||
<span class="info-box-icon bg-primary elevation-1"><i class="fas fa-users"></i></span>
|
||||
|
||||
<div class="info-box-content">
|
||||
<span class="info-box-text">{{__('Users')}}</span>
|
||||
<span class="info-box-number">{{$counters['users']}}</span>
|
||||
<span class="info-box-text">{{__('Users')}}
|
||||
<i class="fas fa-info-circle mr-4" data-toggle="popover"
|
||||
data-trigger="hover" data-placement="top"
|
||||
data-html="true"
|
||||
data-content="{{ __("This shows the total active Users and the total Users. Total active Users are all Users which are not suspended") }}"></i>
|
||||
</span>
|
||||
<span class="info-box-number">{{$counters['users']->active}}/{{$counters['users']->total}}</span>
|
||||
</div>
|
||||
<!-- /.info-box-content -->
|
||||
</div>
|
||||
|
|
|
@ -51,10 +51,10 @@
|
|||
<th>{{__('Disk')}}</th>
|
||||
<th>{{__('Databases')}}</th>
|
||||
<th>{{__('Backups')}}</th>
|
||||
<th>{{__('OOM Killer')}}</th>
|
||||
<th>{{__('Nodes')}}</th>
|
||||
<th>{{__('Eggs')}}</th>
|
||||
<th>{{__('Min Credits')}}</th>
|
||||
<th>{{__('OOM Killer')}}</th>
|
||||
<th>{{__('Servers')}}</th>
|
||||
<th>{{__('Created at')}}</th>
|
||||
<th>{{ __('Actions') }}</th>
|
||||
|
@ -101,10 +101,10 @@
|
|||
{data: "disk"},
|
||||
{data: "databases"},
|
||||
{data: "backups"},
|
||||
{data: "oom_killer"},
|
||||
{data: "nodes", sortable: false},
|
||||
{data: "eggs", sortable: false},
|
||||
{data: "minimum_credits"},
|
||||
{data: "oom_killer"},
|
||||
{data: "servers", sortable: false},
|
||||
{data: "created_at"},
|
||||
{data: "actions", sortable: false}
|
||||
|
|
|
@ -100,7 +100,7 @@
|
|||
<label>{{ __('Email') }}</label>
|
||||
</div>
|
||||
<div class="col-lg-8">
|
||||
<span style="max-width: 250px;" class="d-inline-block text-truncate">
|
||||
<span style="max-width: 400px;" class="d-inline-block text-truncate">
|
||||
{{ $user->email }}
|
||||
</span>
|
||||
</div>
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
<div class="form-group">
|
||||
<div class="input-group mb-3">
|
||||
<input type="text" name="email"
|
||||
class="form-control @error('email') is-invalid @enderror"
|
||||
class="form-control @error('email') is-invalid @enderror @error('name') is-invalid @enderror"
|
||||
placeholder="{{ __('Email or Username') }}">
|
||||
<div class="input-group-append">
|
||||
<div class="input-group-text">
|
||||
|
@ -41,11 +41,11 @@
|
|||
</div>
|
||||
|
||||
</div>
|
||||
@error('email')
|
||||
@if ($errors->get("email") || $errors->get("name"))
|
||||
<span class="text-danger" role="alert">
|
||||
<small><strong>{{ $message }}</strong></small>
|
||||
<small><strong>{{ $errors->first('email') ? $errors->first('email') : $errors->first('name') }}</strong></small>
|
||||
</span>
|
||||
@enderror
|
||||
@endif
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
|
|
|
@ -251,14 +251,14 @@
|
|||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
@if(in_array($referral_settings->mode, ["Commission","Both"]))<th>{{ __('Reward per registered user') }}</th> @endif
|
||||
@if(in_array($referral_settings->mode, ["Sign-Up","Both"]))<th>{{ __('New user payment commision') }}</th> @endif
|
||||
@if(in_array($referral_settings->mode, ["comission","both"]))<th>{{ __('Reward per registered user') }}</th> @endif
|
||||
@if(in_array($referral_settings->mode, ["sign-up","both"]))<th>{{ __('New user payment commision') }}</th> @endif
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
@if(in_array($referral_settings->mode, ["Commission","Both"]))<td>{{ $referral_settings->reward }} {{ $general_settings->credits_display_name }}</td> @endif
|
||||
@if(in_array($referral_settings->mode, ["Sign-Up","Both"]))<td>{{ $referral_settings->percentage }}%</td> @endif
|
||||
@if(in_array($referral_settings->mode, ["comission","both"]))<td>{{ $referral_settings->reward }} {{ $general_settings->credits_display_name }}</td> @endif
|
||||
@if(in_array($referral_settings->mode, ["sign-up","both"]))<td>{{ $referral_settings->percentage }}%</td> @endif
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
<span class="mr-3">{{ $gateway->name }}</span>
|
||||
</label>
|
||||
<button class="btn btn-primary rounded" type="button"
|
||||
name="payment-method" id="{{ $gateway->name }}"
|
||||
name="payment_method" id="{{ $gateway->name }}"
|
||||
value="{{ $gateway->name }}"
|
||||
:class="payment_method === '{{ $gateway->name }}' ?
|
||||
'active' : ''"
|
||||
|
|
Loading…
Add table
Reference in a new issue