diff --git a/resources/views/components/dashboard/connected-apps/⚡connected-apps.blade.php b/resources/views/components/dashboard/connected-apps/⚡connected-apps.blade.php index f2b2ac7..fb67f98 100644 --- a/resources/views/components/dashboard/connected-apps/⚡connected-apps.blade.php +++ b/resources/views/components/dashboard/connected-apps/⚡connected-apps.blade.php @@ -3,7 +3,7 @@ use Livewire\Component; new class extends Component { - public string $selectedTab = 'all-tab'; + public string $selectedTab = "all-tab"; }; ?> diff --git a/resources/views/pages/access-manager/roles-and-apps/⚡show.blade.php b/resources/views/pages/access-manager/roles-and-apps/⚡show.blade.php index 292cb00..e9f3eab 100644 --- a/resources/views/pages/access-manager/roles-and-apps/⚡show.blade.php +++ b/resources/views/pages/access-manager/roles-and-apps/⚡show.blade.php @@ -141,8 +141,6 @@ public function openEditAppModal(int $assignmentId): void public function saveApp(): void { - $this->assignForm->validate(); - if ($this->isEditingApp) { $this->updateApp(); } else { @@ -191,7 +189,7 @@ public function assignApp(): void public function updateApp(): void { - $this->authorize(RoleAndAppsPermissionEnum::ConnectApps->value); + $this->authorize(RoleAndAppsPermissionEnum::ConnectApps); $this->attempt( action: function (): void { @@ -285,9 +283,9 @@ public function savePriority(): void $userPriority = auth()->user()?->roles()->min('priority') ?? 999999; $this->validate([ - 'newPriority' => 'required|integer|min:' . ($userPriority + 1), + 'newPriority' => 'required|integer|min:'.($userPriority + 1), ], [ - 'newPriority.min' => 'The priority must be greater than your own highest role priority (' . $userPriority . ').', + 'newPriority.min' => 'The priority must be greater than your own highest role priority ('.$userPriority.').', ]); $this->attempt( @@ -335,8 +333,9 @@ class="btn-sm btn-ghost btn-circle" - @can(RoleAndAppsPermissionEnum::ConnectApps->value) - + @can(RoleAndAppsPermissionEnum::ConnectApps) + Add App @endcan @@ -445,10 +444,13 @@ class="bg-gray-50 text-gray-500 cursor-not-allowed" /> @endif
+ class="flex gap-2 items-baseline-last" + > -
+
causedBy($user) - ->event('dashboard_access') - ->log('User accessed their assigned services dashboard.'); + ->event("dashboard_access") + ->log("User accessed their assigned services dashboard."); } // Show toast from OAuth redirect flash data - if (session('entra_success')) { - $this->success(session('entra_success')); + if (session("entra_success")) { + $this->success(session("entra_success")); } - if (session('entra_error')) { - $this->error(session('entra_error')); + if (session("entra_error")) { + $this->error(session("entra_error")); } } @@ -138,15 +138,11 @@ class="w-3.5 h-3.5 inline animate-pulse text-amber-600 dark:text-amber-400"/>
-

- {{ $service->slug }} -

- @if($service->protocol_name === 'url' && $service->provider_slug === 'azure-fd')
+ class="flex flex-col gap-3">
- Microsoft Integration + Microsoft Integration @if($this->isEntraConnected) @@ -160,20 +156,13 @@ class="badge-soft badge-neutral text-[10px] font-semibold px-2 py-0.5"> @endif
- @if($this->isEntraConnected && $this->entraToken) -
- - Expires {{ $this->entraToken->expires_at->diffForHumans() }} -
- @endif -
@if($this->isEntraConnected) @@ -184,7 +173,7 @@ class="inline"> @@ -193,7 +182,7 @@ class="btn-xs btn-soft btn-error" no-wire-navigate icon="lucide.plug" :link="route('entra.connect')" - class="btn-xs btn-soft btn-primary flex-1" + class="btn-primary flex-1" label="Connect" /> @endif @@ -208,7 +197,7 @@ class="btn-xs btn-soft btn-primary flex-1" class="w-4 h-4 {{ $service->is_warning ? 'text-amber-500 animate-pulse' : 'text-gray-400 dark:text-gray-500' }}"/> - {{ $service->days_remaining }} {{ Str::plural('day', $service->days_remaining) }} left + {{ Illuminate\Support\Carbon::parse($service->duration)->diffForHumans() }}