update: super-admin page

This commit is contained in:
Cauê Faleiros
2026-02-03 11:32:40 -03:00
parent e9333c8341
commit c93a0af3d7
7 changed files with 57 additions and 29 deletions

View File

@@ -23,19 +23,13 @@
@include('super-admin.layouts.header')
<div class="group/container sidebar-collapsed flex h-[calc(100vh-62px)]">
<div class="group/container sidebar-collapsed flex h-screen">
@include('super-admin.layouts.sidebar')
<div class="flex flex-1 flex-col overflow-y-auto bg-gray-100 pt-3 transition-all duration-300 dark:bg-gray-950">
<div class="px-4 pb-6 flex-1">
<div class="flex flex-1 flex-col overflow-hidden bg-gray-100 pt-3 transition-all duration-300 dark:bg-gray-950">
<div class="flex-1 overflow-y-auto px-4 pb-6">
@yield('content')
</div>
<div class="mt-auto pt-6">
<div class="border-t bg-white py-5 text-center text-sm font-normal dark:border-gray-800 dark:bg-gray-900 dark:text-white max-md:py-3">
<p>Desenvolvido por <a href="https://blyzer.com.br" style="color: #0E90D9;" class="hover:underline" target="_blank">Blyzer</a></p>
</div>
</div>
</div>
</div>
</div>

View File

@@ -1,10 +1,10 @@
@extends('super-admin.layouts.app')
@extends('super-admin.layouts.master')
@section('content')
<div class="md:flex md:items-center md:justify-between mb-6">
<div class="flex-1 min-w-0">
<h2 class="text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate">
Edit Tenant
<h2 class="text-2xl font-bold leading-7 text-gray-900 dark:text-white sm:text-3xl sm:truncate">
Editar Empresa
</h2>
</div>
</div>
@@ -14,27 +14,27 @@
@csrf
@method('PUT')
<div class="shadow overflow-hidden sm:rounded-md">
<div class="px-4 py-5 bg-white sm:p-6">
<div class="px-4 py-5 bg-white dark:bg-gray-900 sm:p-6">
<div class="grid grid-cols-6 gap-6">
<div class="col-span-6 sm:col-span-4">
<label for="id" class="block text-sm font-medium text-gray-700">Tenant ID</label>
<input type="text" name="id" id="id" value="{{ $tenant->id }}" readonly class="mt-1 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md p-2 border bg-gray-100 cursor-not-allowed">
<p class="mt-2 text-sm text-gray-500">Tenant ID cannot be changed.</p>
<label for="id" class="block text-sm font-medium text-gray-700 dark:text-gray-300">ID da Empresa</label>
<input type="text" name="id" id="id" value="{{ $tenant->id }}" readonly class="mt-1 block w-full shadow-sm sm:text-sm border-gray-300 dark:border-gray-700 rounded-md p-2 border bg-gray-100 dark:bg-gray-800 dark:text-gray-400 cursor-not-allowed">
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">O ID da empresa não pode ser alterado.</p>
</div>
<div class="col-span-6 sm:col-span-4">
<label for="domain" class="block text-sm font-medium text-gray-700">Domain</label>
<input type="text" name="domain" id="domain" value="{{ $tenant->domains->first()->domain ?? '' }}" autocomplete="off" class="mt-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md p-2 border" placeholder="e.g. tenant1.localhost">
<p class="mt-2 text-sm text-gray-500">Full domain for the tenant.</p>
<label for="domain" class="block text-sm font-medium text-gray-700 dark:text-gray-300">Domínio</label>
<input type="text" name="domain" id="domain" value="{{ $tenant->domains->first()->domain ?? '' }}" autocomplete="off" class="mt-1 focus:ring-blue-500 focus:border-blue-500 block w-full shadow-sm sm:text-sm border-gray-300 dark:border-gray-700 dark:bg-gray-800 dark:text-white rounded-md p-2 border" placeholder="ex: empresa1.growuppro.com.br">
<p class="mt-2 text-sm text-gray-500 dark:text-gray-400">Domínio completo da empresa.</p>
</div>
</div>
</div>
<div class="px-4 py-3 bg-gray-50 text-right sm:px-6">
<a href="{{ route('super-admin.tenants.index') }}" class="inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 mr-2">
Cancel
<div class="flex items-center justify-end gap-x-2 px-4 py-3 bg-gray-50 dark:bg-gray-800 sm:px-6">
<a href="{{ route('super-admin.tenants.index') }}" class="inline-flex justify-center py-2 px-4 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Cancelar
</a>
<button type="submit" class="inline-flex justify-center py-2 px-4 border border-transparent shadow-sm text-sm font-medium rounded-md text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500">
Update
<button type="submit" class="primary-button">
Atualizar
</button>
</div>
</div>