wip
This commit is contained in:
@@ -25,12 +25,37 @@
|
||||
<body>
|
||||
@livewireScripts
|
||||
<x-toaster-hub />
|
||||
<x-navbar-subscription />
|
||||
@if (auth()->user()->isInstanceAdmin())
|
||||
<div class="fixed top-3 left-4" id="vue">
|
||||
<magic-bar></magic-bar>
|
||||
</div>
|
||||
<x-navbar />
|
||||
@else
|
||||
<x-navbar-subscription />
|
||||
@endif
|
||||
|
||||
<main class="main">
|
||||
{{ $slot }}
|
||||
</main>
|
||||
<x-version class="fixed left-2 bottom-1" />
|
||||
<script>
|
||||
function changePasswordFieldType(event) {
|
||||
let element = event.target
|
||||
for (let i = 0; i < 10; i++) {
|
||||
if (element.className === "relative") {
|
||||
break;
|
||||
}
|
||||
element = element.parentElement;
|
||||
}
|
||||
element = element.children[1];
|
||||
if (element.nodeName === 'INPUT') {
|
||||
if (element.type === 'password') {
|
||||
element.type = 'text';
|
||||
} else {
|
||||
element.type = 'password';
|
||||
}
|
||||
}
|
||||
}
|
||||
Livewire.on('reloadWindow', () => {
|
||||
window.location.reload();
|
||||
})
|
||||
|
||||
@@ -93,11 +93,11 @@
|
||||
</a>
|
||||
</li>
|
||||
@endif
|
||||
|
||||
<div class="flex-1"></div>
|
||||
<li class="pb-6" title="Logout">
|
||||
<form action="/logout" method="POST" class=" hover:bg-transparent">
|
||||
@csrf
|
||||
<button class="rounded-none hover:text-white hover:bg-transparent"> <svg
|
||||
<button type="submit" class="rounded-none hover:text-white hover:bg-transparent"> <svg
|
||||
xmlns="http://www.w3.org/2000/svg" class="icon" viewBox="0 0 24 24" stroke-width="1.5"
|
||||
stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
||||
|
||||
@@ -9,6 +9,12 @@
|
||||
<a class="{{ request()->routeIs('settings.emails') ? 'text-white' : '' }}" href="{{ route('settings.emails') }}">
|
||||
<button>SMTP</button>
|
||||
</a>
|
||||
@if (isCloud())
|
||||
<a class="{{ request()->routeIs('settings.license') ? 'text-white' : '' }}"
|
||||
href="{{ route('settings.license') }}">
|
||||
<button>Resale License</button>
|
||||
</a>
|
||||
@endif
|
||||
<div class="flex-1"></div>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
<x-layout-simple>
|
||||
<h1>Lincese Key</h1>
|
||||
<livewire:license />
|
||||
</x-layout-simple>
|
||||
@@ -1,14 +1,21 @@
|
||||
<form wire:submit.prevent='submit' class="flex flex-col gap-2">
|
||||
<div class="w-32">
|
||||
<x-forms.checkbox id="settings.is_resale_license_active" label="Is license active?" disabled />
|
||||
<div>
|
||||
@if ($settings->is_resale_license_active)
|
||||
<div class="text-success">License is active</div>
|
||||
@else
|
||||
<div class="text-error">License is not active</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="flex gap-2">
|
||||
<x-forms.input id="settings.resale_license" label="License" />
|
||||
<x-forms.input id="instance_id" label="Instance Id (do not change this)" disabled />
|
||||
<x-forms.input type="password" id="settings.resale_license" placeholder="eg: BE558E91-0CC5-4AA2-B1C0-B6403C2988DD"
|
||||
label="License Key" />
|
||||
<x-forms.input type="password" id="instance_id" label="Instance Id (do not change this)" disabled />
|
||||
</div>
|
||||
<div class="flex gap-2">
|
||||
<x-forms.button type="submit">
|
||||
Check License
|
||||
</x-forms.button>
|
||||
</div>
|
||||
<x-forms.button type="submit">
|
||||
Check License
|
||||
</x-forms.button>
|
||||
@if (session()->has('error'))
|
||||
<div class="text-error">
|
||||
{{ session('error') }}
|
||||
|
||||
5
resources/views/settings/license.blade.php
Normal file
5
resources/views/settings/license.blade.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<x-layout-subscription>
|
||||
<x-settings.navbar />
|
||||
<h3>Resale License</h3>
|
||||
<livewire:check-license />
|
||||
</x-layout-subscription>
|
||||
@@ -1,13 +1,4 @@
|
||||
<x-layout-subscription>
|
||||
@if (auth()->user()->isInstanceAdmin())
|
||||
<div class="pb-10">
|
||||
<h3>Resale License</h3>
|
||||
<livewire:check-license />
|
||||
</div>
|
||||
@endif
|
||||
@if (!auth()->user()->isInstanceAdmin() && !$settings->is_resale_license_active)
|
||||
<div>Resale license is not active. Please contact your instance admin.</div>
|
||||
@endif
|
||||
@if ($settings->is_resale_license_active)
|
||||
<div class="flex gap-2">
|
||||
<h3>Subscription</h3>
|
||||
@@ -37,5 +28,7 @@
|
||||
<x-forms.button><a class="text-white" href="https://app.lemonsqueezy.com/my-orders">Manage My
|
||||
Subscription</a>
|
||||
</x-forms.button>
|
||||
@else
|
||||
<div>Resale license is not active. Please contact your instance admin.</div>
|
||||
@endif
|
||||
</x-layout-subscription>
|
||||
|
||||
Reference in New Issue
Block a user